Help with VLOOKUP formula

charliebe521

New Member
Joined
Jul 31, 2015
Messages
11
I have a sheet1 (named MASTER) in a workbook with all relevant data filled in. I also have several sheets after that built exactly the same except no data. Row 1 is the column titles and row 2 begins the actual data. In column A, beginning with A2 I have a unique 4 digit ID number for each employee. Column B is employees last name, column C is employees first name, so on and so forth with data for each employee.

What I am trying to accomplish is this: In sheet2, sheet3, etc., I want to be able to just type in a unique ID number in column A and then all of the data from that row on the master sheet will auto populate into whichever sheet and row I typed the ID number.

Basically looks like this table.


idlastfirstcraftcell #s.s. #cert.datecert.datelocationstart datecert.datecert.datecert.datecert.date
1001doejohnfit111-111-1111999-99-99991/1/159/1/15LA1/1/159/1/151/1/159/1/151/1/15
1002doejanefor222-222-2222888-88-88882/1/158/1/15LA2/1/158/1/152/1/158/1/152/1/15
1003smithbobwld333-333-3333777-77-77773/1/157/1/15LA3/1/157/1/153/1/157/1/153/1/15
1004smithbettyfit444-444-4444666-66-66664/1/156/1/15TX4/1/156/1/154/1/156/1/154/1/15
1005williamsjohnwld555-555-5555555-55-55555/1/155/1/15TX5/1/155/1/155/1/155/1/155/1/15
1006williamsjanewld666-666-6666444-44-44446/1/154/1/15LA6/1/154/1/156/1/154/1/156/1/15
1007johnsonbobwld777-777-7777333-33-33337/1/753/1/15LA7/1/153/1/157/1/153/1/157/1/15
1008johnsonbettyqc888-888-8888222-22-22228/1/152/1/15TX8/1/152/1/158/1/152/1/158/1/15
1009jonesjohnsupt999-999-9999111-11-11119/1/151/1/15TX9/1/151/1/159/1/151/1/159/1/15

<tbody>
</tbody>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Calrlie,

I think this will work,


=index(Master!b2:n1000,match(employeeID, Master!a2:a1000,0),cols($c2:c2))

Vândalo
 
Upvote 0
Hi Charlie,

Place the formula on cell b2 of a worksheet that will lookup for data. Then copy and drag it to the other cols.
When you have one worksheet complete with those formulas copy it to the other worksheets.
I think - but didn't tested it - you could select all your worksheets that will lookup for data on master worksheet and write the formula and copy it as you do with a single worksheet

Vândalo
 
Upvote 0
When I put the formula in B2 #NAME? comes up, and when I type in the ID number it does not change. It still shows #NAME?
 
Upvote 0
Charlie,

Check your master worksheet name and replace employeeID with cell address where the formula is being written. It should work now.


Vândalo
 
Upvote 0
Now it shows #N/A (which I assume it would until I put in an ID number) but when I type in an ID number it changes to #NAME?

I new to this forum. Is there a way I can get you a sample spreadsheet?
 
Upvote 0
Thank you ITWARE2008!

You nailed it!

The formula is working exactly how I need it to work. I will continue to manipulate the spreadsheet just to make sure, but so far so good!
 
Upvote 0
Another approach. For the sake of clarity I used only one sheet but you should implement it to your needs.

[B2] =IFERROR(INDEX(B$7:B$15;SMALL(IF(ISNUMBER(MATCH($A$7:$A$15;$A$2;0));ROW($A$7:$A$15)-ROW($A$7)+1);ROWS($A$7:B7)));"")

Ctrl+Shift+Enter
Drag across to N2

[A2] Your ID number.

 
Upvote 0

Forum statistics

Threads
1,215,686
Messages
6,126,202
Members
449,298
Latest member
Jest

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