+ Reply to Thread
Results 1 to 6 of 6

Formula to merge cells

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    GREECE
    MS-Off Ver
    Excel 2010
    Posts
    44

    Formula to merge cells

    I have an excel document with a 42,000 entries (all in one column) and i need the name and postcode taken from each company and placed into columns.
    PLease see attached file, the top records on sheet 2 is how i want the data and then if you scroll down to row 387 this is how the data is in its original formnikolas 1.xlsx

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Formula to merge cells

    How do you know the first and last lines of a record? Your sample is inconsistent and your "after" data did not come from the "before" sample.
    Last edited by protonLeah; 07-31-2013 at 03:52 PM. Reason: spelling
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    GREECE
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Formula to merge cells

    [QUOTE=protonLeah;3345087]How do you know the first and last lines of a record? Your sample is inconsistent and your "after" data did not come from the "berore" sample.[/Q
    usually is every 5 lines the start and finish of every record

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formula to merge cells

    Using your posted workbook and making some "educated guesses"...
    This regular formula begins the list of row numbers that contain company names:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And these two regular formula returns the company name and postal code for each company
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy C1:E1 down as far as you need.

    With your sample data, these are the results:
    Please Login or Register  to view this content.
    Note: The 4th company name is incorrect because there is no absolutely consistent pattern in your data.
    I'm hoping, though, that most of the calculated values will be correct.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Registered User
    Join Date
    03-21-2013
    Location
    GREECE
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Formula to merge cells

    Is not working. Excel does not accept the formula. Shows problem here ("Tel:",$A$10
    Last edited by nik7; 08-01-2013 at 03:31 AM.

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formula to merge cells

    Do your region/language settings require semicolons instead of commas in formulas?

+ 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. Formula with Merge Cells
    By ritu arora in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-05-2013, 12:04 PM
  2. Any formula to merge 2 cells in a column?
    By marqz in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-10-2013, 08:13 AM
  3. Replies: 0
    Last Post: 11-03-2012, 06:11 PM
  4. Merge =( formula should retain fraction type numbers after merge.
    By Aubrey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-09-2006, 03:40 PM
  5. Entering Formula into Merge Cells Question
    By artemisia in forum Excel General
    Replies: 1
    Last Post: 06-10-2005, 10:54 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