SUM of cells that have conditional formatting applied to them

Ryancc49

New Member
Joined
Sep 14, 2022
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Hi, sorry I’m not too advance with excel so may be an obvious answer to my problem!

I’ve got a budget spreadsheet that has cells with IFS conditions based on how much someone is charged for an event based on their job banding (band 3 pay £45, band 5 pay £50 eg =IFS(B4=3, “45”, B4=5, “50”). So now have a column of how much is due from each person.

Is there a way to add the value of the cells in that column that have this formatting applied to them? Doing a simple =SUM(B4:B99) will give a value of 0 as the cells are conditionally formatted and don’t actually hold the value of 45 or 50 but the IFS condition

I hope this makes sense! Thanks in advance!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to the Board!

That is not Conditional Formatting, but rather a conditional formula.

The reason why SUM is not working is because you are returning text values, not numeric ones.
Change your formula to this:
Excel Formula:
=IFS(B4=3,45,B4=5,50)
and your SUM should work.

This is because anything enclosed in double-quotes is treated as literal text.
Numeric values should NOT be enclosed between double-quotes if you want to do mathematical operations on them.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,430
Messages
6,119,453
Members
448,898
Latest member
drewmorgan128

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