+ Reply to Thread
Results 1 to 14 of 14

Copy Columns A to F into H, ignoring any duplicates or blanks.

Hybrid View

  1. #1
    Registered User
    Join Date
    08-28-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    14

    Copy Columns A to F into H, ignoring any duplicates or blanks.

    Hi folks,

    I'm looking for some help transferring lists from several columns into 1.

    I have data in A2:A8, B2:17, C2:C8, D2:D19, E2:E13 & F2:F7.

    What I want to do is take all of that data, and copy it across to column H ignoring any blanks or duplicates in the data, to create one singular list of data.

    I feel as though I've been close several times with an IF(COUNTIF...) attempt, without nailing it, and feeling as though the answer is staring me in the face. Any help would be greatly appreciated!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    See the yellow banner at the top of the page.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-28-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    14

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    Quote Originally Posted by AliGW View Post
    See the yellow banner at the top of the page.
    Hi Ali,

    Thanks for the reply. Are you referring to creating a small example and attaching it? Just checking, as I have 3 yellow banners at the top of my page.

  4. #4
    Registered User
    Join Date
    08-28-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    14

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    I've created a file with the information detailed above and attached. If anyone can help, it's much appreciated!
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    Not much use, I'm afraid!

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    1
    General
    Water
    Boat
    Field
    Workshop
    Lab
    Finalised list
    2
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    3
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    4
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    5
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    6
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    7
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    8
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    9
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!
    10
    #VALUE!
    #VALUE!
    #VALUE!
    11
    #VALUE!
    #VALUE!
    #VALUE!
    12
    #VALUE!
    #VALUE!
    #VALUE!
    13
    #VALUE!
    #VALUE!
    #VALUE!
    14
    #VALUE!
    #VALUE!
    15
    #VALUE!
    #VALUE!
    16
    #VALUE!
    #VALUE!
    17
    #VALUE!
    #VALUE!
    18
    #VALUE!
    19
    #VALUE!
    Sheet: Sheet1

  6. #6
    Registered User
    Join Date
    08-28-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    14

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    Damn, I'm not making this easy so far am I! Apologies!

    Simplified version attached now.
    Attached Files Attached Files
    Last edited by AliGW; 11-24-2019 at 02:25 PM. Reason: Please don’t quote unnecessarily!

  7. #7
    Registered User
    Join Date
    08-28-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    14

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    I'm still struggling with this, so if anyone can help I'd really appreciate it!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    I'm afraid I have no clue what it is you are trying to do. I cannot work out how the finalised list relates to the rest of the data. Without understanding what your aims are, it's impossible to help - sorry.

  9. #9
    Registered User
    Join Date
    08-28-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    14

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    Thanks for the reply Ali. Not sure how else I can explain it differently from my 1st post, but I'll give it a shot.

    Columns A to F will have various entries. Some will be duplicates of each other. Some will just be blank spaces.

    In Column H, I would like to list all the entries from the first 6 columns but removing duplicates and blanks.

    Ideally so it would look something like my attached file, but I don't know how to do the formula for Column G that would remove the duplicates and blanks from the data. (It doesn't matter what order they are in for the finalised list).

    Thank you again for all the help with this, I can't stress how thankful I am for trying to sort this!
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    Hi. Try this out:

    =IFERROR(INDIRECT("R"&RIGHT(TEXT(AGGREGATE(15,6,COLUMN($A:$F)*100000+ROW($A$2:$F$4)*100+COLUMN($A:$F)/(($A$2:$F$4<>"")*(COUNTIF($G$1:G1,$A$2:$F$4)=0)),1),"00C00"),5),FALSE),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    Incidentally... 3 banners??? Can you post a screenshot of them all????

  12. #12
    Registered User
    Join Date
    08-28-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    14

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    Thanks for the help Glenn, I'm just testing out now to see if that works.

    As for the 3 banners, 2 look like they were for when you are new to the forum, and can be removed by clicking the "x" at the end of them (which I've now down unfortunately, so I can't screenshot).

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    Righto. The banner about attachments should, however, be non-dismissable... a constant reminder to all to post a nice sample sheet.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copy Columns A to F into H, ignoring any duplicates or blanks.

    One last thing. Extend the ranges in red:

    =IFERROR(INDIRECT("R"&RIGHT(TEXT(AGGREGATE(15,6,COLUMN($A:$F)*100000+ROW($A$2:$F$4)*100+COLUMN($A:$F)/(($A$2:$F$4<>"")*(COUNTIF($G$1:G1,$A$2:$F$4)=0)),1),"00C00"),5),FALSE),"")

    to cover the longest of your data columns.

+ 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] SUMIF, ignoring blanks and find earliest date ignoring blanks
    By Chris_Devon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2019, 10:16 AM
  2. [SOLVED] Copy & Paste Columns to Specific Range while Removing Blanks & Duplicates
    By dondada82 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-15-2017, 11:31 AM
  3. [SOLVED] Help to write a DAX measure to average three columns ignoring blanks
    By rv02 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-20-2016, 06:36 AM
  4. Concatenating columns ignoring blanks
    By rapscalli in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-11-2015, 11:24 AM
  5. Combine Dates from 10 Columns While Ignoring Blanks
    By DKGODFREY in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-16-2014, 11:50 AM
  6. Dynamic named range, ignoring duplicates and blanks, WITHOUT VBA
    By aimanti in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-23-2013, 06:13 PM
  7. copy cells ignoring blanks
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2011, 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