+ Reply to Thread
Results 1 to 12 of 12

Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    25

    Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    Sorry, I know this is a duplicate question, but I just can't seem to get my head around vlookup. Hopefully I explain myself clearly:


    This is what I have now and want to replace with something not as time consuming to mainatain - Short example:

    Sheet: CAR

    Enter in column C:

    =IF(ISNUMBER(SEARCH("vOLT*",B:B)),"cHEVY",IF(ISNUMBER(SEARCH("*Golf*",B:B)),"VM",IF(ISNUMBER(SEARCH("*Jetta*",B:B)),"VM")))


    What I am trying to do above is say:
    Search column B, for the words like 'volt', if like volt is found (or even volted), in Column C put the words Chevy, or if Volt<anything> not found, search for "*Golf*", and continue/repeat/go through the list I have made.

    Column B - "Car Models" a listing of various car models. Car model types listed more than once.
    Column C - blank with formula. Heading, "Categorize Manufacture"

    Instead what I want to do is create a new sheet called Sheet2 and have a table that outlines - column A all of the possible car models (volt, jetta, golf...etc), and list in column B their corresponding manufacture (chevy,VW,ford, etc...).

    THEN, back to my original Sheet:CAR, I want to somehow call in column C my new formula to look in Column B for car model names 'like' (not exact spelling, some names are incomplete or spelled various ways and with spaces) and enter the corresponding car manufacture that I have outlined in my table in Sheet2.

    Does that make sense? Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    Hello and welcome to the forum ! can you please attach a sample book !

    to attach go to advanced tab==Select paper clip icon or manage attachment
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    If your table is in sheet2 A2:B100 then try this formula in CAR sheet C2 copied down

    =IFERROR(LOOKUP(2,1/SEARCH(Sheet2!A$2:A$100,B2)/(Sheet2!A$2:A$100<>""),Sheet2!B$2:B$100),"No match")
    Audere est facere

  4. #4
    Registered User
    Join Date
    02-10-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    Sorry, it has taken me awhile to respond, but I'm now back online. I've simplied my spreadsheet for the purpose of the example - see attached (car.xlsx).

    Sheet called "Car" includes the formula I'm using.
    Sheet called "Table" includes the table I want to somehow call into my formula to reduce the length of my formula

    Forumla I want to reduce - [=IF(ISNUMBER(SEARCH("*vOLT*",B:B)),"cHEVY",IF(ISNUMBER(SEARCH("*Golf*",B:B)),"VM",IF(ISNUMBER(SEARCH("*Jetta*",B:B)),"VM")))]
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-10-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    @daddylonglegs - I just tried the formula you provided in my example spreadshet & it worked . Though I have no idea what I am reading - lol. I will paste the formula in my big sheet and see if still works. Thanks.

  6. #6
    Registered User
    Join Date
    02-10-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    Super excited, that works! Thank-you so much. I will close this thread.

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    you can also use in Car sheet @ C2 copy paste below then
    =INDEX(TABLE!$B$2:$B$100,LARGE(ISNUMBER(SEARCH(INDEX("*"&TABLE!$A$2:$A$100&"*",0),B2))*ROW(INDIRECT("1:"&COUNTA(TABLE!$A$2:$A$100))),1))

    Hold control and Shift together and Hit enter to make it array formula and drag down

  8. #8
    Registered User
    Join Date
    03-16-2024
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    1

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    Quote Originally Posted by daddylonglegs View Post
    If your table is in sheet2 A2:B100 then try this formula in CAR sheet C2 copied down

    =IFERROR(LOOKUP(2,1/SEARCH(Sheet2!A$2:A$100,B2)/(Sheet2!A$2:A$100<>""),Sheet2!B$2:B$100),"No match")
    It's perfectly working fine, simply amazing skills

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    ------------------------------- deleted ---------------------------
    Last edited by wk9128; 03-16-2024 at 09:41 AM.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    wk9128. This thread is 10 years old!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  11. #11
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    Quote Originally Posted by Glenn Kennedy View Post
    wk9128. This thread is 10 years old!!
    Oh my goodness, I deleted it

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?

    LoL. You must be bored today!!

+ 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. 7 nested IF statements with a SEARCH added IF(ISNUMBER(SEARCH({"INSUR","AP REFUND"}
    By michaelproctor001 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-10-2013, 02:13 PM
  2. Replies: 6
    Last Post: 02-25-2013, 03:16 AM
  3. Required "IF(ISNUMBER(SEARCH" related formula
    By nur2544 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2013, 11:39 AM
  4. Alternative to nesting formula? "IF(ISNUMBER(SEARCH"
    By ad9051 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-19-2012, 06:12 AM
  5. using "isnumber(search" for a range of numbers
    By redhead522 in forum Excel General
    Replies: 5
    Last Post: 07-23-2009, 12:14 PM

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