Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

I need a formula that will search 4 different criteria and return a value

My criteria is "weekly", "married", $2,000. I need a formula that searches for "weekly" in the first column, "married" in the second column, greater than/equal to $2,000 in the third column, and less than $2,000 in the fourth column. Return value in the 5th column.


So with the above criteria the formula should return $199.50.


weeklysingle $ - $ 43.00 $ - 0.00% $ -
weeklysingle $ 43.00 $ 222.00 $ - 10.00% $ 43.00
weeklysingle $ 222.00 $ 767.00 $ 17.90 15.00% $ 222.00
weeklysingle $ 767.00 $ 1,796.00 $ 99.65 25.00% $ 767.00
weeklysingle $ 1,796.00 $ 3,700.00 $ 356.90 28.00% $ 1,796.00
weeklysingle $ 3,700.00 $ 7,992.00 $ 890.02 33.00% $ 3,700.00
weeklysingle $ 7,992.00 $ 8,025.00 $ 2,306.38 35.00% $ 7,992.00
weeklysingle $ 8,025.00 $ 2,317.93 39.60% $ 8,025.00
weekly married $ - $ 164.00 $ - 0.00% $ -
weekly married $ 164.00 $ 521.00 $ - 10.00% $ 164.00
weekly married $ 521.00 $ 1,613.00 $ 35.70 15.00% $ 521.00
weekly married $ 1,613.00 $ 3,086.00 $ 199.50 25.00% $ 1,613.00
weekly married $ 3,086.00 $ 4,615.00 $ 567.75 28.00% $ 3,086.00
weekly married $ 4,615.00 $ 8,113.00 $ 995.87 33.00% $ 4,615.00
weekly married $ 8,113.00 $ 9,144.00 $ 2,150.21 35.00% $ 8,113.00
weekly married $ 9,144.00 $ 2,511.06 39.60% $ 9,144.00


I used SUMPRODUCT in Excel. Can't seem to find a work around. Thanks in advance.

Mac mini (Mid 2010), Mac OS X (10.7.5)

Posted on Feb 8, 2016 2:09 PM

Reply
3 replies

Feb 8, 2016 6:24 PM in response to lpomykal

What are the possible values in column A? Only one appears on the sample list.

Are there possible values for column B other than the two shown?

Column D is redundant. The information it contains in implicit in column C.

Separating the table into two (or more, depending on the answers to the first two questions above) will make coding easier. The numbers in column C are in ascending order, but restart from zero where column B changes content.


What's to be done with the last two columns?


Regards,

Barry

Feb 9, 2016 2:02 AM in response to lpomykal

Hello


Numbers does not support most of the array formulae that Excel does. So you'd need to introduce an auxiliary column for intermediate calculation. A straightforward workaround/solution would be something like this.



User uploaded file



Table 1 (excerpt) H1 =AND(A1="weekly",B1="married",MAX(C1,2000)=2000,MIN(D1,2000)=2000) H2 =AND(A2="weekly",B2="married",MAX(C2,2000)=2000,MIN(D2,2000)=2000) H3 =AND(A3="weekly",B3="married",MAX(C3,2000)=2000,MIN(D3,2000)=2000) ... H17 =INDEX(E,MATCH(TRUE,H,0))




Notes.


Formula in H1 can be filled down across H1:H16.


H17 is in footer row.


Table is built with Numbers v2.



* By the way, I have modified the conditions on C:D so that C <= 2000 and D >= 2000 because your original conditions, i.e., C >= 2000 and D < 2000, will never evaluate to true.


Regards,

H

I need a formula that will search 4 different criteria and return a value

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.