+ Reply to Thread
Results 1 to 12 of 12

Look up, Match question

Hybrid View

  1. #1
    Registered User
    Join Date
    07-25-2009
    Location
    Manila
    MS-Off Ver
    Excel 2016
    Posts
    39

    Red face Look up, Match question

    I have a file with a column D "MR/NAMEA/28"
    I need to output their gender by Look up or match from a list:
    On the list are names with MALE as gender.
    I need to have an output that when a string on Column "NAME" matched any on the column "DETAILS", it will output "GENDER".
    Those who do not satisfy the criteria, will output a defined STRING.
    please see attached
    TIA

    Capture.JPG

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Look up, Match question

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    07-25-2009
    Location
    Manila
    MS-Off Ver
    Excel 2016
    Posts
    39

    Red face Re: Look up, Match question

    Please see attached file for the look up source and the before and after.
    Thank you
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Look up, Match question

    Formula for B2 and fill down

    Formula: copy to clipboard
    =IF(ISNA(VLOOKUP(MID(A2,4,FIND("/",A2,4)-5),'LOOK UP'!A1:B2000,2)),"Not Found","MALE")

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,957

    Re: Look up, Match question

    Maybe like this?

    =IFERROR(LOOKUP(2,-SEARCH('LOOK UP'!$A$2:$A$7,'RAW - AFTER'!A2),'LOOK UP'!$B$2:$B$7),"FEMALE")

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Look up, Match question

    If all listed names are "MALE", then this in B2, copied down:
    =IF(MAX(INDEX(--ISNUMBER(SEARCH('LOOK UP'!A$2:$A$7,A2)),)),"MALE","FEMALE")
    Last edited by leelnich; 02-09-2018 at 08:33 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  7. #7
    Registered User
    Join Date
    07-25-2009
    Location
    Manila
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Look up, Match question

    Thank you all for the responses

    But the string to be searched does not appear on a defined position. Need to search it on any position with the series of strings delimited by "/"

    Thank you

  8. #8
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Look up, Match question

    The formulas from posts #5 and #6 both find the look_for strings in ANY position within the look_in strings.

  9. #9
    Registered User
    Join Date
    07-25-2009
    Location
    Manila
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Look up, Match question

    Hi

    Im looking for the strings on LOOK UP Sheet, Column A on the RAW - BEFORE Column A.
    Need to output what it is on LOOK UP Sheet, Column B on RAW - BEFORE Column B.

  10. #10
    Registered User
    Join Date
    07-25-2009
    Location
    Manila
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Look up, Match question

    A friend gave me this formula
    =IF(SEARCH('LOOK UP'!A:A,'RAW - BEFORE'!A:A)=1,'LOOK UP'!B:B,0)

    but the 'LOOK UP'!A:A should be on the same line with 'RAW - BEFORE'!A:A to have a value

  11. #11
    Registered User
    Join Date
    07-25-2009
    Location
    Manila
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Look up, Match question

    help on this please
    TIA

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,691

    Re: Look up, Match question

    Assuming you are going to complete the lookup list (the women are currently not accounted for), try this in B2 of the after sheet, copied down:

    =IFERROR(VLOOKUP(MID(A2,4,FIND("/",A2,4)-5),'LOOK UP'!$A$2:$B$7,2,0),"")
    Last edited by AliGW; 02-16-2018 at 06:16 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Quick INDEX MATCH MATCH OFFSET question
    By franb123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-25-2017, 02:56 AM
  2. Index, match, match Question!. Seems so simple but can't figure it out...
    By huikimhuikim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2013, 01:57 PM
  3. [SOLVED] Match, Sum Question
    By Mav17 in forum Excel General
    Replies: 1
    Last Post: 06-09-2012, 07:14 PM
  4. Match then Sum Question
    By michaelweaver4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2010, 05:29 AM
  5. match(?) question
    By redneck joe in forum Excel General
    Replies: 2
    Last Post: 10-06-2010, 09:27 AM
  6. if(match question
    By eprice in forum Excel General
    Replies: 1
    Last Post: 02-11-2009, 01:34 PM
  7. Match question
    By steven2225 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2007, 10:23 PM

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