+ Reply to Thread
Results 1 to 4 of 4

vlook

  1. #1
    Registered User
    Join Date
    02-07-2006
    Posts
    28

    vlook

    hi again,

    What would be the simplest way if: i had three columns. with values.

    i.e

    A B C
    DATE 1/1/06 N/A N/A
    N/A 7/3/06 N/A

    and i wanted to grab only the data with dates in it and put it into a final column.
    i.e
    1/1/06
    7/3/06

    i tried diong a complicated if statement. but my heard hurt :S

    would greatly appreciate any advice.

    thanks!

    Joel

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi Joel,

    Assuming your first row contains headings, enter the following formula into your first destination cell and fill down as required:

    =IF(ISERROR(DATEDIF(A2,NOW(),"d"))=FALSE,A2,IF(ISERROR(DATEDIF(B2,NOW(),"d"))=FALSE,B2,C2))

    HTH

    Robert

  3. #3
    Registered User
    Join Date
    02-07-2006
    Posts
    28

    it worked but

    hi Robert, thanks for that.
    it works on most of them. however there are a few that have the ?name error on it.

    one is layed out like this:
    #N/A #N/A 27/10/2006
    returns name error.

    any ideas?

    cheers

    Joel

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi Joel,

    Somehow a space (in the second ISERROR function) has gotten into the formula. Take this out and all should be fine.

    Let me know how it goes.

    Cheers,

    Robert

+ 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