generating named data based on values

abz2786

New Member
Joined
Jun 12, 2019
Messages
8
Hi Guys

I am creating a master spreadsheet and need some formula help.

I am trying to pull through names of employees based on if they have a value against a project

For example

A,B,C are three projects on three seperate tabs. Person D,E,F are employees. Person D and F have logged time against Project A.

On the master sheet i have a created a column of projects (A,B,C) and want to pull through the names (D,E,F) if they have any values against the project below the relevant project. How do i do this?

Thanks
 
Only the name of Sheet1 changes
Code:
Set sh1 = Sheets("[COLOR=#ff0000]Sheet1[/COLOR]")

If everything else is like the sheet you sent me, the macro should not have problems.
Take a test


I have tried to apply the macro to my spreadsheet and the macro is working but it does not pull through any data to the front sheet when i click on it. Also, how do i limit the macros so it picks up data only up until row 35 on each tab. Spreadsheet is shared below

https://www.dropbox.com/s/t9q5n0ezvzghmaq/Capacity Plans.xls?dl=0
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I have tried to apply the macro to my spreadsheet and the macro is working but it does not pull through any data to the front sheet when i click on it. Also, how do i limit the macros so it picks up data only up until row 35 on each tab. Spreadsheet is shared below

https://www.dropbox.com/s/t9q5n0ezvzghmaq/Capacity Plans.xls?dl=0

I'm not understanding.
I sent you a file to show that the macro works.


What is the problem?


If your files are the same as the example you sent me, you should not have problems.


If you sent a different file and now you want to work with another file completely different from the initial one, then you are going to need another macro


The macro I sent you is designed for the first file you sent me.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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