Return column headers for all true values Google Sheets

TimK34

New Member
Joined
Mar 29, 2021
Messages
6
Office Version
  1. 365
Platform
  1. MacOS
Hi everyone,

I have a large data sheet with a list of suppliers and one column for each supplier with a TRUE or FALSE value.
I'd like to consolidate all true suppliers in one cell.

In the image below I'd like column G to summarise all suppliers with the value TRUE (i.e. "Supplier 2, Supplier 3" for row 3.

Screenshot 2021-03-29 at 13.29.25.png


Can anyone help me with the right formula?

Many thanks

Tim
 

Attachments

  • Screenshot 2021-03-29 at 13.24.39.png
    Screenshot 2021-03-29 at 13.24.39.png
    23.8 KB · Views: 6
  • Screenshot 2021-03-29 at 13.27.57.png
    Screenshot 2021-03-29 at 13.27.57.png
    25.8 KB · Views: 6
Last edited by a moderator:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi & welcome to MrExcel.
How about
Excel Formula:
=TEXTJOIN(", ",,IF(B2:F2,$B$1:$F$1,""))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Amazing!!! Thank you so much both of you. I'm so grateful
I jumped the gun too quickly. I've tried both and seem to get this error "Error - An array value could not be found". I'm using Google Sheets, but this should support the formula? Any ideas? Thanks @ClaireS @Fluff
 
Upvote 0
If you need something for Sheets you should clearly state that, you should also post the question in the General Discussion & Other Applications section.
I have moved it for you this time.

Not all Excel formulae & functions work in Sheets.
 
Upvote 0
Not sure if this will work in sheets, but try
Excel Formula:
=TEXTJOIN(", ",,filter(B$1:F$1,B2:F2))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,573
Messages
6,173,133
Members
452,501
Latest member
musallam

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