+ Reply to Thread
Results 1 to 13 of 13

Comparing account numbers on two seerate sheets

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Comparing account numbers on two seerate sheets

    I have account number on sheet "Per TB" and account number on sheet "Per AFS"


    I want to compare account numbers on sheet PER TB that is not on sheet "per AFS" and extract those that are on not on sheet "per AFS"


    I also need to compare account numbers on sheet PER AFS that is not on sheet "per TB" and extract those that are on not on sheet "per TB"


    your assistance in this regard is most appreciated


    i have attached sample data

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

    Re: Comparing account numbers on two seerate sheets

    I loaded each list to connection only and then performed two merge queries - one left anti and one right anti - to isolate the A/C numbers unique to each list.
    Last edited by AliGW; 02-10-2021 at 02:51 AM.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Comparing account numbers on two seerate sheets

    Thanks for the help AliGW

    i am not very familiar with Power Query


    It would be appreciated if you would advise me of the steps taken to get the final result

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,689

    Re: Comparing account numbers on two seerate sheets

    I don't have time now - sorry. Just about to go to work. Someone else may be happy to walk you through. I have outlined the steps I took in my previous post. I will not be around much at all today or this evening, I'm afraid.

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Comparing account numbers on two seerate sheets

    No Problem. When you have a chance later in the week , you can let me have the steps

  6. #6
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Comparing account numbers on two seerate sheets

    Hi AliGW

    I selected Sheet TB and then went to Data Tab and then selected From Table/Range and then selected Close & Load To and selected only create Connection. I did the same for Per AFS

    However I am battling with the Merge-See screen prints

    It would be appreciated if you can help me later in the week when you have a chance
    Attached Images Attached Images

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,689

    Re: Comparing account numbers on two seerate sheets

    You are doing the same thing twice - if you swap the tables around, do both as left antis. I left the tables the same - TB first and AFS second - so used left anti then right anti.

    Got to go and teach ...

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Comparing account numbers on two seerate sheets

    TB not on AFS

    =IFERROR(INDEX('PER TB'!A:A,AGGREGATE(15,6,ROW('PER TB'!$A$2:$A$300)/ISNA(MATCH('PER TB'!$A$2:$A$300,'PER AFS'!$A$3:$A$300,))/('PER TB'!$A$2:$A$300<>0),ROWS(A$2:A2))),"")

    AFS not on TB

    =IFERROR(INDEX('PER AFS'!A:A,AGGREGATE(15,6,ROW('PER AFS'!$A$3:$A$300)/ISNA(MATCH('PER AFS'!$A$3:$A$300,'PER TB'!$A$2:$A$300,))/('PER AFS'!$A$3:$A$300<>0),ROWS(A$2:A2))),"")

  9. #9
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Comparing account numbers on two seerate sheets

    Thanks AliGW


    Will have a look at this later and let you know how I go

  10. #10
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Comparing account numbers on two seerate sheets

    Many Thanks for your help, Bo_Ry

  11. #11
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Comparing account numbers on two seerate sheets

    Hi AliGW

    Thanks for your patience and help.

    I finally go it to work. PQ is very powerful and easy to use once you know how


    I have a training tutorial on power pivot & power Query and need to go through this so I become more familiar with this feature

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,689

    Re: Comparing account numbers on two seerate sheets

    I agree - I often refer to it as Pandora's Box, and have found it an invaluable tool, well worth investing some time into learning. I take it you no longer need the walk-through? It will be much late, if you do, as I have a Parents' Consultation after lessons tonight.

  13. #13
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Comparing account numbers on two seerate sheets

    Thanks -all sorted

    Many thanks for all the help. i have learnt a great deal from many people on this Forum who give up their time to help others

+ 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. Comparing and grouping numbers on two fifferent sheets.
    By BenJulian in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-12-2016, 04:20 AM
  2. Replies: 0
    Last Post: 09-17-2013, 06:29 PM
  3. [SOLVED] Remove an account range form a column with account numbers.
    By kokapelly in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-09-2013, 11:34 AM
  4. [SOLVED] How to censor account numbers based on how many characters are in the account number
    By Mcorydon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-25-2013, 01:06 PM
  5. Comparing Numbers in 2 sheets
    By bpaw in forum Excel General
    Replies: 2
    Last Post: 03-04-2011, 04:10 PM
  6. Comparing data of two sheets-Pick an account number,
    By sriramkanala in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2006, 10:59 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