Looking up a value based on a range

jwalkerack

Board Regular
Joined
Jun 19, 2013
Messages
81
Hey guys i was wondering if someone might be able to put me in the right direction for a following question

i think i need to do some kinda of VLOOK up , but i m not sure how to go about it.

i have two peices of informaiton the first is a table with sales peoples caterogries for sales. Like below

So for example , if sales person A , gets 500 sales in a month , it would be classed as type 1. The problem is that each person has a unique table which is unique. So example person B ranges and tpyes are different to person A and Person B


What i have on another Sheet is the list of the peoples names and there sales fiqures .. for the month. What i would like to have to be able to take the month sales fiqure and look this up and return the type that person , will get . Is this possible and if so how would i go about doing it and which funcation would i need to use.

Many Thanks Jack

Sales Person bottom Top Type
A010001
A100120002
A200130003
A300140004
A400150005
B535002
B5017503
B75213004
B113416506
c10020001
c200150002
c500160003
c600162004
c620170005

<colgroup><col style="width: 125pt; mso-width-source: userset; mso-width-alt: 6070;" width="166"> <col style="width: 78pt; mso-width-source: userset; mso-width-alt: 3803;" width="104"> <col style="width: 48pt;" width="64"> <col style="width: 75pt; mso-width-source: userset; mso-width-alt: 3657;" width="100"> <tbody>
</tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
What you need is SUMPRODUCT (not VLOOKUP)

Lets say your search criteria is Person="A" and Sales="1002" then you should use the following formula:
=SUMPRODUCT(--(A2:A15="A"),--(B2:B15<=1002),--(C2:C15>=1002),D2:D15)
 
Upvote 0
Hi there thanks for you help . i have nearly 100 different people , with different sales figures tables. Using the Sumproduct , would it mean i would have to input each table into the forumala for each person. Is there another way around this ?
 
Upvote 0
Sales PersonbottomTopType
A010001a24003
A100120002b10004
A200130003
A300140004
A
400150005
B535002
B5017503
B75213004
B113416506
c10020001
c200150002
c500160003
c600162004
c620170005

<tbody>
</tbody>

J2, control+shift+enter, not just enter, and copy down:

=LOOKUP(I2,IF($A$2:$A$15=$H2,$B$2:$B$15),$D$2:$D$15)
 
Upvote 0
As long as you are using 4 columns, the rest doesnt matter.
Instead of "A" and 1002, you should use range as a variable tho.
Something like this:
=SUMPRODUCT(--(A2:A15=I2),--(B2:B15<=J2),--(C2:C15>=J2),D2:D15)
 
Upvote 0

Forum statistics

Threads
1,214,921
Messages
6,122,280
Members
449,075
Latest member
staticfluids

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