+ Reply to Thread
Results 1 to 13 of 13

Looking to create new rows with duplicate values

  1. #1
    Registered User
    Join Date
    10-01-2014
    Location
    NC
    MS-Off Ver
    Pro Plus 2013
    Posts
    34

    Looking to create new rows with duplicate values

    I need to create rows beneath cell data in a column filled with data from 2 other columns if the data exist. See the example workbook. Sheet 1 is the original and sheet 2 is what i need the outcome to be. I highlighted the columns that have been updated in sheet 2. Hopefully i explained it well enough.
    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Looking to create new rows with duplicate values

    Is Names under Image Src, Image Src1 & Image Src2 are unique or it can repeate (appear more than 1 time)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    10-01-2014
    Location
    NC
    MS-Off Ver
    Pro Plus 2013
    Posts
    34

    Re: Looking to create new rows with duplicate values

    They are unique.

  4. #4
    Registered User
    Join Date
    10-01-2014
    Location
    NC
    MS-Off Ver
    Pro Plus 2013
    Posts
    34

    Re: Looking to create new rows with duplicate values

    Sorry, after further review it looks like sometimes they do repeat.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Looking to create new rows with duplicate values

    Withdrawn by FR.
    Last edited by FlameRetired; 11-02-2015 at 02:55 AM.
    Dave

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Looking to create new rows with duplicate values

    see the attached file
    N2=IFERROR(INDEX(Sheet1!$1:$1048576,INT(SMALL(INDEX((Sheet1!$Y$2:$AA$6="")*10^16+ROW(Sheet1!$Y$2:$AA$6)*10^6+COLUMN(Sheet1!$Y$2:$AA$6),0),ROW(Sheet1!$A1))/10^6),MATCH(N$1,Sheet1!$1:$1,0)),"")
    A2=IFERROR(IF(COUNTIF($N$2:$N2,$N2)=1,INDEX(Sheet1!$1:$1048576,INT(SMALL(INDEX((Sheet1!$Y$2:$AA$6="")*10^16+ROW(Sheet1!$Y$2:$AA$6)*10^6+COLUMN(Sheet1!$Y$2:$AA$6),0),ROW(Sheet1!$A1))/10^6),MATCH(A$1,Sheet1!$1:$1,0)),""),"")
    Copy A2 and Paste across B2:M2,O2:X2 and AB2:AT2
    Y2=IFERROR(INDEX(Sheet1!$1:$1048576,INT(SMALL(INDEX((Sheet1!$Y$2:$AA$6="")*10^16+ROW(Sheet1!$Y$2:$AA$6)*10^6+COLUMN(Sheet1!$Y$2:$AA$6),0),ROW(Sheet1!$A1))/10^6),MATCH(Y$1,Sheet1!$1:$1,0)+COUNTIF(N2:N$2,N2)-1),"")
    Try the above and copy towards down

    See the attached file
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-01-2014
    Location
    NC
    MS-Off Ver
    Pro Plus 2013
    Posts
    34

    Re: Looking to create new rows with duplicate values

    Thanks nflsales! For some reason it stopped populating the fields after the 5th sku. I'm not sure why?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-01-2014
    Location
    NC
    MS-Off Ver
    Pro Plus 2013
    Posts
    34

    Re: Looking to create new rows with duplicate values

    I'm still unable to figure out why the code wont populate the fields past the 5th sku. Any help is appreciated.

  9. #9
    Registered User
    Join Date
    10-01-2014
    Location
    NC
    MS-Off Ver
    Pro Plus 2013
    Posts
    34

    Re: Looking to create new rows with duplicate values

    Quote Originally Posted by FlameRetired View Post
    Withdrawn by FR.
    FR, I know you withdrew but do you have any solutions? Thanks!

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Looking to create new rows with duplicate values

    Not so far. I forget what it was I withdrew. Everything I kept coming up with morphed into something enormously cumbersome ... real nightmares to debug and prone to errors.

  11. #11
    Registered User
    Join Date
    10-01-2014
    Location
    NC
    MS-Off Ver
    Pro Plus 2013
    Posts
    34

    Re: Looking to create new rows with duplicate values

    Thanks for trying FR!

  12. #12
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Looking to create new rows with duplicate values

    Sheet1!$Y$2:$AA$6, change this range in all the frmulas as per your needs like Sheet1!$Y$2:$AA$100

  13. #13
    Registered User
    Join Date
    10-01-2014
    Location
    NC
    MS-Off Ver
    Pro Plus 2013
    Posts
    34

    Re: Looking to create new rows with duplicate values

    Works great nflsales! Cant believe i missed that. Is there any way to keep the fields that are blank, blank? Instead of filling them with a zero.
    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. [SOLVED] Create Duplicate Rows for multiple values in a Column.
    By mac2982 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2017, 07:08 PM
  2. [SOLVED] Create Duplicate Rows
    By ignes in forum Excel General
    Replies: 5
    Last Post: 12-24-2013, 11:20 AM
  3. [SOLVED] Compare Rows, Delete duplicate values, Sum values but Retain blank rows
    By chancw in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-24-2013, 07:38 AM
  4. Merge Duplicate Rows unique values into single rows for an infinite amount of columns/rows
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 08:43 PM
  5. VBA helps needed to Sum duplicate values and delete duplicate rows
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2013, 11:40 PM
  6. Replies: 5
    Last Post: 11-12-2012, 08:38 PM
  7. [SOLVED] Sum Duplicate values then delete duplicate rows
    By keekdapolak in forum Excel General
    Replies: 7
    Last Post: 09-20-2012, 02:57 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