Search Function with Personal Data Following

jamber17

New Member
Joined
Jan 22, 2018
Messages
6
I have a table of data and have created a search function to find a name within a column of that data. What equation would I need to use to have the next few cells of information that is attached to that name appear in the cells following the search function cell? I used Aaron as an example, but if I changed the name to Greg, then I would want all of his data to appear in the three following cells.

Ex:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Grade[/TD]
[TD]%[/TD]
[TD]Score[/TD]
[/TR]
[TR]
[TD](Search box) Aaron[/TD]
[TD]B+[/TD]
[TD]88.2[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]Aaron[/TD]
[TD]B+[/TD]
[TD]88.2[/TD]
[TD]Good[/TD]
[/TR]
[TR]
[TD]Daniel[/TD]
[TD]A[/TD]
[TD]95.4[/TD]
[TD]Great[/TD]
[/TR]
[TR]
[TD]Greg[/TD]
[TD]C[/TD]
[TD]74.6[/TD]
[TD]Average[/TD]
[/TR]
[TR]
[TD]Matt[/TD]
[TD]D-[/TD]
[TD]62.5[/TD]
[TD]Poor[/TD]
[/TR]
</tbody>[/TABLE]

Need equations for the grade, %, and score cells for the search box row.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Sounds like you want to use VLOOKUP (see: https://www.techonthenet.com/excel/formulas/vlookup.php).

So, let's say that your data underneath the lookup row is A3:D6. Select that whole range and name (something like "MyRange").
If you do not know how to name ranges, see: http://www.contextures.com/xlNames01.html

So, then in cell B2, where you want to lookup the Grade for the person selected in cell A2, enter this formula:
Code:
=VLOOKUP($A2,MyRange,COLUMN(),0)
and copy to cells C2 and D2.

This will return the values you want.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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