SUMIFS help Please!!!!!

tbobolz

Board Regular
Joined
Mar 18, 2010
Messages
144
Hi All,

I have a table with a Product Name in column A and a Product Price in column E.
I have a 2nd table that has a Product Name in column A, From Cost in Column B, To Cost in column C, and Mark up Cost in Column D

I wan to lookup each product in the 1st table into table 2, and if the price in table 1, falls (between or equals) the prices from table two column B and C, then I want to return column D

This formula works, but is vey slow and locks up the PC on too may lines - =SUMPRODUCT(--(Schedules!C:C>=E2),--(Schedules!B:B<=E2),--(ISNUMBER(MATCH(Schedules!A:A,I2,0))),Schedules!D:D)

This formula below works, but the value(s) .45 in the sting below is manually typed in. It does not work if I reference a cell where .45 is located.
WORKS:
=SUMIFS(Schedules!D:D,Schedules!A:A,'Pharm. Report'!I2,Schedules!B:B,"<=.45",Schedules!C:C,">=.45")

DOESN'T WORK:
=SUMIFS(Schedules!D:D,Schedules!A:A,'Pharm. Report'!I2,Schedules!B:B,"<=E2",Schedules!C:C,">=E2")

Is there a better way to write a solution for this?

Thanks for any help you can offer.
Terry
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try this

=SUMIFS(Schedules!D:D,Schedules!A:A,'Pharm. Report'!I2,Schedules!B:B,"<=" & E2,Schedules!C:C,">=" & E2)
 
Upvote 0
Try
Code:
=SUMIFS(Schedules!D:D,Schedules!A:A,'Pharm. Report'!I2,Schedules!B:B,"<="&E2,Schedules!C:C,">="&E2)
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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