+ Reply to Thread
Results 1 to 4 of 4

Thread: 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
    4

    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:

    SIZE: 		BRCK1	BRCK2	BRCK3
    Size 1		$11.50	$14.00	$18.00
    Size 2		$5.75	$7.00	$9.00
    Size 3		$0.96	$1.17	$1.50
    ...
    Size 13		$0.96	$1.17	$9.99
    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 Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    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.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Valued Forum Contributor
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2007
    Posts
    724

    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
    4

    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.2.0