formula

sue.Caradonna

New Member
Joined
Jan 17, 2005
Messages
8
I have a database that has 2 columns for "Start Date" and "Birth Date". These columns have been fomated to the date format.

I have a report with a box with the following formula entered

=IF(StartDate="","",VLOOKUP($S$1,Database,11,FALSE))

that puts the "start" date of a person when the user selects a person'a name from a drop down box that's linked to $S$1.

If there is a date in the database, the the date is shown O.K. However, if there is no date entered into the database, they the above formula returns "0-Jan-00" as a default. I've tried in the above formula to say that if there is nothing in the database then put nothing, but it doesn't seem to work as it always puts "0-Jan-00" default.

How can I fix this?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Change it to:
=IF(LEN(VLOOKUP(StartDate,G12:J22,3,FALSE)<2),"",VLOOKUP(StartDate,G12:J22,3,FALSE))
It is finding a blank with the lookup and then returning "" in date format which is 0-Jan-00.

Alternatively,change the format of the cell to:
[>0]d-mm-yy;
 
Upvote 0
sue.Caradonna said:
I have a database that has 2 columns for "Start Date" and "Birth Date". These columns have been fomated to the date format.

I have a report with a box with the following formula entered

=IF(StartDate="","",VLOOKUP($S$1,Database,11,FALSE))

that puts the "start" date of a person when the user selects a person'a name from a drop down box that's linked to $S$1.

If there is a date in the database, the the date is shown O.K. However, if there is no date entered into the database, they the above formula returns "0-Jan-00" as a default. I've tried in the above formula to say that if there is nothing in the database then put nothing, but it doesn't seem to work as it always puts "0-Jan-00" default.

How can I fix this?

A simple fix would be to enter some text in the empty cell in the Birth Date column signifying no Birth date has been entered.
 
Upvote 0

Forum statistics

Threads
1,203,082
Messages
6,053,417
Members
444,662
Latest member
AaronPMH

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