Simple Formula

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I have a simple formula that returns a #VALUE error

How do i change to avoid the error

=IF(SUM(Q146-Q142)="","",SUM(Q146-Q142))

Thanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
This
SUM(Q146-Q142)=""
will Never be true, because SUM returns a number, not a text string..

Try
=IF(ISERROR(Q146-Q142),"",Q146-Q142)
 
Upvote 0
HHhmmm

I must be doing something wrong, none of these formula's work?

They all show "" and no sums?
 
Upvote 0
What is in Q142 and Q146?

At the time you expect to see a SUM, What do these formulas return?

=ISNUMBER(Q142)
=ISNUMBER(Q146)
 
Upvote 0
Hi Jonmo,

Q146 is an overall total of merged cells (Q15:S138)
Q142 is an overall total of merged cells (Q15:S138) with specific wording

What i am basically trying to do is have a basic workbook as a template so i need everything to show "" at the beginning but when values are put into the cells then a total shows up in these cells

Hope that makes sense

Thanks

Aladin,

This works but doesn't show the "" if no values are calculated

Thanks
 
Upvote 0
Hi Jonmo,

Q146 is an overall total of merged cells (Q15:S138)
Q142 is an overall total of merged cells (Q15:S138) with specific wording

What i am basically trying to do is have a basic workbook as a template so i need everything to show "" at the beginning but when values are put into the cells then a total shows up in these cells

Hope that makes sense

Thanks

Aladin,

This works but doesn't show the "" if no values are calculated

Thanks

It looks like the cells in question house text numbers... What formulas exactly do you have in them?

In the meantime...

=IF(AND(Q142="",Q146=""),"",N(Q146)-N(Q142))

Does this give you the desired calculation state?
 
Upvote 0
Hi Aladin,

The cells are formatted as "£" currency

Your formula calculates fine, but shows £0.00 when nothing is entered

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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