+ Reply to Thread
Results 1 to 6 of 6

Determining number of days between dates

  1. #1
    Debbie
    Guest

    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. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Format the cells in column C by General or Number instead of Date.
    And the formula could be =IF(ISBLANK(B1),Calulation1,B1-A1)

    Ola

  3. #3
    JE McGimpsey
    Guest

    Re: Determining number of days between dates

    One way:

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

    Where D1 contains your "specific date"

    In article <[email protected]>,
    Debbie <[email protected]> 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.


  4. #4
    Bob Phillips
    Guest

    Re: Determining number of days between dates

    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" <[email protected]> wrote in message
    news:[email protected]...
    > 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.




  5. #5
    Debbie
    Guest

    Re: Determining number of days between dates

    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 <[email protected]>,
    > Debbie <[email protected]> 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.

    >


  6. #6
    JE McGimpsey
    Guest

    Re: Determining number of days between dates

    > 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 <[email protected]>,
    Debbie <[email protected]> wrote:

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


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1