Closed Thread
Results 1 to 4 of 4

List headers where column contains X

  1. #1
    Registered User
    Join Date
    01-14-2015
    Location
    Budapest, Hungary
    MS-Off Ver
    Office 2011
    Posts
    5

    List headers where column contains X

    Hi,

    I need some help for a table, where I have a table with multiple rows and columns. In the last column I need a formula, which shows the name of the columns (headers), separated by comma where there is an X in the given cell.

    I have pasted an image below with the desired result in Column10.

    Screen Shot 2015-01-14 at 12.06.54.png

    Can you please help?

    Thanks,
    Zoltan

  2. #2
    Registered User
    Join Date
    01-23-2014
    Location
    Romania
    MS-Off Ver
    Excel 2016
    Posts
    54

    Re: List headers where column contains X

    try this formula:

    =LEFT(IF(B2="x",B$1&",",)&IF(C2="x",C$1&",",)&IF(D2="x",D$1&",",)&IF(E2="x",E$1&",",)&IF(F2="x",F$1&",",)&IF(G2="x",G$1&",",)&IF(H2="x",H$1&",",)&IF(I2="x",I$1&",",),LEN(IF(B2="x",B$1&",",)&IF(C2="x",C$1&",",)&IF(D2="x",D$1&",",)&IF(E2="x",E$1&",",)&IF(F2="x",F$1&",",)&IF(G2="x",G$1&",",)&IF(H2="x",H$1&",",)&IF(I2="x",I$1&",",))-1)

  3. #3
    Registered User
    Join Date
    01-14-2015
    Location
    Budapest, Hungary
    MS-Off Ver
    Office 2011
    Posts
    5

    Re: List headers where column contains X

    Thanks, it works well. Mz list however has like 40 headers. Is there any way to make this formula dynamic?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: List headers where column contains X

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules.
    Since other thread is in CS subforum this thread will now be closed, you may continue in your other thread.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. List Form that populates with column headers
    By theduckman16 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2011, 07:41 PM
  2. creating list of column headers
    By rfhurley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2006, 06:45 PM
  3. [SOLVED] creating a list of column headers
    By rfhurley in forum Excel General
    Replies: 1
    Last Post: 07-27-2006, 06:42 PM
  4. RE: Excel column headers to a vertical list
    By Carole O in forum Excel General
    Replies: 0
    Last Post: 04-27-2005, 06:06 PM
  5. [SOLVED] RE: Excel column headers to a vertical list
    By CyberTaz in forum Excel General
    Replies: 0
    Last Post: 04-27-2005, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1