+ Reply to Thread
Results 1 to 7 of 7

Break rows to tables

  1. #1
    Registered User
    Join Date
    01-20-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    24

    Break rows to tables

    Hello,

    I have imported my contacts list to excel and all of my contacts are arranged on A1:A100

    Its arrange as:
    A1 Contact Name
    A2 Info
    A3 Info
    A4 Info
    A5 Contact Name
    A6 Info
    A7 Info
    A8 Info
    A9 Contact Name
    A10 etc,

    I have used if formula to find only the names by (Mr or Ms) so on Column B1:B100 there is a tag "Name" next to each name and if false I used "Info".

    I would like to make a range in between Contacts (A1:A4, A5:A8, A9:Etc,) and then use the transpose (paste special) in order to view them in rows
    A1 Contact Name B1 Info C1 Info
    A2 Contact Name B2 Info C2 Info

    Any way to do it?

    Thanks!
    Last edited by mosheva; 09-24-2013 at 03:18 AM. Reason: SOLVED

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Break rows to tables

    Do you always have 4 rows of data for each contact name, so that the names are always 4 rows apart (rows 1,5,9,13,17,21 and so on)?

    Pete

  3. #3
    Registered User
    Join Date
    01-20-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Break rows to tables

    Hi,

    No.. sometimes more sometimes less...

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Break rows to tables

    So, column B is used to indicate the start of a new record, with the tag "Name" ?

    Can you post an example workbook (de-sensitized) ?

    Pete

  5. #5
    Registered User
    Join Date
    01-20-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Break rows to tables

    Hi,

    Sample attached

    10X!Sample.xlsx

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Break rows to tables

    I responded to this thread earlier, but it seems to have disappeared.

    Put the number 1 in cell C1 and this formula in C2:

    =IF(B2="Contact",INT(MAX(C$1:C1))+1,IF(ISNUMBER(FIND("@",A2)),ROUND(INT(C1)+0.1,2),IF(ISNUMBER(SEARCH("phone",A2)),ROUND(INT(C1)+0.08,2),IF(ISNUMBER(SEARCH("fax",A2)),ROUND(INT(C1)+0.09,2),IF(ISNUMBER(FIND("-",RIGHT(A2,5))),ROUND(INT(C1)+0.05,2),ROUND(C1+0.01,2))))))

    and copy this down to the bottom of your data. This is longer than the previous formula that I gave, as it attempts to align the email, phone, fax and zip-code into the same consistent columns. Then put this formula in E1:

    =IFERROR(INDEX($A:$A,MATCH(ROUND(ROWS($1:1)+(COLUMNS($E:E)-1)/100,2),$C:$C,0)),"")

    and copy across to, say, P1. Then copy E1:P1 down as far as you need to.

    The attached file demonstrates this with your sample data.

    Hope this helps.

    Pete
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-20-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Break rows to tables

    WOW I'm speechless!!!

    I'm trying to figure all the steps in the formula...

    Thank you!!!

+ 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. Filtering to break up data into different tables?
    By Baz2108 in forum Excel General
    Replies: 3
    Last Post: 06-18-2013, 05:33 PM
  2. Break up rows and transfer to columns
    By 2dollars in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-24-2012, 03:02 AM
  3. weekdate Rows with cell break
    By agr08 in forum Excel General
    Replies: 1
    Last Post: 10-13-2011, 04:11 PM
  4. Break Concatenated Field into Rows
    By bconner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2011, 03:25 PM
  5. Can Pivot Tables break years into months?
    By mattlazarus in forum Excel General
    Replies: 0
    Last Post: 11-30-2006, 04:36 PM

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