Create a string in one cell based on checkbox selection

rizzo93

Active Member
Joined
Jan 22, 2015
Messages
303
Office Version
  1. 365
My spreadsheet has three checkboxes that users can select from. I want to create a string in one cell based on the checkboxes they select. I need to do this using a formula--no VBA.

If they select this:
1711720536212.png

Then the string I want should look like this:
SOC2;ISO​

Multiple values should be separated by semicolons but should not end with one.

I've tried using IF formulas with no success. Suggestions please?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Each of these assign into particular cell behind (like A1, B1, C1). Then in result cell You should be able to easy sort this out.
Like below with CHOOSE:

Excel Formula:
=CHOOSE($A$1+1,"","SOC2;")&CHOOSE($B$1+1,"","HITRUST;")&CHOOSE($C$1+1,"","ISO")
 
Last edited:
Upvote 0
Building off of kokosek's formula, this way you can select only 1 checkbox and not have a trailing ";".
Excel Formula:
=TEXTJOIN(";",,CHOOSE($A$2+1,"","SOC2"),CHOOSE($B$2+1,"","HITRUST"),CHOOSE($C$2+1,"","ISO"))
 
Upvote 1
Solution
Looks like you could also use
Excel Formula:
=MID(IF(A2,";SOC2","")&IF(B2,";HITRUST","")&IF(C2,";ISO",""),2,16)
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,152
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top