VLOOKUP using one of three worksheets based on a data validation cell with 3 choices

cubs

New Member
Joined
Aug 11, 2011
Messages
14
[FONT=&quot]Based on what's in cell A3 (3%, 7%, or 10%) I want it to choose one of my three corresponding support matrix workbooks; “3%SUPPORT”, “7%SUPPORT”, “10%SUPPORT” and then using VLOOKUP cross reference the total number of new licenses in A4 and give me the new support amount in A5 which is in the 2<sup>nd</sup> column of each of the 3 worksheets. The 1<sup>st</sup> column contains the number of licenses. [/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]A1= Current number of licenses.[/FONT]

[FONT=&quot]A2= Current annual support amount.[/FONT]

[FONT=&quot]A3= Annual Renewal %. Data validation only allows 3%, 7%, or 10% to be[/FONT]
[FONT=&quot] entered.[/FONT]

[FONT=&quot]A4=New total number of licenses. This will be different each time. [/FONT]

[FONT=&quot]A5= New support amount based on the new number of licenses.[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]Basic Example Below[/FONT]

[FONT=&quot]A1 = 50 (Current number of licenses)
[/FONT]
[FONT=&quot]A2 = $200.00 (Current annual support amount)
[/FONT]
[FONT=&quot]A3= 3% | 7% | 10% (This client is using the 3% support matrix)
[/FONT]
[FONT=&quot]A4= 100 (New number of licenses)
[/FONT]
[FONT=&quot]A5= $250.00 Auto populates A5 with the new support amount for 100[/FONT]
[FONT=&quot] licenses from the 3% matrix worksheet. If 7% was chosen in
[/FONT]

[FONT=&quot] A3 it would have populated A5 with $251.00 and the 10%[/FONT]
[FONT=&quot] worksheet would have = $269.00)[/FONT]

[FONT=&quot]3% Support[/FONT][FONT=&quot]worksheet; A = Number of licenses B=New support amount[/FONT]
[FONT=&quot]A B[/FONT]
[FONT=&quot]99 $242.00[/FONT]
[FONT=&quot]100 [/FONT][FONT=&quot]$250.00[/FONT]
[FONT=&quot]101 $252.50[/FONT]

[FONT=&quot]7% Support[/FONT][FONT=&quot] worksheet A = Number of licenses B=New support amount[/FONT]

[FONT=&quot]A B[/FONT]
[FONT=&quot]99 $253.00[/FONT]
[FONT=&quot]100 $251.00[/FONT]
[FONT=&quot]101 $255.75[/FONT]

[FONT=&quot]10% Support[/FONT][FONT=&quot] worksheet A= Number of licenses B=New support amount[/FONT]
[FONT=&quot]A B[/FONT]
[FONT=&quot]99 $261.00[/FONT]
[FONT=&quot]100 $269.00[/FONT]
[FONT=&quot]101 $272.25[/FONT]

[FONT=&quot]Thank you for your help.[/FONT]
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
The MATCH() function lets you get a numeric position 1,2,3 of a selected value. So on your A3 value of 3%, this formula would result in 1:

=MATCH(A3, {0.03, 0.07, 0.1}, 0)


The CHOOSE() function lets you select from a series of formulas based on the numeric result of the first parameter:

=CHOOSE(NumericFormulaCalc, 1stFormula, 2ndFormula, 3rdFormula, etc...)

In your case so far it would be:

=CHOOSE(MATCH(A3, {0.03, 0.07, 0.1}, 0), VLOOKUP(A4, '[3%Support.xls]Sheet1!'$A$B, 2, 0), 2ndFormula, 3rdFormula, etc...)


Now you just need to insert your 3 different workbook reference VLOOKUP() formulas in the choose slots. The example above is a pure guess, you just insert your own known working VLOOKUP formulas and the CHOOSE function will pick the correct one.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,543
Messages
6,179,429
Members
452,914
Latest member
echoix

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top