Formula for if check show another field
I have a sheet that I check off what someone purchases. However I would like to them have one spot on that sheet that shows everything someone purchased for reporting reasons. The below isn't in SS but its what I will have in SS. So the place that says Purchased, is a check box, then it has the item to the right of it. What i want to say is If Check box is checked, then show item in column B. That formual will end up in the All purchased" section.
How can I do that?
Best Answer
-
This could be done with a report that looks at the sheet and looks for checks. But to do it on the sheet itself I think you could use a JOIN function for this. Someting like:
=JOIN(COLLECT(Item:Item, Purchased:Purchased, true), ",")
Where the Item is the range that you want to collect (the items purchased), Purchased is the range you are evaluating, and true means the checkboxes have been checked. This will bring in all of the items whose checkboxes are checked and separate them by a comma.
Answers
-
This could be done with a report that looks at the sheet and looks for checks. But to do it on the sheet itself I think you could use a JOIN function for this. Someting like:
=JOIN(COLLECT(Item:Item, Purchased:Purchased, true), ",")
Where the Item is the range that you want to collect (the items purchased), Purchased is the range you are evaluating, and true means the checkboxes have been checked. This will bring in all of the items whose checkboxes are checked and separate them by a comma.
-
Awesome you rock!
-
No problem. Glad it worked.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.5K Get Help
- 367 Global Discussions
- 202 Industry Talk
- 432 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 447 Show & Tell
- 29 Member Spotlight
- 1 SmartStories
- 285 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!