+ Reply to Thread
Results 1 to 10 of 10

Combining Data in Rows

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Nairobi, Kenya
    MS-Off Ver
    Excel 2007
    Posts
    40

    Combining Data in Rows

    Hi

    I have data sitting in 4 rows per record thats exclusive.
    i.e. the question is about drinks but from 4 questions.

    In Q1, A1 has tea, then row B1,C1,D1 have a 0
    In Q2, B2 has Cocoa, then A2,C2, D2 have 0
    In Q3, C3 has Soya, then A3,B3, D3 have 0

    I would like to combine only the text in one row at the end, and leave out the zeros

    Excel Formulae.jpg
    Many Thanks

    Excel upload not working

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Combining Data in Rows

    Try this in F2 and drag down

    =SUBSTITUTE(CONCATENATE(B2,C2,D2,E2),0,"")
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    06-21-2013
    Location
    Wiltshire, UK
    MS-Off Ver
    365 Version 2210 Build 16.0.15726.20070
    Posts
    72

    Re: Combining Data in Rows

    Your explanation is a bit confusing, almost as though you are mixing up columns and rows? However to achieve your aim;

    For rows use
    Please Login or Register  to view this content.
    Or for columns use
    Please Login or Register  to view this content.
    Isskint, i get satisfaction out of helping others

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Combining Data in Rows

    ... OR THIS ARRAY FORMULA:

    =INDEX(B2:E2,MATCH(0,INDEX(IF(B2:E2<>0,0),0),0))

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    04-19-2012
    Location
    Nairobi, Kenya
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Combining Data in Rows

    Thanks, This works ...

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Combining Data in Rows

    You're welcome.

  7. #7
    Registered User
    Join Date
    04-19-2012
    Location
    Nairobi, Kenya
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Combining Data in Rows

    Quote Originally Posted by Crooza View Post
    Try this in F2 and drag down

    =SUBSTITUTE(CONCATENATE(B2,C2,D2,E2),0,"")
    This also works, just to be specific. You have my upvote as well

  8. #8
    Registered User
    Join Date
    04-19-2012
    Location
    Nairobi, Kenya
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Combining Data in Rows

    Quote Originally Posted by isskint View Post
    Your explanation is a bit confusing, almost as though you are mixing up columns and rows? However to achieve your aim;

    For rows use
    Please Login or Register  to view this content.
    Or for columns use
    Please Login or Register  to view this content.
    Works, and Thanks for the variant for columns. ++

  9. #9
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Combining Data in Rows

    Great. Glad it worked for you and thanks for the rep points

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Combining Data in Rows

    A perfect poster, who gives feedback to everyone that helped. Nice by name and nice by nature!!

+ 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. Replies: 9
    Last Post: 05-28-2014, 03:27 AM
  2. Combining Rows of Data
    By Branchard in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2013, 06:02 AM
  3. [SOLVED] Macro help with combining data across 2 rows (and deleting non-required rows)
    By InnesMcc in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 05-20-2013, 05:21 AM
  4. [SOLVED] Combining Rows and keeping data from both rows.
    By chezbgone in forum Excel General
    Replies: 4
    Last Post: 03-10-2013, 06:06 AM
  5. combining data from multiple rows
    By trsteele in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2010, 02:13 PM
  6. Combining data in non-adj rows
    By mkingsley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2008, 07:51 PM
  7. Combining & Sorting Rows of Data
    By NewExcelUser in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2007, 01:03 AM

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