Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 157
Default Date issue-displaying as 0001-01-01

I have imported a file that is system generated from our IBM server, so can't
change it on that side. The records that don't have a date come across as
0001-01-01. I need to know if there is a way to format these cells to
display as blanks if it contains this. Hope someone can help....have
searched and searched and haven't been successful in finding anything?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 157
Default Date issue-displaying as 0001-01-01

ok, got the formula below to work, is that right, or is there a way to
shorten it?

=IF(VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE)="0001-01-01","
",VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE))

"Tasha" wrote:

I have imported a file that is system generated from our IBM server, so can't
change it on that side. The records that don't have a date come across as
0001-01-01. I need to know if there is a way to format these cells to
display as blanks if it contains this. Hope someone can help....have
searched and searched and haven't been successful in finding anything?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Date issue-displaying as 0001-01-01

Looks good to me. Essentially, you are looking up the value in $A3 on your
census file tab table $B$2:$F$572, and if the 5th column of that table for
the $A3 reference is "0001-01-01" then show nothing, otherwise display what
is there.
--
** John C **


"Tasha" wrote:

ok, got the formula below to work, is that right, or is there a way to
shorten it?

=IF(VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE)="0001-01-01","
",VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE))

"Tasha" wrote:

I have imported a file that is system generated from our IBM server, so can't
change it on that side. The records that don't have a date come across as
0001-01-01. I need to know if there is a way to format these cells to
display as blanks if it contains this. Hope someone can help....have
searched and searched and haven't been successful in finding anything?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 157
Default Date issue-displaying as 0001-01-01

Ok :) thanks John!!!

"John C" wrote:

Looks good to me. Essentially, you are looking up the value in $A3 on your
census file tab table $B$2:$F$572, and if the 5th column of that table for
the $A3 reference is "0001-01-01" then show nothing, otherwise display what
is there.
--
** John C **


"Tasha" wrote:

ok, got the formula below to work, is that right, or is there a way to
shorten it?

=IF(VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE)="0001-01-01","
",VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE))

"Tasha" wrote:

I have imported a file that is system generated from our IBM server, so can't
change it on that side. The records that don't have a date come across as
0001-01-01. I need to know if there is a way to format these cells to
display as blanks if it contains this. Hope someone can help....have
searched and searched and haven't been successful in finding anything?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Date issue-displaying as 0001-01-01

Your formula broke at a bad spot.

I wouldn't use: ," ",
I'd use: ,"",

No reason to put an extra space character in the cell.

Tasha wrote:

ok, got the formula below to work, is that right, or is there a way to
shorten it?

=IF(VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE)="0001-01-01","
",VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE))

"Tasha" wrote:

I have imported a file that is system generated from our IBM server, so can't
change it on that side. The records that don't have a date come across as
0001-01-01. I need to know if there is a way to format these cells to
display as blanks if it contains this. Hope someone can help....have
searched and searched and haven't been successful in finding anything?


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 157
Default Date issue-displaying as 0001-01-01

Thanks Dave, I took the extra space out.....

"Dave Peterson" wrote:

Your formula broke at a bad spot.

I wouldn't use: ," ",
I'd use: ,"",

No reason to put an extra space character in the cell.

Tasha wrote:

ok, got the formula below to work, is that right, or is there a way to
shorten it?

=IF(VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE)="0001-01-01","
",VLOOKUP($A3,'census file'!$B$2:$F$572,5,FALSE))

"Tasha" wrote:

I have imported a file that is system generated from our IBM server, so can't
change it on that side. The records that don't have a date come across as
0001-01-01. I need to know if there is a way to format these cells to
display as blanks if it contains this. Hope someone can help....have
searched and searched and haven't been successful in finding anything?


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change number formating to start at 0001? Rita and Matt New Users to Excel 4 November 13th 07 11:33 PM
Number format need to display 0001 etc Carys Excel Discussion (Misc queries) 4 July 27th 06 07:22 PM
Displaying the Date #3 Henry Excel Worksheet Functions 2 March 7th 06 01:35 AM
Displaying the Date#2 Henry Excel Worksheet Functions 1 March 3rd 06 08:14 AM
Displaying the date Henry Excel Worksheet Functions 1 March 3rd 06 03:27 AM


All times are GMT +1. The time now is 08:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"