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.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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:
Upvote 0
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.
 
Upvote 0
Place this formula in F2 of Sheet2 and copy down: =INDEX(Sheet1!B2:B7,MATCH(B2,Sheet1!C2:C7))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,442
Members
448,898
Latest member
drewmorgan128

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