+ Reply to Thread
Results 1 to 15 of 15

Combine two rows into one - Address (help please)

  1. #1
    Forum Contributor
    Join Date
    03-21-2012
    Location
    New York NY
    MS-Off Ver
    2010
    Posts
    113

    Combine two rows into one - Address (help please)

    I have a bunch of addresses that are listed. my problem is they are listed with the street on one row and the city state and zip on the one below it, how can I combine these two the same row? sample attached
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Combine two rows into one - Address (help please)

    Hi.

    Try this formula:

    Please Login or Register  to view this content.
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Combine two rows into one - Address (help please)

    Hi,

    In B1 copied down

    =IF(MOD(ROW(),3)=1,A1&" "&A2,"")

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

    Re: Combine two rows into one - Address (help please)

    for your example in B1

    =IF(MOD(ROW(),3)=1,A1&" "&A2,"") filled down
    snap i win
    mind you
    =IF(MOD(ROWS($A$1:A1),3)=1,A1&" "&A2,"") maybe better
    Last edited by martindwilson; 03-15-2013 at 12:11 PM.
    "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

  5. #5
    Forum Contributor
    Join Date
    03-21-2012
    Location
    New York NY
    MS-Off Ver
    2010
    Posts
    113

    Re: Combine two rows into one - Address (help please)

    yall are awesome!

  6. #6
    Forum Contributor
    Join Date
    03-21-2012
    Location
    New York NY
    MS-Off Ver
    2010
    Posts
    113

    Re: Combine two rows into one - Address (help please)

    yall are awesome!

  7. #7
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Combine two rows into one - Address (help please)

    @martindwilson

    Hi!!

    The formulas work perfectly.

    I am just trying to understand why did you not just use the concatenate function??

    Please clarify if there is any specific reason?

    Thanking you,

    Deep

  8. #8
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Combine two rows into one - Address (help please)

    Hi,

    I've never understood why anyone would want to write the word 'Concatenate' every time when you can just use the & instead. Now if Concatenate did really concatenate a range of cells, e.g if Concatenate(A1:D1) really did result in say "ABCD") where A1=A, B1=B, C1=C and D1=D..etc, then that would be a different matter.

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

    Re: Combine two rows into one - Address (help please)

    i second that!
    but i suppose if you use insert function rather than type it in its then just mouse clicks on each cell and could be easier.
    Last edited by martindwilson; 03-18-2013 at 05:31 AM.

  10. #10
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Combine two rows into one - Address (help please)

    Just 1 More Query Regarding Concatenation -

    Assume if I have 500 Rows the "A" Column (I,e. A1 - A500) with Numbers in all of them and I need to concatenate all the cells in B2, is there a simpler way to do the concatenation rather than using concatenate and click every single cell.

    Thanking You,

    Deep

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,771

    Re: Combine two rows into one - Address (help please)


  12. #12
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Combine two rows into one - Address (help please)

    Thank You,

    The Above Code Helped.

    I am attaching herewith a Sheet where we are trying to create New Part Codes in our company.

    Column A - Main Code
    Column B - Sub Code
    Column C - Serial Number
    Column D - Concatenation of Above 3

    The Problem here is, every time there is a change in the "Sub Code" the Serial Number should Start from 0001 and further.

    Is there a way I can achieve that??


    Sheet Attached for your reference.

    Thank You,

    Deep
    Attached Files Attached Files

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

    Re: Combine two rows into one - Address (help please)

    in c5 filled down
    =TEXT(SUMPRODUCT(($A$5:A5=A5)*($B$5:B5=B5)),"0000")
    or you could do away with col c altogether
    =CONCATENATE(A5,B5,TEXT(SUMPRODUCT(($A$5:A5=A5)*($B$5:B5=B5)),"0000"))

  14. #14
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Combine two rows into one - Address (help please)

    @martindwilson

    Thats Amazing.. Thank You.

    Can you please break it down slightly so that I can understand it a bit.

    Thank You,

    Deep

  15. #15
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    564

    Re: Combine two rows into one - Address (help please)

    Hi, msexcelathome.

    Please read forum rule:
    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.

    Regards
    Click (*) if you received helpful response.

    Regards,
    David

+ 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