+ Reply to Thread
Results 1 to 9 of 9

How to apply a blank row after every contact name

  1. #1
    Forum Contributor
    Join Date
    07-30-2013
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    112

    How to apply a blank row after every contact name

    How to apply a blank row as shown below after every contact name in an excel spreadsheet if you have data of more then 10000 ppl. I have attached the sample spreadsheet for the same.Is there any formula that we can apply or something like that please let me know in order to save time
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: How to apply a blank row after every contact name

    Oh - sorry, this is to insert a blank row every other row.. and not when the names changes - sorry I misread

    Please Login or Register  to view this content.
    Last edited by Blake 7; 08-26-2014 at 04:39 AM.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: How to apply a blank row after every contact name

    Hi, one way is to use helper columns:

    D-column counts number of names
    D2: =IF(ROW()=2,1,IF(A2=A1,E1,E1+1))
    Copy down

    E-column counts number of rows for each name (first row is value 2)
    E2:=IF(A2=A1,D1+1,2)
    Copy down

    Now add the necessary nr of rows at the bottom of your list with all unique values from SORT1 except "1" in D-column and the value 1 in E-column, (unique values from SORT1 is from 2 to number of unique names, in your example 3.). You can now sort the list by SORT1 and SORT2. The rows you entered at the bottom will now end up between rows with different names.

    You can make a list with values for SORT1 for the new rows manually (fast and easy) or this way:
    I2:=IF(MIN(D:D+1)+ROW()-2>MAX(D:D),"",MIN(D:D+1)+ROW()-2)
    copy down as far as necessary (number of rows = number of unique names)

  4. #4
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: How to apply a blank row after every contact name

    This should work..

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-24-2014
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: How to apply a blank row after every contact name

    1) in a empty column - mark row where the name is changing (using if function)
    2) Filter that column for 1, select the data
    3) Select visible cells.
    4) Right click and "insert Row"
    5) you will be happy to see the visuals when Excel inserts rows. and its Done

    Hope you will be able to do this. If u require more information pls let me know, I will give more detailed explanation.
    ☚ Don't forget to rate person who helped u Click ★

  6. #6
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Lightbulb Re: How to apply a blank row after every contact name

    or try,

    Please Login or Register  to view this content.
    Last edited by satputenandkumar0; 08-26-2014 at 05:24 AM.
    Regards,
    Nandkumar S.
    ---------------------------------------------------------------
    Don't forget to Click on * if you like my solution.

  7. #7
    Forum Contributor
    Join Date
    07-30-2013
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: How to apply a blank row after every contact name

    Quote Originally Posted by xlrocks View Post
    1) in a empty column - mark row where the name is changing (using if function)
    2) Filter that column for 1, select the data
    3) Select visible cells.
    4) Right click and "insert Row"
    5) you will be happy to see the visuals when Excel inserts rows. and its Done

    Hope you will be able to do this. If u require more information pls let me know, I will give more detailed explanation.
    I couldn't understand the If function thing. Please if you can clarify this please. If you see my thread I have also attached a spreadsheet. If you can do in that and show it to me I would be grateful to you with the of formula that you are saying.

  8. #8
    Forum Contributor
    Join Date
    07-30-2013
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: How to apply a blank row after every contact name

    Quote Originally Posted by satputenandkumar0 View Post
    or try,

    Please Login or Register  to view this content.
    Yr Macro was really good, but I dont know Y it stopped at cell #20852 and after that it didnt do anything. So i tried to copy from that row onwards till the last row of that particular tab in a different tab on the same spreadsheet but it didn't work at all. It used to give me error 400 all the time. I even opened a new excel sheet on a different screen and tried in that but always got error 400 when doing the 2nd time. The 1st time it works good 2nd time it doesnt work at all.
    Last edited by chandannasta; 08-27-2014 at 01:56 AM.

  9. #9
    Forum Contributor
    Join Date
    07-30-2013
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: How to apply a blank row after every contact name

    Quote Originally Posted by Blake 7 View Post
    Oh - sorry, this is to insert a blank row every other row.. and not when the names changes - sorry I misread

    Please Login or Register  to view this content.
    @Blake, today i was doing another project in which I had to enter blank row manually after every row after all the details were entered correctly. Suddenly I remembered about your Macro which you had given above and this helped me saved a lot of time on my today's project. Only problem it stopped at cell #40000. It doesn't go beyond that. Tried on a different spreadsheet, also on the same spreadsheet different tab but hard luck got error 400 all the time. But thanks for this Macro also. Its really valuable for me But if you can do something about rest of the rows after #40000 then it would be really useful

+ 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. [SOLVED] apply cases but only to blank cells
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2014, 05:51 PM
  2. VBA to apply only on blank cells.
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2013, 03:27 PM
  3. [SOLVED] How to find next blank cell in worksheet to add a new contact
    By jpoppet in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2013, 04:52 AM
  4. apply formula when value in column A is not blank
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2009, 04:35 PM
  5. Contact list the will automatically add a contact
    By mike.richards in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2008, 10:35 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