Results 1 to 6 of 6

Excel 2007 : Return a value based on a list

Threaded View

udn3939 Return a value based on a list 07-02-2012, 04:36 PM
Søren Larsen Re: Return a value based on a... 07-02-2012, 04:40 PM
oeldere Re: Return a value based on a... 07-02-2012, 04:45 PM
udn3939 Re: Return a value based on a... 07-03-2012, 06:44 AM
Søren Larsen Re: Return a value based on a... 07-03-2012, 06:51 AM
Søren Larsen Re: Return a value based on a... 07-03-2012, 07:30 AM
  1. #6
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Return a value based on a list

    No matter. Assuming the list of strings you want to search for is in column I, and you want to return the search string if it's found, or the original string if it's not, then try this:
    Formula: copy to clipboard
    =IFERROR(INDEX($I$2:$I$4,MAX(IF(ISERROR(SEARCH($I$2:$I$4,A2)),-1,1)*(ROW($I$2:$I$4)-ROW($I$2)+1))),A2)

    BTW: It's an array formula, and you MUST confirm with Ctrl+Shift+Enter, and not just Enter.
    Last edited by Søren Larsen; 07-03-2012 at 08:48 AM.

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