+ Reply to Thread
Results 1 to 8 of 8

Copying without repetition

  1. #1
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Copying without repetition

    Hello Gurus,

    How can I copy my project code from Column B to column AJ without repetition?

    Please find attached file.

    Thanks.

    thong
    Attached Files Attached Files

  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,731

    Re: Copying without repetition

    Put this array* formula in AJ3:

    =IFERROR(INDEX($B$3:$B$30,MATCH(0,COUNTIF($AJ$2:AJ2,$B$3:$B$30),0)),"")

    and then copy down.

    *An array formula needs to be committed using the key combination Ctrl-Shift-Enter (CSE), instead of the usual <Enter>.

    Hope this helps.

    Pete

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copying without repetition

    Hi Pete,

    I followed your instructions and got ACE for every one

    (I'm trying to understand array formulas)
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  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,731

    Re: Copying without repetition

    Okay, well here's the file so you can check it out.

    Pete
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Copying without repetition

    Thanks Pete, Works like a charm!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Copying without repetition

    Here is a non-array version...
    =IFERROR(INDEX($B$3:$B$30,MATCH(0,INDEX(COUNTIF($AJ$2:AJ2,$B$3:$B$30),),0)),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Copying without repetition

    This solution will allow you to delete an entry in column B and it will also be deleted from column AJ closing the gap and without leaving a 0.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copying without repetition

    Thanks Pete,

    I must have done something wrong

+ 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] repetition of variable
    By itselflearn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-05-2015, 09:39 PM
  2. [SOLVED] Sum without repetition
    By ratkiller in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-19-2013, 09:20 AM
  3. [SOLVED] Repetition
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-29-2012, 06:55 PM
  4. how to avoid repetition in a row
    By jailan.rashed in forum Excel General
    Replies: 8
    Last Post: 01-11-2012, 06:53 AM
  5. Sampling Without Repetition
    By Provoxt in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-13-2010, 10:23 AM
  6. Repetition
    By EAMOG in forum Excel General
    Replies: 5
    Last Post: 12-15-2008, 06:37 PM
  7. Repetition
    By filmor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-06-2008, 02:55 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