Sumifs?

swifttl

New Member
Joined
Jul 18, 2023
Messages
6
Office Version
  1. 365
Good Afternoon,

I am losing my mind with this!

I need a formula that will work out the following on the below sheet :
If K2 is equal to B2 and upto C2 then A16
If K2 is after C2 upto D2 then B16
If K2 equals E2 then C16
If K2 equals F2 then D16
If K2 equals G2 then E16


1689853620575.png



Any help would be much appreciated!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about this?

=SWITCH(TRUE,
AND(K2>=B2,K2<=C2),A16,
AND(K2>C2,K2<=D2),B16,
K2=E2,C16,
K2=F2,D16,
K2=G2,E16)
 
Upvote 1
Thanks for your reply, hasn't worked as i have missed a chunk of info out! I've had a go at amending your formula but not getting it to work?

I need a formula that will work out the following on the below sheet :
If K2 is equal to B2 and upto C2 then A16 * H2
If K2 is after C2 upto D2 then B16 * H2
If K2 equals E2 then C16 * I2
If K2 equals F2 then D16 * I2
If K2 equals G2 then E16 * H2


1689853620575.png
 
Upvote 0
what cell do you want the formula in?
what kind of values are in column K? Can you give some examples?
 
Upvote 0
How about
Excel Formula:
=IF(AND(K2>=B2,K2<=C2),$A$16*H2,IF(AND(K2>C2,K2<=D2),$B$16*H2,IF(K2=E2,$C$16*I2,IF(K2=F2,$D$16*I2,IF(K2=G2,$E$16*H2,0)))))
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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