+ Reply to Thread
Results 1 to 8 of 8

need to make a new sheet of triplicates

  1. #1
    Registered User
    Join Date
    02-14-2019
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    3

    need to make a new sheet of triplicates

    Hi all,

    I am in need of making an excel sheet from 3 other separate worksheets into 1, merging in a way.

    I have 3 separate worksheets that list account numbers in them, no duplicates in these separate sheets. I am trying to take these 3 separate sheets and only keep the account numbers that have appeared in all 3 sheets and make a new sheet displaying just the one account number. Is there a way to do this in excel? My account numbers are in the A column for all sheets.

    Thanks.

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: need to make a new sheet of triplicates

    Assuming the sheets are sheet1, sheet2, sheet3.

    In sheet1 first spare column (I have assumed col-D): In D2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change the "10" in A$10 to as many rows as necessary

    The TRUE values in column-D correspond to the account numbers that appear in all three sheets.

    Hopefully this is what you are looking for.

  3. #3
    Registered User
    Join Date
    02-14-2019
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    3

    Re: need to make a new sheet of triplicates

    So my sheet names are October, November, December and each one has a different set of rows (October-600, November-585, and December-392). My blank sheet for the "merged" data would be the 4th sheet.

    I think in order to modify the formula it should be the following: A1 blank column in the 4th sheet, the formula should be,

    =AND(COUNTIF(October!A$2:A$600, A2)>0, COUNTIF(November!A$2:A$585, A2)>0, COUNTIF(December!A$2:A$392, A2)>0)

    When I entered it in, I get the False result. Perhaps could it be the formatting of the cells? I noticed the account column, A, is formatted as general, instead of number.

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: need to make a new sheet of triplicates

    First - just to confirm - the formula needs to be entered into the October or November or December worksheet, not the blank "merge" sheet.

    Secondly - yes - if some of the account numbers are "numbers" and some are "text" then the formula will fail.

    Can you upload a subset of your data? - just enough rows to show the formula returning FALSE when it should return TRUE.

    To attach a file, first make sure to remove any sensitive/proprietary data and then click on “GO ADVANCED” and then scroll down to “Manage Attachments” to open the upload window. Choose your file then click on “Upload”, scroll down then click on “Close this window”, then “Submit reply”.

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: need to make a new sheet of triplicates

    Better idea:

    Paste the following formula in cell A2 of your empty "merge" sheet and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You will then get account numbers in the rows of column-A of the "merge" sheet where the account number appears in all three months and blanks otherwise. You could then copy / paste-values and sort to get a consecutive list of account numbers.

    You will still have a problem if some of the account numbers are text and others are numbers.

    The attached workbook shows my simple test.
    Attached Files Attached Files

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

    Re: need to make a new sheet of triplicates

    Hi,

    Assuming you have an Office 365 subscription with your Excel 2016, in your first cell of choice within the 'merged' sheet, array formula**:

    =IFERROR(SMALL(IF(FREQUENCY(October:December!A$1:A$1000,October:December!A$1:A$1000),FILTERXML("<a><b>"&TEXTJOIN("</b><b>",,October:December!A$1:A$1000)&"</b></a>","//b")),ROWS(A$1:A1)),"")

    Copy down until you start to get blanks for the results.

    Assumes:

    1) The numbers within the ranges being queried are not text (i.e. the ISNUMBER function would return TRUE when applied to them), irrespective of actual cell formatting.
    2) The leftmost and rightmost sheets to be queried are named October and December respectively

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

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

  7. #7
    Registered User
    Join Date
    02-14-2019
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    3

    Re: need to make a new sheet of triplicates

    Thanks for helping me with this. I have just included a couple of rows of numbers here, and the formula on the third sheet. If you notice on the first 3 sheets, the account number 9527 and 9538 appear on each of the 3 sheets. This is the information I need so that I can ultimately make a mail merge document later on.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: need to make a new sheet of triplicates

    OK, thanks. You put the formula on the December worksheet in cell C2 but you didn't copy the formula down to C7. If you do that you will see TRUE against accounts 9527 and 9538 which I think is your desired result.

    I also added my formula from post #5 to the "Merge Sheet" to A2 and then copied it down beyond A7 - check that out also.

    Hope we're getting closer!

    I have attached your workbook with the above modifications.
    Attached Files Attached Files

+ 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] finding duplicates and triplicates between two lists
    By LAVA2 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-31-2018, 02:40 AM
  2. Highlighting sets of duplicates, triplicates, etc
    By Spotniq in forum Excel General
    Replies: 6
    Last Post: 09-16-2015, 01:31 PM
  3. find du/triplicates or more and combine cellvalue of next cells
    By lesulong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2014, 08:39 AM
  4. Remove duplicates but not triplicates or more?
    By tuppari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-09-2012, 08:23 AM
  5. [SOLVED] Duplicates, triplicates and more
    By jfd456 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2012, 10:35 AM
  6. Delete duplicates, triplicates and retaining 1 unique
    By iamreese in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2012, 08:01 AM
  7. formatting duplicates, triplicates and almost matches
    By GRichner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2009, 06:45 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