#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default DATE PROBLEM

Hi,
I'm having trouble sorting a date issue on an Excel 2000 file, where
there are blanks.

I've got the data copied to a separate sheet and have Date 1 in the first
column and Date 2 beside that.
It was easy to take date 1 from 2 and get the number of days in-between (for
use in a countif function & graphing). My problem is that the main data page
has a lot of empty cells in it, and on copying this across it comes out at
01/01/1900 on my data/graph page

How do I get Excel to ignore the blank cells?

Thanks,


Malcolm


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default DATE PROBLEM

=IF(OR(ISBLANK(A1),ISBLANK(B1)),"",B1-A1) if you want the answer to be an
empty string.

If you are using the results in a graph, use
=IF(OR(ISBLANK(A1),ISBLANK(B1)),NA(),B1-A1) [and if you want to you can use
conditional formatting to hide the #N/A results on your sheet.]
--
David Biddulph

"Malcolm Austin" wrote in message
...
Hi,
I'm having trouble sorting a date issue on an Excel 2000 file,
where there are blanks.

I've got the data copied to a separate sheet and have Date 1 in the first
column and Date 2 beside that.
It was easy to take date 1 from 2 and get the number of days in-between
(for use in a countif function & graphing). My problem is that the main
data page has a lot of empty cells in it, and on copying this across it
comes out at 01/01/1900 on my data/graph page

How do I get Excel to ignore the blank cells?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default DATE PROBLEM

That did the trick, many thanks.


"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
=IF(OR(ISBLANK(A1),ISBLANK(B1)),"",B1-A1) if you want the answer to be an
empty string.

If you are using the results in a graph, use
=IF(OR(ISBLANK(A1),ISBLANK(B1)),NA(),B1-A1) [and if you want to you can
use conditional formatting to hide the #N/A results on your sheet.]
--
David Biddulph

"Malcolm Austin" wrote in message
...
Hi,
I'm having trouble sorting a date issue on an Excel 2000 file,
where there are blanks.

I've got the data copied to a separate sheet and have Date 1 in the first
column and Date 2 beside that.
It was easy to take date 1 from 2 and get the number of days in-between
(for use in a countif function & graphing). My problem is that the main
data page has a lot of empty cells in it, and on copying this across it
comes out at 01/01/1900 on my data/graph page

How do I get Excel to ignore the blank cells?





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
What is this Date problem? Ozzy Excel Discussion (Misc queries) 2 June 26th 06 03:03 PM
date problem bill gras Excel Worksheet Functions 6 October 16th 05 07:38 AM
Date Problem !! cassy01 Excel Discussion (Misc queries) 1 October 4th 05 11:17 PM
Date Problem Dutyman Excel Discussion (Misc queries) 3 May 25th 05 01:01 PM
Another Date Problem dnsnider Excel Worksheet Functions 2 December 25th 04 03:23 AM


All times are GMT +1. The time now is 04:37 AM.

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

About Us

"It's about Microsoft Excel"