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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,215,039
Messages
6,122,799
Members
449,095
Latest member
m_smith_solihull

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