+ Reply to Thread
Results 1 to 4 of 4

Copying data based on repeated values in a column

  1. #1
    Registered User
    Join Date
    05-19-2013
    Location
    Chester, England
    MS-Off Ver
    Excel 2013
    Posts
    40

    Copying data based on repeated values in a column

    Afternoon All,
    In the sample file I've indicated the values I want to see in the Previous Data columns to the right of the sheet.
    To expand...when an ID is repeated in Column A, I want to see the corresponding date (Column B) from the previous occurence copied across into Column X - which of course represents the date of the last time it appeared (then Y, Z if it crops up again).
    Alternatively, if an ID recurs it's corresponding date might appear on the row for the earlier appearance - my column headers would then refer to the next date & the next and so on.
    Any assistance appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Copying data based on repeated values in a column

    Hi,

    In cell R2 of your attachment enter this array formula (confirm with CTRL+SHIFT+ENTER, not just ENTER) and copy across and down:

    =IFERROR(IF($B2=MIN(IF($A$2:$A$15=$A2,$B$2:$B$15)),"",IF(SMALL(IF($A$2:$A$15=$A2,$B$2:$B$15),COLUMNS($A$1:A$1))>=$B2,"",SMALL(IF($A$2:$A$15=$A2,$B$2:$B$15),COLUMNS($A$1:A$1)))),"")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    05-19-2013
    Location
    Chester, England
    MS-Off Ver
    Excel 2013
    Posts
    40

    Re: Copying data based on repeated values in a column

    Worked first time - genius!
    Many thanks XOR LX.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Copying data based on repeated values in a column

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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