Date field when null

ElaineWork

New Member
Joined
Sep 11, 2006
Messages
1
Hi there,

I'm sure this is a very simple query. I'm using a formula to pickup a date field in a workbook created/updated by another user. Sometimes this field is blank and when it is picked up it is translated to a date field of 00/01/1900. I would like blank date fields to translate to blank, null or 00/00/00 date field..how can I do this?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi, welcome to the board!

If it's just for display, you could custom format the cell as:
mm/dd/yyyy;;
 
Upvote 0
Hi Elaine

Welcome to the Board!

You can probably use a simple IF statement:

Code:
=IF('C:\[MyFile.xls]Sheet1'!$A$1<1,"",'C:\[MyFile.xls]Sheet1'!$A$1)

changing the link reference to suit.

Hope this helps!

Richard
 
Upvote 0
Welcome to the board.

Instead of =A1 (or similar) , try =IF(A1,A1,"")
 
Upvote 0

Forum statistics

Threads
1,203,120
Messages
6,053,626
Members
444,674
Latest member
Fieldy1999

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