Sum values with multiple conditions

wanderlustsouls18

New Member
Joined
Dec 12, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello, I am trying to get a sum using multiple conditions.
This calculation " =IF(L6="PSH",SUM(M6-U6),IF(O6<T6,SUM(O6-U6),SUM(T6-U6))) " works just fine.
1702412682525.png


However, I have a need added a new column I also need in the conditions.
I entered " =IF(L6="PSH",SUM(M6-U6),IF(O6<T6,SUM(O6-U6),SUM(T6-U6)),if(and(o6<q6,sum(o6-u6),sum(q6-u6)))) "
which only shows the formula in the cell, not the sum of the calculation.
1702412941043.png



Any assistance to correcting this formula would be very much appreciated.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
If you copied the formula directly from your sheet, it looks like there may be a space before the = at the start.
 
Upvote 0
You have already used all the TRUE/FALSE POSITIONS for the original IFs. You also have an AND that make no sense, that althought it's a parenthesis, there is no point to an AND with only 1 condition. You also don't need to use SUM, you can just subtract.
 
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