Home |
Search |
Today's Posts |
#12
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Greg,
I reviewed your last post and all the SP functions you have are correct. I'm a little unclear how you want me to list each (SP1 to SP8) and the condition-specific arguments. Isn't that what you have under the "Where" section of your last post? "Greg Wilson" wrote: Summary of Previous Post: As per my formula, the idea is to extract all arguments that are common to each of the Sumproduct functions and list them only once as arguments in the Sum function (array version). Also included in the Sum function is a nested IF structure that returns the correct conditioin-specific argument from a list of options. In my previous post, I refered to the repeating arguments as (AAA) to (DDD) and the condition-specific arguments as (EEE) to (GGG). Current Strategy: We need to confirm which arguments repeat for all conditions and which arguments are condition-specific. As per my first formula, we will list the arguments that repeat in the Sum function and multiply them together with an IF structure that returns the correct condition-specific argument. Current Logic Structu The logic you describe is captured in the following formula: =IF(Cond1, IF(Cond2, IF(Cond3, SP1, SP2), IF(Cond3, SP3, SP4)), IF(Cond2, IF(Cond3, SP5, SP6), IF(Cond3, SP7, SP8))) Translation: If Cond1 and Cond2 and Cond3 Then SP1 If Cond1 and Cond2 and Not Cond3 Then SP2 If Cond1 and Not Cond2 and Cond3 Then SP3 If Cond1 and Not Cond2 and Not Cond3 Then SP4 If Not Cond1 and Cond2 and Cond3 Then SP5 If Not Cond1 and Cond2 and Not Cond3 Then SP6 If Not Cond1 and Not Cond2 and Cond3 Then SP7 If Not Cond1 and Not Cond2 and Not Cond3 Then SP8 Whe SP1 is a Sumproduct function that returns all rows SP2 returns all rows where M3 equals Column M on Details tab SP3 returns all rows where Column L equals F SP4 returns all rows where Column L equals F on Details tab And where M3 equals Column M on Details tab SP5 returns all rows where B3 equals Column B on Details tab SP6 returns all rows where B3 equals Column B on Details tab And then return all rows where M3 equals Column M on Details tab SP7 returns all rows where B3 equals Column B on Details tab And where Column L equals F SP8 returns all rows where B3 equals Column B on Details tab And where Column L equals F And where M3 equals Column M on Details tab *** Required from You: 1. To obtain the above results, please confirm the arguments that repeat for each of SP1 to SP8. I assume these are still what I refered to as (AAA) to (DDD) in my previous post. 2. List for each (SP1 to SP8) the condition-specific arguments that (when multiplied by the repeating arguments) will return the desired results. *** My Assignment: Devise the formula. In other words, devise an IF structure that returns the correct condition-specific argument from the different options and multiply it together with the repeating arguments inside the Sum function. Greg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula question | Excel Discussion (Misc queries) | |||
formula question | Excel Discussion (Misc queries) | |||
Newbie Question - Subtraction Formula Question | Excel Discussion (Misc queries) | |||
If Formula Question | Excel Worksheet Functions | |||
Formula Question | Excel Discussion (Misc queries) |