Populate Column With Unique Values From Another Sheet
Hi all!
I have a sheet, where tasks are entered and assigned to employees. Every task belongs to a certain company, which is specified row by row (every row is another task), this describes the first sheet we'll call "Requests". I want to create another sheet to summarize the data of every task for every company, this sheet we'll call "Hours by Company". The reason I say another sheet and not a report, is because I will have to do some custom formulas for data manipulation (to monitor hours spent of each company). As we have it setup, the company name is manually entered on every row for the "Requests" sheet, what I would like is to make a cross sheet reference to "Requests" and populate a column with all unique names found throughout the "Requests" in "Hours By Company". I'll Link below mockups of each sheet, as with just words this can be confusing:
Here is a mockup of the "Requests" sheet:
And here is a mockup of the "Hours by Company Sheet" I am trying to build:
The goal here is to grab all unique values from the "Company Name" Column in "Requests", and populate the "Company" Column in "Hours by Company". Is there a way to do this in Smartsheet? Thank you for any and all help!
Best Answer
-
Insert a text/number column (called "Number" in this example) and manually populate the numbers going down this column starting with the number 1 and going down until you have filled in as many numbers as you think you will need.
From there you would use this column formula in the Company column:
=IFERROR(INDEX(DISTINCT(COLLECT({Source Sheet Company Column}, {Source Sheet Company Column}, @cell <> "")), Number@row), "")
Answers
-
Insert a text/number column (called "Number" in this example) and manually populate the numbers going down this column starting with the number 1 and going down until you have filled in as many numbers as you think you will need.
From there you would use this column formula in the Company column:
=IFERROR(INDEX(DISTINCT(COLLECT({Source Sheet Company Column}, {Source Sheet Company Column}, @cell <> "")), Number@row), "")
-
Thank you so much, this worked exactly as intended! Though there were more than 600 entries to fill 🤣
-
Happy to help. 👍️
-
Muhammad/Paul - was the number column that was added created in the "Requests" sheet or the "Hours by Company" sheet? I have a similar process that I'm trying to create and am just wanting to verify the Numbers column creation.
-
@ymckern It goes in the "Hours by Company" sheet.
-
@Paul Newcome Thank you!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 460 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!