Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Debbie
 
Posts: n/a
Default Determining number of days between dates

Hi, I have 2 date columns. One is a start date (column A), the other column
contains withdrawl dates(column B) (many cells in this column are blank). In
the third column I want to determine the number of days between column B and
column A but if column B is blank I want to use a specific date to subtract
from the start date.

Any suggestions?
Thanks.
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=IF(B1<"",B1,D1) - A1

Where D1 contains your "specific date"

In article ,
Debbie wrote:

Hi, I have 2 date columns. One is a start date (column A), the other column
contains withdrawl dates(column B) (many cells in this column are blank). In
the third column I want to determine the number of days between column B and
column A but if column B is blank I want to use a specific date to subtract
from the start date.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Assuming start date in A1, withdrawal date in B1, and the specific date in
C1, then try

=(IF(B1<"",B1,C1)-A1

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Debbie" wrote in message
...
Hi, I have 2 date columns. One is a start date (column A), the other

column
contains withdrawl dates(column B) (many cells in this column are blank).

In
the third column I want to determine the number of days between column B

and
column A but if column B is blank I want to use a specific date to

subtract
from the start date.

Any suggestions?
Thanks.



  #4   Report Post  
Debbie
 
Posts: n/a
Default

Sounds good but it's giving me a VALUE error?
Any suggestions?

"JE McGimpsey" wrote:

One way:

=IF(B1<"",B1,D1) - A1

Where D1 contains your "specific date"

In article ,
Debbie wrote:

Hi, I have 2 date columns. One is a start date (column A), the other column
contains withdrawl dates(column B) (many cells in this column are blank). In
the third column I want to determine the number of days between column B and
column A but if column B is blank I want to use a specific date to subtract
from the start date.


  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Any suggestions?

Don't use the space bar to clear B1. Text will cause an error with a
math operator.

Or else use something like

=IF(LEN(TRIM(B1))=0,D1,B1) - A1

In article ,
Debbie wrote:

Sounds good but it's giving me a VALUE error?

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
Calculating interest on number of days in the period Ron Excel Worksheet Functions 0 January 18th 05 12:59 AM
Calculating for number of days when values are in dates pumper Excel Worksheet Functions 7 January 17th 05 04:52 AM
How do I calculate difference in days & hours between two dates e. probi2 Excel Worksheet Functions 1 January 12th 05 03:59 PM
Subracting Dates to come up with the # of days between them KimberlyC Excel Worksheet Functions 8 December 20th 04 09:46 PM
Total number of each month in a column of dates GeorgeF. Excel Worksheet Functions 1 November 19th 04 06:10 PM


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