disregarding cells

bronwyn

Board Regular
Joined
Jun 12, 2004
Messages
93
hi there, I have a cell with the formula =AM20-AL20 in it. What i would like to do is that am20 is a calculated cell. If am20 does not have a value in it, then i would like to disregard this so that i do not get a value error in the cell next to it, please help!!!!!
 

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.
Or:-

=IF(AM20="","",AM20-AL20)

Or:-

=IF(AM20,AM20-AL20,"")

Pekkavee,
You don't need to use ISNUMBER. My second formula will do the same thing as yours.
 
Upvote 0
Todd Bardoni said:
Or:-

=IF(AM20="","",AM20-AL20)

Or:-

=IF(AM20,AM20-AL20,"")

Pekkavee,
You don't need to use ISNUMBER. My second formula will do the same thing as yours.

Since the OP states that AM20 houses a formula with apparently delivering either a number or a formula-blank, the second formula you're referring to will fail with formula-blanks.

The first formula and one with ISNUMBER would cover the same ground if AM20 is empty or houses either a number including a real 0 or a formula-blank. If one wants to exclude the real 0's, then:

=IF(N(AM20),AM20-AL20,"")

would be the course to take.
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,794
Members
449,048
Latest member
greyangel23

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