+ Reply to Thread
Results 1 to 4 of 4

Vlookup with nested if statments

  1. #1
    Registered User
    Join Date
    10-18-2007
    Posts
    89

    Lightbulb Vlookup with nested if statments

    Hi Guys,

    I must be missing something, and it's proably starring me in the face. I have the attached sheet. When the user selects the city and enters the weight I need to find the appropriate rate. I can get the correct rate using this
    Please Login or Register  to view this content.
    but I need that if statment to be associated to the city selected in O10.

    Let me know if you need more info.

    Thanks
    -James
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vlookup with nested if statments

    Hi James,

    Use a compound =INDEX(=MATCH()) formula instead i.e.

    Please Login or Register  to view this content.
    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup with nested if statments

    Try:

    =INDEX($G$5:$L$108,MATCH(O10,$C$5:$C$108,0),MATCH(TRUE,INDEX($G$3:$L$3>=O4,0),0))

    This will go to 250 if say you input weight is less than 250 (e.g 150)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Vlookup with nested if statments

    Fixed your formula. See attached.
    Attached Files Attached Files
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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