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
- 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!