Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8710653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:40:54+00:00 2026-06-13T04:40:54+00:00

I would like to merge several rows into a single row using Excel. I

  • 0

I would like to merge several rows into a single row using Excel. I have already done this with the CONCATENATE function but this time I need to automate the process since I have several entries on the file.
I have the Ephone IP phone information extracted from a Cisco CME where each ephone information is on a row as follows:

ephone-1[0] Mac: TCP socket:[57] activeLine:0 whisperLine:0 REGISTERED in SCCP ver 20/17 max_streams=1
mediaActive:0 whisper_mediaActive:0 startMedia:0 offhook:0 ringing:0 reset:0 reset_sent:0 paging 0 debug:0 caps:8 
IP:---------- * 35419 6941  keepalive 54113 max_line 4 available_line 4
button 1: cw:1 ccw:(0 0) 
dn 1  number ------- CH1   IDLE         CH2   IDLE         shared 
Preferred Codec: g711ulaw 
Lpcor Type: none Username: ---- Password: ------ 


ephone-2[1] Mac:-------- TCP socket:[77] activeLine:0 whisperLine:0 REGISTERED in SCCP ver 20/17 max_streams=1
mediaActive:0 whisper_mediaActive:0 startMedia:0 offhook:0 ringing:0 reset:0 reset_sent:0 paging 0 debug:0 caps:8 
IP:------- * 35189 6941  keepalive 117528 max_line 4 available_line 4
button 1: cw:1 ccw:(0 0) 
 dn 2  number ------ CH1   IDLE         CH2   IDLE         shared 
Preferred Codec: g711ulaw 
Lpcor Type: none 

Each ephone is separated by one or two empty rows on the file. There are around 350 entries and I would like to automate the process. The process should be something like taking each line of the ephone and merge it into a single line, so that at the end I would have 350 lines containing the info of the 350 ephones.

Does anyone know how to make this on Excel? I would really appreciate the help.

Best regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:40:55+00:00Added an answer on June 13, 2026 at 4:40 am

    This code should do it, consolidating up, and removing excess lines

    Sub ConsolidateRows_NoMatch()
    'takes rows and consolidate one or many cells, based on one or many cells matching with above or below rows.
    
    Dim lastRow As Long, i As Long, j As Long
    Dim colMatch As Variant, colConcat As Variant
    
    'turn off updates to speed up code execution
    With application
        .ScreenUpdating = False
        .EnableEvents = False
        .Calculation = xlCalculationManual
    End With
    
    lastRow = range("A" & Rows.Count).End(xlUp).Row 'get last row
    
    For i = lastRow To 1 Step -1 'loop from last Row to one
    
        If Len(Cells(i, 1)) > 0 Then
            If Left(Cells(i, 1), 6) <> "ephone" Then
                Cells(i - 1, 1) = Cells(i - 1, 1) & Cells(i, 1)
            Else
                GoTo nxti:
            End If
        End If
    
        Rows(i).Delete
    nxti:
    Next
    
    With application
        .ScreenUpdating = True
        .EnableEvents = True
        .Calculation = xlCalculationAutomatic
    End With
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two classes that I would like to merge into a composite. These
In Clojure, I would like to combine several maps into a single map where
I have several apps that I'm trying to merge into a single suite: 2
I would like to be able to merge two files into one during configure
I have several config files in my .net applications which I would like to
I have 2 array's and would like to merge them together and is the
I would like to merge two files by one column in unix. I have
I have 2 folders that I would like to merge, the root is AIR3SDK
That one is a tricky one I believe. I would like to merge two
I would like to know how difficult it would be to merge the well-designed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.