Auto populate columns in one tab based on entries in another

Aewilliams

New Member
Joined
Oct 24, 2024
Messages
4
Office Version
  1. Prefer Not To Say
I have a tab (Tab A) that contains information about certain projects. Each project has a reference. Each project may also be tagged as being part of a group. If a project is not a member of a group or is a member of one group then it will have one row. If it is part of two groups then it will have two rows etc. All information on each row will be the same except the column showing the name of the group.

On a second tab I want to summarise all of the groups the project is part of so I want the spreadsheet to have one row for each project and columns headings for each group. If the project is part of the group(s) then that cell(s) will contain a "Y" and if not will be left blank e.g. the info is in tab A and the result I want is shown in Tab B - what formula could I use in tab B in the second, third and fourth columns to pull the info from tab A?

Tab A
Project RefGroup Name
AAAPortfolio
AAASLT
BBB
CCCPortfolio
DDDSLT
EEEPDC
EEESLT


Tab B
Project RefPortfolioSLTPDC
AAAYY
BBB
CCCY
DDD Y
EEE YY
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
you could use the sort - unique function to get the list of Project references in sheet 2.
Excel Formula:
=SORT(UNIQUE(Sheet1!A2:A8),1)
where Sheet1 Range A2:A8 contains your data. Expand as required.
Then use a countifs to identify which project theyre in.
If you highlight the range (IE B2:D6 in your example) and type the following formula (Adjusting tab names as required.) Then press control + Enter
Excel Formula:
=IF(COUNTIFS(Sheet1!$A:$A,$A2,Sheet1!$B:$B,B$1)=0,"","Y")
You will get the result you're looking for as described in your request.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
you could use the sort - unique function to get the list of Project references in sheet 2.
Excel Formula:
=SORT(UNIQUE(Sheet1!A2:A8),1)
where Sheet1 Range A2:A8 contains your data. Expand as required.
Then use a countifs to identify which project theyre in.
If you highlight the range (IE B2:D6 in your example) and type the following formula (Adjusting tab names as required.) Then press control + Enter
Excel Formula:
=IF(COUNTIFS(Sheet1!$A:$A,$A2,Sheet1!$B:$B,B$1)=0,"","Y")
You will get the result you're looking for as described in your request.
Thanks for this. This is just returning a blank....
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Microsoft® Excel® for Microsoft 365 MSO
 
Upvote 0
Microsoft® Excel® for Microsoft 365 MSO
Thanks for that, please don't forget to update your profile, as it saves people from having to ask.

How about
Fluff.xlsm
ABCDEFG
1Project RefGroup NamePortfolioSLTPDC
2AAAPortfolioAAAYY
3AAASLTBBB
4BBBCCCY
5CCCPortfolioDDDY
6DDDSLTEEEYY
7EEEPDC
8EEESLT
9
Main
Cell Formulas
RangeFormula
E1:G1E1=TOROW(UNIQUE(B2:B100),1)
D2:D6D2=UNIQUE(TOCOL(A2:A100,1))
E2:G6E2=IF(COUNTIFS(A:A,D2#,B:B,E1#),"Y","")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,106
Members
453,021
Latest member
Justyna P

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