Results 1 to 17 of 17

If and statement

Threaded View

  1. #1
    Registered User
    Join Date
    05-21-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    If and statement

    If and statement help

    I have a SS with 2 columns (dates).
    in some instances column 1 may be blank, while column 2 has a value entered, visa versa or both columns may be blank.

    My goal is to find the number of days between the two dates in column 1 and 2

    *if column 1 contains text and column 2 does not, i'd like to find the difference between todays date and column 1 date

    *if neither column contains text id like column 3 to remain blank

    I have entered the following formula, but am getting responses of 40,000 days, can anyone help me figure out where i've gone wrong?

    =IF((AND(A2="*",B2="")),(TODAY()-A2),(B2-A2))
    Last edited by tykuhn99; 05-27-2011 at 01:27 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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