+ Reply to Thread
Results 1 to 4 of 4

Based on value of 2 dropdowns, return value from a table?

  1. #1
    Registered User
    Join Date
    09-30-2011
    Location
    Brunswick, ME
    MS-Off Ver
    Excel 2007
    Posts
    10

    Based on value of 2 dropdowns, return value from a table?

    Sorry, I've searched for this but I'm lost. I tried doing it with nested IF statements, but there are too many for excel to accept.

    Basically I have two cells where a user can select options from a dropdown.

    Dropdown 1: size (13 options here)
    Dropdown 2: tax bracket (3 options here)

    Based on their choices, I'd like excel to look up the correct tax amount from a table on another sheet. The table looks something like this:

    Please Login or Register  to view this content.
    Is there a short and simple way to do this? How would the formula look if Size 1 is cell A1, and the final cell in the sheet is D13 ($9.99)?
    Any help is greatly appreciated.
    Last edited by CreeDo; 09-30-2011 at 03:27 PM. Reason: BECAUSE NBVC IS AWESOME

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

    Re: Based on value of 2 dropdowns, return value from a table?

    Try:

    =INDEX($A$1:$D13,MATCH(X1,$A$1:$A$13,0),MATCH(Y1,$A$1:$D$1,0))

    where X1 and Y1 hold the inputted Size and Bracket, respectively.
    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.

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Based on value of 2 dropdowns, return value from a table?

    see attached sample
    it uses Vlookup.
    modytrane
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-30-2011
    Location
    Brunswick, ME
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Based on value of 2 dropdowns, return value from a table?

    Thank you both so much. I used NBVC's example and it worked perfectly once I figured out how to adapt it to my workbook. Also thank you for modytrane, I actually didn't see your post until just now but I appreciate the effort. Great forum here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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