ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   create a formula that determines if €œyes€ between say C7-C13... (https://www.excelbanter.com/excel-discussion-misc-queries/140293-create-formula-determines-if-%E2%80%9Cyes%E2%80%9D-between-say-c7-c13.html)

Jennifer

create a formula that determines if €œyes€ between say C7-C13...
 
I have a formula that multiplies two different cells:
=PRODUCT(B30:B31)

I have another column that determines eligibility (i.e. a €œyes€ or €œno€
indicated in each cell).

What I want to do is create a formula that determines if €œyes€ between say
C7-C13, then multiply the two different cells as described above, otherwise
if blank or €œno,€ then do not multiply the two cells.

Any help would be greatly appreciated! Thanks in advance!

Barb Reinhardt

create a formula that determines if €œyes€ between say C7-C13...
 
You could try something like this

=PRODUCT(IF(C2:C7="YES",B2:B7))

activate with CTRL SHIFT ENTER

"Jennifer" wrote:

I have a formula that multiplies two different cells:
=PRODUCT(B30:B31)

I have another column that determines eligibility (i.e. a €œyes€ or €œno€
indicated in each cell).

What I want to do is create a formula that determines if €œyes€ between say
C7-C13, then multiply the two different cells as described above, otherwise
if blank or €œno,€ then do not multiply the two cells.

Any help would be greatly appreciated! Thanks in advance!


JMB

create a formula that determines if €œyes€ between say C7-C13...
 
try:
=IF(COUNTIF(C7:C13,"yes"), B30*B31, "")


"Jennifer" wrote:

I have a formula that multiplies two different cells:
=PRODUCT(B30:B31)

I have another column that determines eligibility (i.e. a €œyes€ or €œno€
indicated in each cell).

What I want to do is create a formula that determines if €œyes€ between say
C7-C13, then multiply the two different cells as described above, otherwise
if blank or €œno,€ then do not multiply the two cells.

Any help would be greatly appreciated! Thanks in advance!


Barb Reinhardt

create a formula that determines if €œyes€ between say C7-C13...
 
You could try something like this

=PRODUCT(IF(C2:C7="YES",B2:B7))

activate with CTRL SHIFT ENTER

"Jennifer" wrote:

I have a formula that multiplies two different cells:
=PRODUCT(B30:B31)

I have another column that determines eligibility (i.e. a €œyes€ or €œno€
indicated in each cell).

What I want to do is create a formula that determines if €œyes€ between say
C7-C13, then multiply the two different cells as described above, otherwise
if blank or €œno,€ then do not multiply the two cells.

Any help would be greatly appreciated! Thanks in advance!



All times are GMT +1. The time now is 05:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com