+ Reply to Thread
Results 1 to 2 of 2

IF function with ISNumber(Search()) and Vlookup

  1. #1
    Registered User
    Join Date
    04-06-2020
    Location
    Boston
    MS-Off Ver
    Excel 2016
    Posts
    3

    IF function with ISNumber(Search()) and Vlookup

    Hi!
    I am trying to write a function that would use two vlookups, where in the first vlookup there are also IsNumber(Search()) supporting it. What I have written looks like this - IF(ISNUMBER(SEARCH("part of text", d3)),VLOOKUP(D3, 'tab x'!A:B,2,false),VLOOKUP(D3, 'tab x'!A:C,3,FALSE)).

    As you can see that in the first Vlookup, if cell D3 starts with certain text then we use data set of A:B. If D3 doesn't start with the needed text, then it is false and the second vlookup performs the search for cell D3 in the A:C dataset. Unfortunately, the function doesn't return what I need, however before I had those functions separately and they worked. It would be great if there is a solution to combine the two.

    *I also tried IFERROR instead of IF and it didn't help

    Thanks a lot!!

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: IF function with ISNumber(Search()) and Vlookup

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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] Replace mulitple IF(ISNUMBER(SEARCH(" with vlookup?
    By JulieQ in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-16-2024, 09:42 AM
  2. COMBINATION - ISNUMBER, SEARCH VLOOKUP - Experts Please!
    By Sgroff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2017, 12:04 PM
  3. [SOLVED] IF(AND(ISNUMBER(SEARCH())) Function
    By joshuarobbins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-30-2015, 12:57 PM
  4. [SOLVED] Countifs & Search (ISNumber) Function together
    By MeritaH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2014, 11:01 PM
  5. Combine IF THEN Function with ISNUMBER SEARCH?
    By alexa_raye in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2014, 11:44 AM
  6. [SOLVED] IF(ISNUMBER(SEARCH function
    By NickT83 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-16-2014, 10:18 AM
  7. ISNUMBER(SEARCH Function
    By somesoldiers in forum Excel General
    Replies: 2
    Last Post: 07-14-2009, 10:49 AM

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