Search a column, copy the field next to it.

betojss

New Member
Joined
Jun 3, 2011
Messages
4
Hello,

I've seen this answered before but it's not specific and doesn't work for my situation.

Imagine I have Client ID on column A and Client name on Colum B. Let's say from A1 and B1 to A10 and B10.

Now, on another part of the same SHEET and workbook (of course) let's say, H1, I have a number that is the result of another formula. Let's say "2", which was the sum of C1 and D1.
I need excel to search for that 2 on column A and display its respective "Client ID" on cell H2, how do I do that? I was reading at another post and got this:

http://www.mrexcel.com/forum/showthread.php?t=321875

index(q2:q30,match(max(r2:r30),r2:r30,0))

However, this doesn't apply because I'm not looking for the biggest number, instead I'm looking for a specific number which is on the sheet. Help please?
I'm sorry if this was confusing, this is my first post on this forum ever.
Using Excel 2010 Prof.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi and welcome to the Board.

Is this what you are looking for?

Excel Workbook
ABCDEFGHI
1IDNameNo.No.
24Tom112Sally
33John325Bill
42Sally
58Frank
67Mary
79Joe
810Chris
91Bob
105Bill
Sheet3
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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