Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2017, 01:12 PM
H28Sailor H28Sailor is offline combining cells with multiple choices Windows 7 32bit combining cells with multiple choices Office 2007
Advanced Beginner
combining cells with multiple choices
 
Join Date: Mar 2013
Posts: 55
H28Sailor is on a distinguished road
Default combining cells with multiple choices

Hi



I am using the following formula for combing cells where there is only one choice
=IF('1'!AY2=1, "Mon",IF('1'!AZ2=1, "Tues",IF('1'!BA2=1, "Wed",IF('1'!BB2=1, "Thurs",IF('1'!BC2=1, "Fri",IF('1'!BD2=1,"Sat","Sun"))))))

What do I need to change if it is a multiple choice question with any number of choices chosen

i.e. output something like

Mon + Tues + Sun

Bob M
Reply With Quote
  #2  
Old 01-13-2017, 11:02 PM
xor xor is offline combining cells with multiple choices Windows 10 combining cells with multiple choices Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

If you use Excel 2016, and with

1 Mon
1 Tue
1 Wed
1 Thurs
1 Fri
1 Sat
1 Sun

in A1:B7 the following array formula:

=MID(CONCAT(IF(ISNUMBER(A1:A7),B1:B7&" + ","")),1,LEN(CONCAT(IF(ISNUMBER(A1:A7),B1:B7&" + ","")))-2)

will return

Mon + Tue + Wed + Thurs + Fri + Sat + Sun

Please remember that an array formula must be completed by holding down Ctrl and Shift before pressing Enter.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
combining cells with multiple choices Combining several cells data into one single cell H28Sailor Excel 6 01-09-2017 06:00 AM
Combining 2 tables into 1 and use Table2's column widths (hoping for workaround dealing merged cells CodingGuruInTraining Word VBA 24 10-07-2015 07:48 PM
Drop down lisr with multiple choices Richard121 Excel 1 02-17-2015 08:30 AM
Combining multiple bulleted lists TigerDroppings Word 2 03-09-2013 07:08 AM
combining cells with multiple choices Combining Text from Table Cells robmorleyuk Word 1 11-01-2011 07:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft