Auto Populate Cell Reference by field names
This is going to be hard to explain, but I'm hoping I can do it.
I have a sheet named "ProjectSheet". Under Task Column I have multiple "Applications". Under each Application is a Project Stage (Data Gathering, Build, Post Go Live). Under each Stage are two roles (IC, IE) (Top - image)
I have a second "Team_Dates" sheet that only has Application and Role. (Below).
My goal is to populate the Resource column in the "ProjectSheet" for all IC's and IE's based on the "Application" name and the role "IC" from the "Teams_Dates" sheet. I know I can to build a cell reference for every single resource in the ProjectSheet, but I am hoping that there is a formula that I can use in all the columns that refer to the Application and Role from TeamDates and auto populates the ProjectSheet.
I hope that made sense!!!!
Answers
-
Hi dpm1028,
I've made a step by step process that should hopefully get you the outcome your looking for.Steps
- Understand the Logic:
- For each IC or IE in the "Task" column (under each "Application"), lookup the matching "Application" and "Role" in the Team_Dates sheet and return the corresponding Resource.
- Set Up the Sheets:
- Ensure the Team_Dates sheet has these columns:
Application
(Application Name)Role
(IC/IE)Resource
(Assigned Resource)
- Ensure the ProjectSheet has a
Task
column where the application names and roles (IC/IE) are nested as per the structure in your images.
- Ensure the Team_Dates sheet has these columns:
- Use Cross-Sheet References:
- Create a cross-sheet reference for the Team_Dates sheet:
- In the ProjectSheet, click on any cell and start typing a formula that references the Team_Dates sheet.
- When prompted, create a cross-sheet reference to the
Application
,Role
, andResource
columns in the Team_Dates sheet. Name the reference something like:TeamDates_App
TeamDates_Role
TeamDates_Resource
- Create a cross-sheet reference for the Team_Dates sheet:
- Write The Formula:
- Use the
INDEX
andMATCH
functions to dynamically populate theResource
column in the ProjectSheet.
Resource
column: - Use the
=INDEX({TeamDates_Resource}, MATCH([Parent Application]@row + [Role]@row, {TeamDates_App} + {TeamDates_Role}, 0))
Explanation:
INDEX({TeamDates_Resource}, ...)
fetches the corresponding value from the Resource column in the Team_Dates sheet.MATCH(...)
finds the row in the Team_Dates sheet where theApplication
andRole
match the current row'sApplication
andRole
in the ProjectSheet.[Parent Application]@row
assumes the "Application" name is stored at a higher (parent) level in the hierarchy. Adjust based on your exact setup.[Role]@row
is the "IC" or "IE" value.
5. Drag the Formula Down:
- Once the formula is written for one row, you can drag it down or use Auto-Fill to apply it to all relevant rows in the
Resource
column.
6. Test the Formula:
- Verify the correct Resource is populated based on the Team_Dates data.
I hope this helps. If you have any other questions or need more help let me know.
Ask Me About Smartsheet Maps?!?!
Solving Automation, Integration, & Adoption Problems For Smartsheet Customers
Account Executive | Skyway Consulting Co
- Understand the Logic:
-
THANK YOU Hunter!
I created the references:
The first 2 .."_App" and "_Role" point to the same column (Task) in (Team_Dates sheet)and the third "_Resource" points to the Resource column (in Team_Dates).
The formula:
=INDEX({TeamDates_Resource}, MATCH([Parent Application]@row + [Role]@row, {TeamDates_App} + {TeamDates_Role}, 0))
is returning "#UNPARSABLE"
But I'm confused on the references: "[Parent Application]" and "[Role]" . Do they need to be defined?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!