IF Function and Checkboxes
Hi,
I am currently working on a project where I will have multiple check boxes on a row where each checkbox is going to of different values (true/false). I need a formula that will look over the checkboxes and only give me the value of the selected checkbox and then with this the value of that cell with be presented at the end of the row.
I hope this makes sense
Comments
-
Hi Harry,
Try this.
=IF(A@row = 1; "A"; IF(B@row = 1; "B"; IF(C@row = 1; "C"; IF(D@row = 1; "D"; "None"))))
Please see the attached link/screenshot for more information.
Depending on your country you’ll need to exchange the semi-colon to a comma in the above formula.
I hope this helps you!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
This is when an @column would be nice. Just put a basic
into a function to pull from the cell in the first row of that particular column. Similar to an @cell.
Simply put your values in row 1. Then you could use a COLLECT function to look across the row and pull the value from the first row for the column of any box that's checked.
-
Write up the enhancement request Paul.
Craig
-
I am fairly certain I already have. Haha. But I'll have to dig through my list to see for sure. I'll update when I either find I already have or submit a new one.
-
Thank you guys very much, will put it all to the test now
-
Happy to help!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
-
I just had another thought. It's something I have used before, so I know it would work for you as long as you are willing to lock down row 1.
For this example I will just use the column names of A, B, C, D, and E.
In row 1, replicate your column names. So in column A, row 1, you would type A. Do this on down the line.
In the column where you want to display the checkbox value, enter:
=JOIN(COLLECT(A1:E1, A@row:E@row, @cell = 1), " - ")
This will pull the value from row one for any boxes that are checked in the row the formula is in and put a dash in between if you have more than one. So if column A is checked, the formula will simply display A. If columns A and B are checked, you will see A - B.
Does this work for what you are trying to do?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!