Two way lookup - Text and Number

thegreencar

New Member
Joined
Feb 8, 2016
Messages
34
Hi I'm trying to write a formula to solve for the below, where the Item and Quota are given and the multiplier is needed.
Tried doing a sumifs with True lookup back can't get it to work.

Any help is greatly appreciated.

ItemQuota

<tbody>
[TD="class: xl66, width: 76"]Multiplier1

<tbody>
[TD="class: xl66"]Item
Thanks,

<tbody>
[TD="class: xl67"]

<tbody>
apples
apples
apples
Pears
Pears
Pears
Oranges
Oranges
Oranges

[TD="class: xl66, width: 76"]Multiplier2[/TD]
[TD="class: xl66, width: 76"]Multiplier3[/TD]

[TD="align: right"]20[/TD]
[TD="class: xl67, align: right"]1.05[/TD]
[TD="class: xl67, align: right"]1.10[/TD]
[TD="class: xl67, align: right"]2.00[/TD]

[TD="align: right"]40[/TD]
[TD="class: xl67, align: right"]1.25[/TD]
[TD="class: xl67, align: right"]2.00[/TD]
[TD="class: xl67, align: right"]0.00[/TD]

[TD="align: right"]60[/TD]
[TD="class: xl67, align: right"]1.25[/TD]
[TD="class: xl67, align: right"]2.00[/TD]
[TD="class: xl67, align: right"]0.00[/TD]

[TD="align: right"]10[/TD]
[TD="class: xl67, align: right"]1.10[/TD]
[TD="class: xl67, align: right"]1.20[/TD]
[TD="class: xl67, align: right"]2.00[/TD]

[TD="align: right"]20[/TD]
[TD="class: xl67, align: right"]1.15[/TD]
[TD="class: xl68, align: right"]1.70[/TD]
[TD="class: xl68, align: right"]2.50[/TD]

[TD="align: right"]30[/TD]
[TD="class: xl68, align: right"]1.65[/TD]
[TD="class: xl68, align: right"]2.20[/TD]
[TD="class: xl68, align: right"]3.00[/TD]

[TD="align: right"]50[/TD]
[TD="class: xl67, align: right"]1.05[/TD]
[TD="class: xl67, align: right"]1.10[/TD]
[TD="class: xl67, align: right"]2.00[/TD]

[TD="align: right"]100[/TD]
[TD="class: xl68, align: right"]1.10[/TD]
[TD="class: xl68, align: right"]1.15[/TD]
[TD="class: xl68, align: right"]2.05[/TD]

[TD="align: right"]250[/TD]
[TD="class: xl68, align: right"]1.15[/TD]
[TD="class: xl68, align: right"]1.20[/TD]
[TD="class: xl68, align: right"]2.10[/TD]

</tbody>
[/TD]
[TD="class: xl66, width: 64"][/TD]
[TD="class: xl66, width: 64"][/TD]

[TD="class: xl67"]Quota[/TD]
[TD="class: xl68, width: 76"] Multiplier1
[/TD]
[TD="class: xl68, width: 76"] Multiplier2 [/TD]
[TD="class: xl68, width: 76"] Multiplier3 [/TD]

[TD="class: xl69"]apples[/TD]
[TD="class: xl70, align: center"]60[/TD]
[TD="class: xl71"] Formula [/TD]
[TD="class: xl71"] Formula [/TD]
[TD="class: xl71"] Formula [/TD]

</tbody>
[/TD]
[TD="align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]

[TD="align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]

[TD="align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]

[TD="align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]

[TD="align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl68, align: right"][/TD]
[TD="class: xl68, align: right"][/TD]

[TD="align: right"][/TD]
[TD="class: xl68, align: right"][/TD]
[TD="class: xl68, align: right"][/TD]
[TD="class: xl68, align: right"][/TD]

[TD="align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]
[TD="class: xl67, align: right"][/TD]

[TD="align: right"][/TD]
[TD="class: xl68, align: right"][/TD]
[TD="class: xl68, align: right"][/TD]
[TD="class: xl68, align: right"][/TD]

[TD="align: right"][/TD]
[TD="class: xl68, align: right"][/TD]
[TD="class: xl68, align: right"][/TD]
[TD="class: xl68, align: right"][/TD]

[TD="class: xl68"][/TD]
[TD="class: xl68, width: 76"][/TD]
[TD="class: xl68, width: 76"][/TD]

[TD="class: xl69"][/TD]
[TD="class: xl70"][/TD]
[TD="class: xl71"][/TD]
[TD="class: xl71"][/TD]
[TD="class: xl71"][/TD]

</tbody>
[/TD]

[TD="class: xl71"][/TD]

[TD="class: xl73"][/TD]
[TD="class: xl74"][/TD]

</tbody>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Sorry, should have said that the quota figures are the max in that range - so Apples Quota 15, would fall under Quota 20 and Apples Quota 25 would be Quota under Quota 40
 
Upvote 0
try


Excel 2013/2016
ABCDE
1ItemQuotaMultiplier1Multiplier2Multiplier3
2apples201.051.12
3apples401.2520
4apples601.2520
5Pears101.11.22
6Pears201.151.72.5
7Pears301.652.23
8Oranges501.051.12
9Oranges1001.11.152.05
10Oranges2501.151.22.1
11
12ItemQuotaMultiplier1Multiplier2Multiplier3
13apples601.2520
Sheet1
Cell Formulas
RangeFormula
C13{=INDEX($C$2:$E$10,MATCH($A13&$B13,$A$2:$A$10&$B$2:$B$10,0),MATCH(C$12,$C$1:$E$1,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
that wouldn't work with the condition in post#2, will get back to you later
 
Upvote 0
Hi, thanks again for the above. Can you help with one further change on this.
I changed this slightly to accommodate different quota values, such as Quota 10 or 11. I did this by changing 0 to 1 in the first Match instance =INDEX($C$2:$E$10,MATCH($A13&$B13,$A$2:$A$10&$B$2:$B$10,1),MATCH(C$12,$C$1:$E$1,0))

If the quota in B13 is 10, this returns N/A in C13, where as I'd like it to return 1.05.

Can you help me fix this?
Thanks,
 
Upvote 0
try this instead, confirm with shift-control-enter

Code:
=INDEX($C$2:$E$10,MATCH($A13&SMALL(IF($A$2:$A$10=$A13,IF($B$2:$B$10 > =$B13,$B$2:$B$10)),1),$A$2:$A$10&IF($A$2:$A$10=$A13,IF($B$2:$B$10 > =$B13,$B$2:$B$10)),0),MATCH(C$12,$C$1:$E$1,0))
 
Upvote 0
a simpler one, confirm with shift-control-enter

Code:
=INDEX($C$2:$E$10,MATCH(SMALL(IF($A$2:$A$10=$A13,IF($B$2:$B$10>=$B13,$B$2:$B$10)),1),$B$2:$B$10,0),MATCH(C$12,$C$1:$E$1,0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,277
Messages
6,171,153
Members
452,383
Latest member
woodsfordg

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