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