+ Reply to Thread
Results 1 to 9 of 9

Find unique values in a row and insert a row after every unique value in a column

  1. #1
    Registered User
    Join Date
    10-05-2020
    Location
    Bangalore, Karnataka, India
    MS-Off Ver
    Office 2013
    Posts
    19

    Find unique values in a row and insert a row after every unique value in a column

    Hi All,

    I want to know if it is possible with excel formulas to insert a row after every unique value it finds in a column. if not possible with formulas, is here a vb script that is available to do this?

    For example if the column is as below, i want to insert a row after every unique value - after 234, after 345, after 567, after 678 and after 789?

    123
    123
    123
    234
    345
    456
    456
    456
    456
    567
    678
    789
    890
    890
    890

    THanks,
    Arjun Shetty

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Find unique values in a row and insert a row after every unique value in a column

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Find unique values in a row and insert a row after every unique value in a column

    Please Login or Register  to view this content.
    Last edited by nigelog; 10-16-2020 at 08:31 AM.

  4. #4
    Registered User
    Join Date
    10-05-2020
    Location
    Bangalore, Karnataka, India
    MS-Off Ver
    Office 2013
    Posts
    19

    Re: Find unique values in a row and insert a row after every unique value in a column

    Hi Sintek,

    First of all thank you so much for the response.

    However this script is adding a row above the unique value and not below. how can we tweak this to add rows below the unique value and not above.

    The below is what is happening:
    123
    123
    123

    234

    345
    456
    456
    456
    456

    567

    678

    789
    890
    890
    890

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Find unique values in a row and insert a row after every unique value in a column

    However this script is adding a row above the unique value and not below.
    Nope...Possibly there was a gap between editing...
    Did you see the red change in snippet...
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-05-2020
    Location
    Bangalore, Karnataka, India
    MS-Off Ver
    Office 2013
    Posts
    19

    Re: Find unique values in a row and insert a row after every unique value in a column

    Sorry maybe there was an error from my side...will cross check again.

    Thanks again Sintek

  7. #7
    Registered User
    Join Date
    10-05-2020
    Location
    Bangalore, Karnataka, India
    MS-Off Ver
    Office 2013
    Posts
    19

    Re: Find unique values in a row and insert a row after every unique value in a column

    As i said...it was an error at my end..Thank you for this Sintek. Appreciate your help on this

  8. #8
    Registered User
    Join Date
    10-05-2020
    Location
    Bangalore, Karnataka, India
    MS-Off Ver
    Office 2013
    Posts
    19

    Re: Find unique values in a row and insert a row after every unique value in a column

    Nigel - Thank you for this as well!!!

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Find unique values in a row and insert a row after every unique value in a column

    ..........................
    THANKS.gif

+ 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] Count number of unique values corresponding to unique data in another column
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-26-2019, 12:32 PM
  2. Replies: 2
    Last Post: 08-19-2015, 10:22 AM
  3. [SOLVED] Find unique values and make them unique
    By unitlted_1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2015, 11:10 AM
  4. best way to find unique values of three column
    By intouch01 in forum Excel General
    Replies: 2
    Last Post: 01-13-2015, 02:32 AM
  5. best way to find unique values of two column
    By intouch01 in forum Excel General
    Replies: 1
    Last Post: 01-08-2015, 12:39 AM
  6. Find 1st unique Value on Column and Insert certain Word on cell on left Column
    By Wldlife23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2013, 10:02 AM
  7. Insert New Column Based Upon Unique Values
    By kasperblue in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2012, 04:35 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