How to gather data from next cell over

dmb41

Board Regular
Joined
Nov 10, 2010
Messages
75
I have a large table of data and I am looking to extract what is next the data out of the table.

I have something like the following:

A B C D
101 BLD WA A2
105 BLD WA B5
115 BLD WA C2
125 BLD WA G5

And I am looking to get this from the data:

101 A2
115 B5
105 C2

Basically what ever I type (101, 115, etc) I am looking to retrieve what ever is next to it in column D.

I have tried this function but I am missing something:
=IF(MATCH($A2,$A$10:$A$151216,0),$D10,0)

Any direction would be appreciated.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try like this

Excel Workbook
ABCDEF
1101BLDWAA2101A2
2105BLDWAB5
3115BLDWAC2
4125BLDWAG5
Sheet2
 
Upvote 0
I have a large table of data and I am looking to extract what is next the data out of the table.

I have something like the following:

A B C D
101 BLD WA A2
105 BLD WA B5
115 BLD WA C2
125 BLD WA G5

And I am looking to get this from the data:

101 A2
115 B5
105 C2

Basically what ever I type (101, 115, etc) I am looking to retrieve what ever is next to it in column D.

I have tried this function but I am missing something:
=IF(MATCH($A2,$A$10:$A$151216,0),$D10,0)

Any direction would be appreciated.
One way...

=INDEX($D$10:$D$151216,MATCH($A2,$A$10:$A$151216,0))
 
Upvote 0
Thanks. Exactly what I was looking for. Should be easy to expand to the large table of data I have, also.
 
Upvote 0

Forum statistics

Threads
1,203,384
Messages
6,055,118
Members
444,763
Latest member
Jaapaap

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