Formula Format - Driving Me Nuts

andreRM

New Member
Joined
Oct 4, 2006
Messages
3
I keep getting Value Error. Probably a simple thing for one of you, but it is a monster for me.

=SUM(2524+E5-D5)


Many thanks in advance.

André
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
In this formula

=SUM(2524+E5-D5)

the SUM function is redundant

this will give the same value

=2524+E5-D5

If this gives you an error then either E5 or D5 is probably text. If they are supposed to be empty then ensure they are and don't contain any spaces or other characters.

If E5 and/or D5 might contain text or numbers and you want to use the numbers when present but ignore text then try

=SUM(2524,E5)-SUM(D5)

or

=2524+N(E5)-N(D5)
 

andreRM

New Member
Joined
Oct 4, 2006
Messages
3
Bingo!

You were both right on. I had dashes in one of the columns to represent a filled cell. I changed those dashes to a zero and the formula liked it just fine.

Huge thanks to Barry and Poorwallace. I will sleep well tonight.

Andre.
 

Forum statistics

Threads
1,136,369
Messages
5,675,361
Members
419,565
Latest member
Phil57

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
Top