show blank instead of #NUM

mholmes

New Member
Joined
Oct 30, 2002
Messages
16
I have a formula that is copied over multiple rows. Some of these rows don't have numbers so the formula shows #NUM. Instead of deleting the formula in those rows, is it possible to have the formula show nothing instead of #NUM? Thanks!


Marcus
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-11-01 15:42, mholmes wrote:
I have a formula that is copied over multiple rows. Some of these rows don't have numbers so the formula shows #NUM. Instead of deleting the formula in those rows, is it possible to have the formula show nothing instead of #NUM? Thanks!


Marcus

What is the formula?
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-11-01 15:49, mholmes wrote:
=DATEDIF(NOW(),F3,"d")

=IF(F3,DATEDIF(NOW(),F3,"d"),"")

or, rather,...

=IF(F3,DATEDIF(F3,TODAY(),"d"),"")
This message was edited by Aladin Akyurek on 2002-11-01 16:10
 

mholmes

New Member
Joined
Oct 30, 2002
Messages
16

ADVERTISEMENT

That's not giving back the same results as my formula.
 

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
On 2002-11-01 16:13, mholmes wrote:
That's not giving back the same results as my formula.

How about
=IF(F3,DATEDIF(TODAY(),f3,"d"),"")
or
=IF(F3,F3-TODAY(),"")
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-11-01 16:13, mholmes wrote:
That's not giving back the same results as my formula.

Which one? Why wouldn't it give same results?

The syntax for DATEDIF requires that...

=DATEDIF(Date1,Date2,Specs)

where Date1 < Date2.
 

Forum statistics

Threads
1,144,312
Messages
5,723,649
Members
422,508
Latest member
Lordkit1

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