Re help

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hey again,

You know I was afraid you'd ask that :)

Actually I guess you could go with adding a series of sumproducts. So if your columns alternate color and price for 5 columns A-J you'd have this ugly beast:

=SUMPRODUCT((A1:A100="Red")*(B1:B100<50000))+SUMPRODUCT((C1:C100="Red")*(D1:D100<50000))+SUMPRODUCT((E1:E100="Red")*(F1:F100<50000))+SUMPRODUCT((G1:G100="Red")*(H1:H100<50000))+SUMPRODUCT((I1:I100="Red")*(J1:J100<50000))

Hopefully a guru will post something better than my brute-force approach.

Adam
 
Upvote 0
Try:

=SUMPRODUCT((A1:I100="Red")*(B1:J100<50000))

Note that the ranges shift: A to I for color and B to J for price.

Aladin
 
Upvote 0
That's quite a formula. Well, thanks again for your help. I'll see what I can figure out based on what you've given me (which is an incredible help). Oh and just so I don't look rediculas, I'm not comparing cars. It's much more involved than that, which is why I'm having so much trouble. But anyway, you've been a great help!
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,914
Members
449,054
Latest member
luca142

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top