Cells A15:A19 are 0, 25000, 40000, 55000, 80000 respectively (The beginning of each of your
ranges)
Cells B15:B19 are 7%, 15%, 18%, 20%, 22.5% respectively (Your percentages)
The lookup values you will be using I'm assuming are the ones in Col D (Not sure of the relevance
of the salary data in Col B, so it may be that you haven't told us something, or that you have and
I just missed it)
If the first sales amount is in C4, then the first vlookup fomula is going into D4, the second in
D5 and so on.
Going back to the first reply I gave you, you should, to be honest, with the data listed as above,
now be able to walk through the question pretty simply, but, we've had a hell of a time with the
groups, and I'm just happy to be able to get in and post something again, so what the hell. Plese
do us the courtesy though of actually walking through the steps and trying to understand what is
actually going on, rather than just take the answer - It may well help you in further questions
you get, as it is a very useful tool.
In D4 then:-
You want to take the value in C4 (Sales amount), look it up in the leftmost column of your
commission table, and then return whatever the appropriate commission percentage is from the row
it matches your sales data to, which in this case will from the second column.
=VLOOKUP(C4,$A$15:$B$19,2)
So, the C4 above represents the sales value being looked up
The $A$15:$B$19 represents your commission table (I'll explain the $s in a minute)
The 2 represents the fact that you want data from the second column (Col B) of the table
What you really want though, is to be able to simply copy the formula down to the other cells, so
that you don't have to retype it. If you did that without having the $ signs, the formula
references will all adjust accordingly, and the reference to the table will be wrong, eg:-
If you had just put this in D4, and then copied it to D5
=VLOOKUP(C4,A15:B19,2)
you would end up with
=VLOOKUP(C5,A16:B20,2)
which as you can see, has the wrong table references because they have all moved down by 1. The
lookup value has changed to C5 instead of C4 as you would want it to, but you need to lock that
table down to the orginal values. This is where the $ signs come in, because they will fix
whatever part of the formula you put them in front of. By putting $ signs in, as per my example
(Note that I didn't put them on the lookup value reference), then copying down to say D5 will give
you the following:-
=VLOOKUP(C5,$A$15:$B$19,2)
Copying to D6
11 as well give you:-
=VLOOKUP(C6,$A$15:$B$19,2)
=VLOOKUP(C7,$A$15:$B$19,2)
=VLOOKUP(C8,$A$15:$B$19,2)
=VLOOKUP(C9,$A$15:$B$19,2)
=VLOOKUP(C10,$A$15:$B$19,2)
=VLOOKUP(C11,$A$15:$B$19,2)
Note the pattern:- Only the lookup value reference is changing.
As my first note explained, each formula will take the lookup value, search for it in the first
(leftmost) column of your table, and if it can't find it, then it will look for the next smaller
value that does exist in the table, match it to that and then return the % from the second column
(Hence the 2 in the formula).
Hope this helps.