Horizontal vs. vertical lookups with formulas

Peggy2015

Board Regular
Joined
Oct 19, 2015
Messages
109
Hello,

How do I write a formula to look something up values on the same worksheet and then look up another section on the same worksheet and use that information below it? Please see below table.

How do I lookup information from company A that will give me the amount for Stationery in one cell and then look up information from Company B's stationery and the amount in another cell?
Company A
Description
Amount
1234
Stationery
100.00
2345
Calendars
50.00
3456
Paper
25.00
Company B
1234
Stationery
150.00
5678
Pencils
100.00

<tbody>
</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Maybe


A
B
C
D
E
F
G
1
Company A​
Description​
Amount​
Company​
Description​
Result​
2
1234​
Stationery​
100,00​
Company A​
Stationery​
100,00​
3
2345​
Calendars​
50,00​
Company B​
Stationery​
150,00​
4
3456​
Paper​
25,00​
5
6
Company B​
7
1234​
Stationery​
150,00​
8
5678​
Pencils​
100,00​
9

Criteria in columns E:F

Formula in G2 copied down
=INDEX(INDEX(C:C,MATCH(E2,A:A,0)):$C$1000,MATCH(F2,INDEX(B:B,MATCH(E2,A:A,0)):$B$1000,0))

M.
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,831
Members
449,471
Latest member
lachbee

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