+ Reply to Thread
Results 1 to 4 of 4

Checking a list of values for a match, using the match to decide where to take data from

  1. #1
    Registered User
    Join Date
    03-30-2012
    Location
    Tamworth, EN
    MS-Off Ver
    Excel 2007?
    Posts
    14

    Checking a list of values for a match, using the match to decide where to take data from

    Hi, I have attached a dummy document to this so that you can see what I'm looking for.

    In the dummy document I want (for each of the cells in Col. D) cell D2, Sheet 2 to display the value of the voucher. It needs to check cell C2 to see if any of the text matches with ANY cell in Col. A, Sheet 1. If it finds a match, then it needs to take the respective price from Col. B, Sheet 1.

    Hope that makes sense, thanks in advance.

    Dave
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Checking a list of values for a match, using the match to decide where to take data fr

    How about this formula in cell D2, dragged down:

    =IFERROR(INDEX(Sheet1!$B$2:$B$9,MATCH(TRUE,INDEX(ISNUMBER(FIND(Sheet1!$A$2:$A$9,C2)),0),0)),"Voucher not matched")

  3. #3
    Registered User
    Join Date
    03-30-2012
    Location
    Tamworth, EN
    MS-Off Ver
    Excel 2007?
    Posts
    14

    Re: Checking a list of values for a match, using the match to decide where to take data fr

    Thank you so much!

    Works like a charm.

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Checking a list of values for a match, using the match to decide where to take data fr

    Good, I was a bit worried because I wasn't sure if you were on Excel 2007 and the IFERROR function isn't in 2003.

    Glad you're sorted.

+ 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