Allocate values from a central worksheet to defined worksheets

thomasbeard

Board Regular
Joined
Oct 19, 2005
Messages
139
In Sheet1 I have a list of names next to a list of worksheet names to which they need to be allocated to. What I want to know is how I allocate these names to the correct sheet.
For example if Sheet1 tells me:


Tom Sheet2
**** Sheet3
Harry Sheet2
Pete Sheet 3

When I go to Sheet2, I would like to see:

Tom
Harry

and Sheet3 will show:

****
Pete

Any ideas?
Thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Try

Code:
Sub test()
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
    Sheets(Range("B" & i).Value).Range("A" & Rows.Count).End(xlUp).Offset(1).Value = Range("A" & i).Value
Next i
End Sub
 
Upvote 0
Thanks, but any chance of doing this with formula - I'm making progress with a mix of offset, match, countif and index but it's slow progress
 
Upvote 0

Forum statistics

Threads
1,214,973
Messages
6,122,534
Members
449,088
Latest member
RandomExceller01

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