Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default days count between different date format

I try to count the # of days in each row between two columns but each field
has different format. Some cells are in Date Format and some are in Text
format. How can I setup a formula to count the number of days? I got the
#NUM! when I used =DATEDIF(A1,B1,"D")+1.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default days count between different date format

You need to convert the text format to real dates first.

How do the text dates look like

--


Regards,


Peo Sjoblom

"David" wrote in message
...
I try to count the # of days in each row between two columns but each field
has different format. Some cells are in Date Format and some are in Text
format. How can I setup a formula to count the number of days? I got the
#NUM! when I used =DATEDIF(A1,B1,"D")+1.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default days count between different date format

Hi,

In a spare column, use the ISNUMBER() function on the date. Then filter the
column to display all FALSE values. Now select the date column and go to
Data Text to columns. Select the date format under "Date" radio button.
this will convert all the text values to dates.

This solution assumes that all the non dates are in one format.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"David" wrote in message
...
I try to count the # of days in each row between two columns but each
field
has different format. Some cells are in Date Format and some are in Text
format. How can I setup a formula to count the number of days? I got the
#NUM! when I used =DATEDIF(A1,B1,"D")+1.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default days count between different date format

the table was received from other party and I am trying to count the # of
days automatical in other column C. Even I format the column A & B to DATE,
all still keep in the original format. Like that:
ColumnA Column B
"1-1-90" 1-30-90
1-2-90 1-30-90
"1-1-90" "1-31-90"
I think the data was copied and pasted from other system to the Excel
worksheet

"Ashish Mathur" wrote:

Hi,

In a spare column, use the ISNUMBER() function on the date. Then filter the
column to display all FALSE values. Now select the date column and go to
Data Text to columns. Select the date format under "Date" radio button.
this will convert all the text values to dates.

This solution assumes that all the non dates are in one format.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"David" wrote in message
...
I try to count the # of days in each row between two columns but each
field
has different format. Some cells are in Date Format and some are in Text
format. How can I setup a formula to count the number of days? I got the
#NUM! when I used =DATEDIF(A1,B1,"D")+1.



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
Count left over days with date Pascale Excel Discussion (Misc queries) 1 April 15th 08 03:27 PM
Date glitch? First 12 days of month format differently than the r yakalo Excel Discussion (Misc queries) 3 April 9th 07 01:18 AM
I want to count days between two dates including start date Infinitebiscuit Excel Worksheet Functions 2 February 20th 07 01:27 PM
Count number of days between dates BUT IF null to current date kathi Excel Worksheet Functions 1 February 14th 06 05:11 PM
How do I count the number of days from 1 date to another? Steve R Excel Discussion (Misc queries) 3 February 2nd 06 09:58 PM


All times are GMT +1. The time now is 12:02 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"