Finding Values in a Table

markhib

New Member
Joined
Apr 21, 2008
Messages
19
Hi There,

Please help!

i have a table set out as follows,

ABCDE
1 Age of DebtBusinessPersonGovtOther
2Current0%0%5%0%
3Up to 30 days overdue10%5%5%0%
431 - 60 days overdue20%5%20%0%
561 - 90 days overdue30%15%20%0%
691 - 120 days overdue40%15%20%0%
7121 - 150 days overdue50%15%20%0%
8151 - 180 days overdue60%45%20%50%

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>


In a seperate sheet i have a bunch of outstanding transactions and want to apply the correct rate dependant on wether the entity is a Business, Person, Gov or Other and the age of the Debt is Current, 30 days etc etc.

I thought about if statements but too many possibilities, Ive tried concatenating age and entity and creating a list to do a vlook up but am sure there is a better way..

Many Thanks

MArk
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
one way

Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
G
H
I
J
K
1
overdueBusinessPersonGovtOtheroverduewho ? formula in J2
2
180
60%​
45%​
20%​
50%​
125​
Business
50%​
=INDEX($B$2:$E$8,MATCH(H2,$A$2:$A$8,-1),MATCH(I2,$B$1:$E$1,0))
3
150
50%​
15%​
20%​
0%​
4
120
40%​
15%​
20%​
0%​
5
90
30%​
15%​
20%​
0%​
6
60
20%​
5%​
20%​
0%​
7
30
10%​
5%​
5%​
0%​
8
0
0%​
0%​
5%​
0%​
Sheet: Sheet2
 
Upvote 0
you probably need a catch-all row

Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
G
H
I
J
K
1
overdueBusinessPersonGovtOtheroverduewho ? formula in J2 copied down
2
9999
666%​
666%​
666%​
50%​
125​
Business
50%​
=INDEX($B$2:$E$9,MATCH(H2,$A$2:$A$9,-1),MATCH(I2,$B$1:$E$1,0))
3
180
60%​
45%​
20%​
50%​
500​
Person
666%​
4
150
50%​
15%​
20%​
0%​
25%​
Govt
5%​
5
120
40%​
15%​
20%​
0%​
6
90
30%​
15%​
20%​
0%​
7
60
20%​
5%​
20%​
0%​
8
30
10%​
5%​
5%​
0%​
9
0
0%​
0%​
5%​
0%​
Sheet: Sheet2
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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