+ Reply to Thread
Results 1 to 2 of 2

Concatenate a Range based on cell values

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Addis Ababa, Ethiopia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Question Concatenate a Range based on cell values

    Given Out put desired (Using Formula)
    ADDKRT
    KRTADD
    Round Trip ADDKRTADD
    ADDJNB
    JNBDAR
    DARADD
    Round Trip ADDJNBDARADD
    ADDHKG
    HKGMAAADD
    Round Trip ADDHKGMAAADD
    -
    HKGMAAADD
    Round Trip HKGMAAADD
    ADDCAIBRU
    BRUDXBHKG
    HKGMAAADD
    Round Trip ADDCAIBRUDXBHKGMAAADD
    ADDCAILGG
    LGGLUXPNR
    PNRADD
    Round Trip ADDCAILGGLUXPNRADD
    ADDCAILGG
    LGGBRUDXB
    DXBHKG
    HKGMAAADD
    Round Trip ADDCAILGGBRUDXBHKGMAAADD
    ADDLGG
    LGGLOS
    LOSLGG
    LGGACCLOSLGG
    LGGADD
    Round Trip ADDLGGLOSLGGACCLOSLGGADD


    Description of what i have {left side above} and what i am trying to do {right side above}
    left side above are place (sectors e.g the first one is Addis Ababa-Khartoum & Khartoum-Addis Ababa) and immediately followed by "Round Trip". and what i need to get is, as shown on the right side above to concatenate the cells between the two consecutive "Round Trips" starting from above and leaving the left most three characters except the first sector.
    Attached Files Attached Files
    Last edited by nuruedriss; 11-05-2013 at 02:14 AM. Reason: Attachement

  2. #2
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Concatenate a Range based on cell values

    use this on the first round trip cell and copy and paste as needed.. You will have to adjust the formumla depending on how many cells you are trying to merge, but the last cell should always be the one without the LEFT(C#,LEN(C#)-3 in it (hence just the A3 at the end).





    =CONCATENATE(LEFT(A2,LEN(A2)-3),A3)
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

+ 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. Sum cells in a range based between two equal cell values in another range
    By sshone1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2013, 08:12 AM
  2. Need help making a macro to copy range of values based on cell values.
    By zolton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2013, 08:58 AM
  3. Concatenate multiple cell values based on matching adjacent cells
    By mkrzy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2013, 02:40 AM
  4. [SOLVED] Concatenate cell values based on condition
    By alexandruc in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-06-2012, 07:01 AM
  5. concatenate cell values based on row number
    By ESeufert in forum Excel General
    Replies: 1
    Last Post: 07-02-2007, 02:45 PM

Tags for this Thread

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