Assign percentage to values in table1 based on percenatage in table2

bmbalamurali

New Member
Joined
Oct 3, 2013
Messages
6
Hi,


I have two sets of table, one with few rows and its corresponding percentages (This table varies time to time i.e. number of rows, percentage etc),
The other table has fixed 11 rows with percentage values.


Illustration below:


Table1 (Dynamic)


500,000 - 10%
1,000,000 - 15%
2,000,000 - 15%
999,999,999 - 20%


Table2 (Fixed)


99999 -
249999 -
499999 -
999999 -
1999999 -
4999999 -
9999999 -
24999999 -
49999999 -
99999999 -
999999999 -


I need a formula (preferable) or VBA to have the table 2 assigned with percentage based on first table everytime.


in Table1, 500,000 - 10% , so the table2 should be filled with 10% till three rows
(because till 499,999 is less than 500,000)


in Table1, 1,000,000 - 15%, so the percentage in table2 for 4th row should be 15%
(because the 999,999 less than 1,000,000)


in Table1, 2,000,000 - 15%, so the percentage in table2 for 5th row should be 15%
(because the 1,999,999 less than 2,000,000)


in Table1 999,999,999 - 20%, so the percentage in table2 for rest of rows should be 20%
(because all other rows are less than 999,999,999)


Like wise the table 1 varies in row count and percentage, so each time the second table should be updated based on table1.




Below the expected solution


Table1 (Dynamic)


500,000 - 10%
1,000,000 - 15%
2,000,000 - 15%
999,999,999 - 20%


Table2 (Fixed)


99999 - 10%
249999 - 10%
499999 - 10%
999999 - 15%
1999999 - 15%
4999999 - 20%
9999999 - 20%
24999999 - 20%
49999999 - 20%
99999999 - 20%
999999999 -20%


Hope i explined my requirement clearly, please do come back if need more information.


Thanks,
Bala
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
try this


Excel 2013/2016
AB
1010.0%
2500,00015.0%
31,000,00015.0%
42,000,00020.0%
5999,999,99920.0%
6
7
899,99910.0%
9249,99910.0%
10499,99910.0%
11999,99915.0%
121,999,99915.0%
134,999,99920.0%
149,999,99920.0%
1524,999,99920.0%
1649,999,99920.0%
1799,999,99920.0%
18999,999,99920.0%
Sheet1
Cell Formulas
RangeFormula
B8=LOOKUP(A8,$A$1:$A$5,$B$1:$B$5)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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