+ Reply to Thread
Results 1 to 7 of 7

Finding a match in different columns

  1. #1
    Registered User
    Join Date
    01-01-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    11

    Finding a match in different columns

    Hi - I'd appreciate some help with a formula to do the following in Excel 2003...

    If a number in cell M1 is also anywhere in column A (column A has unique numbers), then cell W1 (date) should equal the content of cell V (also date) in the row that that number appears in column A. If M1 is blank (or there is no match in column A), then W1 should equal V1.

    In W1, I currently have...

    Please Login or Register  to view this content.
    but that's returning the value of V1 in W1

    Any help would be much appreciated, thanks
    Last edited by jonbolton; 01-03-2009 at 09:31 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =IF(ISNUMBER(MATCH(M1,A:A,0)),VLOOKUP(M1,A:V,22,FALSE),V1)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-01-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    11
    Wow, thanks for such a speedy response.
    Yes, that works - many many thanks.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  5. #5
    Registered User
    Join Date
    01-01-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    11

    Question

    Oops - the formula is working if there a value in M1, but returns a #NAME error if M1 is blank. Is there a way to get around that?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    =if(m1="","",if(isnumber(match(m1,a:a,0)),vlookup(m1,a:v,22,false),v1))

  7. #7
    Registered User
    Join Date
    01-01-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    11
    Nice one, cheers!

+ 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