+ Reply to Thread
Results 1 to 3 of 3

Concatenation of Cell Vaues

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    1

    Question Concatenation of Cell Vaues

    Hi,

    Apoliges, this is probably very simple, but, I have a spreadsheet, with columns 1-10. In each column will either be blank or has "Yes" in it. What I want, is for each row that does have a yes in it, have that Row number put into its own column. For example, if a row has yes in 1,4 and 7, I would like to see 1,4,7 in its own column. Is there an easy query to achieve this? Please see my hard coded example. The TRUE Fields I would like populated automatically.

    Thanks in advance.

    Cells.PNG

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Concatenation of Cell Vaues

    Please find the attached sheet to see one of the way to achieve this.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Concatenation of Cell Vaues

    for that example
    =SUBSTITUTE(TRIM(IF(A2="yes",$A$1&" "," ")&IF(B2="yes",$B$1&" "," ")&IF(C2="yes",$C$1&" "," ")&IF(D2="yes",$D$1&" "," ")&IF(E2="yes",$D$1&" "," ")&IF(F2="yes",$F$1&" "," ")&IF(G2="yes",$G$1&" "," ")&IF(H2="yes",$H$1&" "," ")&IF(I2="yes",$I$1&" "," ")&IF(J2="yes",$J$1&" "," ")&IF(K2="yes",$K$1&" "," ")&IF(L2="yes",$L$1&" "," ")&IF(M2="yes",$M$1&" "," ")&IF(N2="yes",$N$1&" "," ")&IF(O2="yes",$O$1&" "," "))," ",",")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel Macro to Cut all cell vaues between two specific words and paste in next column
    By fasrose in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2013, 12:23 PM
  2. how to enter vaues at the same time in two sheets..
    By djmag in forum Excel General
    Replies: 10
    Last Post: 03-20-2013, 03:54 AM
  3. [SOLVED] Excel 2007 : Importing cell vaues from one book to another
    By triad_cowboy in forum Excel General
    Replies: 2
    Last Post: 04-18-2012, 05:16 PM
  4. [SOLVED] [SOLVED] How can I find vaues of cells using 2 search criteria?
    By Spinnerron in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2005, 09:25 PM
  5. validation and omitting blank vaues from list
    By MGOETZ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-20-2005, 05: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