+ Reply to Thread
Results 1 to 3 of 3

Counting entries in columns and concatenating headers in keyword column

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    20

    Counting entries in columns and concatenating headers in keyword column

    Sorry I am unable to upload documents

    I have a spreadsheet with column headers (Sales, Marketing, HR etc) and rows referring to various documents. If there is a document in a column, it is marked with a 1. So Row 2 has a 1 in the Marketing and HR column.

    I need a column named Keywords and it counts all the 1s in the row and then shows the column header(s) separated by a comma. This column would look like “Marketing, HR”

    Something like:

    IF there is a 1 in column, add column header.

    The result for example would be “Marketing, HR” – where there is a 1 in the Marketing and HR column.

    I am able to do this in VBA if needed.

    Hope this makes sense.

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Counting entries in columns and concatenating headers in keyword column

    Hi,

    Hope this will help you

    =TRIM(INDEX(IF(A2:C2=1,$A$1:$C$1,""),1)&" "&INDEX(IF(A2:C2=1,$A$1:$C$1,""),2)&" "&INDEX(IF(A2:C2=1,$A$1:$C$1,""),3)) Ctrl+Shift+Enter
    Attached Files Attached Files
    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Counting entries in columns and concatenating headers in keyword column

    Many thanks!
    I couldn't get this to work until I realised I needed to press Ctrl+Shift+Enter - now it works perfectly and has saved hours of work!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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