Look Up with Multiple Ranges

bishio

New Member
Joined
Aug 25, 2014
Messages
2
Apologies for almost certainly posting a question that has already been answered here, but I have tried a number of the solutions without any luck as I cannot relate the variables to my own, so here goes (note I am running Excel 2010 and I have no idea how to create the table below properly here);

I would like cells E14 and E15 to contain a formula based on the mapping table A3:E10 (Note my file has hundreds of these, this is an example). Columns A and B represent Range 1 that I would like cell A14 to be looked up or matched against, and column C and D represent Range 2 that I would like cell C14 to be matched against to deliver "Internet Rent" into cell E14.

Any help, preferably without Ctrl+Alt+Ent functions, would be gratefully received.

A
B
C
D
E
1
Unit Start
Unit End
Account Start
Account End
Result
2
3
49
4001
4500
Manufacturing Rent
4
50
54
4001
4500
Internet Rent
5
55
899
4001
4500
Retail Rent
6
900
999
4001
4500
Admin Rent
7
49
4501
5000
Manufacturing Rates
8
50
54
4501
5000
Internet Rates
9
55
899
4501
5000
Retail Rates
10
900
999
4501
5000
Admin Rates
11
12
13
Unit
Account
Look Up
14
52
4230
Internet Rent
15
720
4750
Retail Rates

<TBODY>
</TBODY>
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Apologies for almost certainly posting a question that has already been answered here, but I have tried a number of the solutions without any luck as I cannot relate the variables to my own, so here goes (note I am running Excel 2010 and I have no idea how to create the table below properly here);

I would like cells E14 and E15 to contain a formula based on the mapping table A3:E10 (Note my file has hundreds of these, this is an example). Columns A and B represent Range 1 that I would like cell A14 to be looked up or matched against, and column C and D represent Range 2 that I would like cell C14 to be matched against to deliver "Internet Rent" into cell E14.

Any help, preferably without Ctrl+Alt+Ent functions, would be gratefully received.

ABCDE
1Unit StartUnit EndAccount StartAccount EndResult
2
34940014500Manufacturing Rent
4505440014500Internet Rent
55589940014500Retail Rent
690099940014500Admin Rent
74945015000Manufacturing Rates
8505445015000Internet Rates
95589945015000Retail Rates
1090099945015000Admin Rates
11
12
13UnitAccountLook Up
14524230Internet Rent
157204750Retail Rates

<tbody>
</tbody>

Since you preferably dont want Arrays, it makes it harder,

Howerver, this formula would do it,
(This would go in cell E14)
And in column F, you need a "counter" from F3:F10, which is just from 1 to 8. <- Make this to make the formula work.

Then paste this in Cell E14, and drag down.
=INDEX(E3:E10;MATCH(SUMPRODUCT(--(A14>$A$3:$A$10)*--(A14<$B$3:$B$10)*--(C14>$C$3:$C$10)*--(C14<$D$3:$D$10)*$F$3:$F$10);$F$3:$F$10;0))

Note that the Red part is the "Counter" and, note, i'm using ";" as a formula divider. (or what you would call it)

The "counter" in column F might be avoidable, but I do not know how, and the SUMPRODUCT formula, does not recognise text, as its a matrix operating formula (to my knowledge)
 
Last edited:
Upvote 0
Sturla,

Thank you very much for the formula, it worked perfectly once I replaced the semi colons with commas and changed the '<' and '>' to be '=<' and '>='

You saved me many headaches, and hours trying to figure it out myself, so thank you once again.

Simon (Bishio)
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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