+ Reply to Thread
Results 1 to 4 of 4

How to Make VLOOKUP Formula Dynamic

  1. #1
    Registered User
    Join Date
    10-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to Make VLOOKUP Formula Dynamic

    Hi Guys,

    How do I repeat the second part of this formula, like for example if the column does not contain ''Mid-Summer'', I want it to then check if it contains ''Wax-Man'' for example, then for it to VLookup the area for waxman or mid-summer depend on what what it contains.

    This is the formula I'm using but it does not work. The second part is in red that I want it to repeat.

    =IF(ISNUMBER(FIND("Mid-Summer",B1)),VLOOKUP(B7,A8:B8,2,0),ISNUMBER(FIND("Wax-Man",B1)),VLOOKUP(B4,A5:B5,2,0))

    Thanks
    Last edited by AliGW; 10-01-2018 at 08:35 AM. Reason: Ttile updated.

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: How to Make VLOOKUP Formula Dynamic

    Welcome to the forum!

    I have taken the liberty to update your thread title to fit in with our expectations here. Please use this as a guideline when composing thread titles in the future. Thanks.
    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.

  3. #3
    Registered User
    Join Date
    09-27-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    14

    Re: How to Make VLOOKUP Formula Dynamic

    hi pillr001,
    can you provide a sample worksheet. that will make the things bit easier to explain.

    regards
    anup

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,626

    Re: How to Make VLOOKUP Formula Dynamic

    If I understand correctly you need a second IF function as in:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You didn't tell us what you wanted the formula to display if cell B1 contains neither "Mid-Summer" nor "Wax-Man", so as written the formula will return FALSE in that instance.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  2. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  3. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  4. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  5. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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