Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
How to create a formula that meets 2 different conditions...
I have column that determines eligibility (i.e. a yes or no indicated in
each cell between C7:C13). In a different column, I have a formula in a cell (B30) that counts between the cells =COUNTA(B22:B29). In the same column, in B31, I have a number that stays constant (i.e. 1500). In the same column, in B32, I have another formula that multiplies the two different cells =PRODUCT(B30:B31) What I want to do is create a formula that determines the product of cells B30 and B31 under the following two conditions: Only if there are 3 items counted between cells B22 and B29. AND Only if there is a yes indicated between cells C7 and C13. So, for every 3 items counted and 1 yes, then multiply cells B30 and B31. Or if there are 6 items counted and 2 yes, then multiply. Or if there are 9 items counted and 3 yes, then multiply, etc. If it does not meet these conditions, then do not multiply B30 and B31. I hope I havent confused anyone. Let me know if you have questions. Any help would be greatly appreciated! Thanks in advance! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
How to create a formula that meets 2 different conditions...
=if(and(B303,countif(C7:C13)1),B30*B31,"")
"Jennifer" wrote: I have column that determines eligibility (i.e. a yes or no indicated in each cell between C7:C13). In a different column, I have a formula in a cell (B30) that counts between the cells =COUNTA(B22:B29). In the same column, in B31, I have a number that stays constant (i.e. 1500). In the same column, in B32, I have another formula that multiplies the two different cells =PRODUCT(B30:B31) What I want to do is create a formula that determines the product of cells B30 and B31 under the following two conditions: Only if there are 3 items counted between cells B22 and B29. AND Only if there is a yes indicated between cells C7 and C13. So, for every 3 items counted and 1 yes, then multiply cells B30 and B31. Or if there are 6 items counted and 2 yes, then multiply. Or if there are 9 items counted and 3 yes, then multiply, etc. If it does not meet these conditions, then do not multiply B30 and B31. I hope I havent confused anyone. Let me know if you have questions. Any help would be greatly appreciated! Thanks in advance! |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
How to create a formula that meets 2 different conditions...
Hi bj,
Thanks for your repsonse. You forumla makes sense, however when I entered the formula I received an error message saying that Ive entered too few arguments for this function. Am I doing something incorrect? Let me know if you have any suggestions. Thanks for your help, -Jennifer "bj" wrote: =if(and(B303,countif(C7:C13)1),B30*B31,"") "Jennifer" wrote: I have column that determines eligibility (i.e. a yes or no indicated in each cell between C7:C13). In a different column, I have a formula in a cell (B30) that counts between the cells =COUNTA(B22:B29). In the same column, in B31, I have a number that stays constant (i.e. 1500). In the same column, in B32, I have another formula that multiplies the two different cells =PRODUCT(B30:B31) What I want to do is create a formula that determines the product of cells B30 and B31 under the following two conditions: Only if there are 3 items counted between cells B22 and B29. AND Only if there is a yes indicated between cells C7 and C13. So, for every 3 items counted and 1 yes, then multiply cells B30 and B31. Or if there are 6 items counted and 2 yes, then multiply. Or if there are 9 items counted and 3 yes, then multiply, etc. If it does not meet these conditions, then do not multiply B30 and B31. I hope I havent confused anyone. Let me know if you have questions. Any help would be greatly appreciated! Thanks in advance! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I create a formula that has circular conditions? | Excel Discussion (Misc queries) | |||
sum column when it meets certain conditions | Excel Worksheet Functions | |||
Count Cells if diff cell meets conditions | Excel Worksheet Functions | |||
How do create a formula to evalute a # to return 1 of 4 conditions | Excel Worksheet Functions | |||
Referencing cells text output if it meets specific conditions | Excel Worksheet Functions |