Need data transferred between worksheets

Fwood

New Member
Joined
Jan 24, 2018
Messages
2
Hello-

Excel novice here. Given 2 sets of data in worksheet A (a diagnosis column and a diagnosis code column) given just the diagnosis column in worksheet B is there a formula to get the diagnosis code column to populate in worksheet B?

Thanks in advance.
 

Some videos you may like

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

mumps

Well-known Member
Joined
Apr 11, 2012
Messages
10,172
Assuming you have headers in row 1 of both sheets, place this formula in cell B2 of sheet B and copy it down: =VLOOKUP(A2,A!A2:B8,2,0)
Change the range to suit your needs.
 
Last edited:

Fwood

New Member
Joined
Jan 24, 2018
Messages
2
Thank you for the response. The formula may need to be tweaked based on information I forgot to include in my initial post. The code that is needed to be captured is in column B of sheet 1. The blank column it needs to populate in is column F of sheet 2. The diagnosis column of sheet 1 is column C of sheet 1 and is column B of sheet 2. Given that how should the lookup be written? Thanks again for your help.
 

mumps

Well-known Member
Joined
Apr 11, 2012
Messages
10,172
Place this formula in F2 of Sheet2 and copy down: =INDEX(Sheet1!B2:B7,MATCH(B2,Sheet1!C2:C7))
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,123,402
Messages
5,601,475
Members
414,452
Latest member
Dannysamworth

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
Top