+ Reply to Thread
Results 1 to 26 of 26

Compare 2 sheets and show balance

  1. #1
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Compare 2 sheets and show balance

    Hey Guys ,
    I need help for a problem.

    I am into small morgaging business.


    Sheet "ENTRY" is the sheet where I enter CODE, customer name , and other details.
    Sheet "Withdraw" range "A" is the sheet where I enter the codes of the items withdrawn by the customer.

    Now I want to compare sheet "Entry" and "Withdraw" and show the remaining items with me in sheet "In Hand"


    So in my sample sheet i have entered many codes in sheet "Entry" .
    Some of the items have been withdrawn , which i have shown in sheet "WITHDRAW"

    I just want the items which are not withdrawn in sheet "IN STOCK"

    can anyone please help me?


    I have attached the sample workbook
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    Anyone please help me

  3. #3
    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,410

    Re: Compare 2 sheets and show balance

    Please mock up what you want to see in the IN HAND sheet - it is currently blank.
    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.

  4. #4
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    Hey,
    Thank you so much for your response.

    Sheet "In Hand" range "A" must be the codes which are not withdrawn.

    Basically sheet "ENTRY" range "A" minus Sheet " WIthdraw" range "A"


    I want to match range A of sheet "ENTRY" and "withdraw" and show the remaining in sheet "In hand"
    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 (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Compare 2 sheets and show balance

    This tells me nothing useful:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    CODE CUSTOMER NAME ADDRESS
    2
    AS3
    3
    AS4
    4
    AS5
    5
    AS6
    6
    AS7
    Sheet: IN HAND

    I asked you to mock up what you want to see on that sheet. You have just provided an empty data table. Please do as you have been asked and then you will get a solution quicker.

  6. #6
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    Hey,

    Sheet "In hand" range "A" is the data which i intend to find.

    I have matched the 2 sheet and done it by hand.

    I am looking for a formulae to get these.

    I want to match range A of sheet "ENTRY" and "withdraw" and show the remaining in sheet "In hand"

    I have updated the sample file. Please check.
    Attached Files Attached Files

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

    Re: Compare 2 sheets and show balance

    Thanks - I will have a look.

    Are you using Excel 2007 or a later version? If the latter, you need to update your forum profile to show the current version you are using. Please do this now. Thanks.

  8. #8
    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,410

    Re: Compare 2 sheets and show balance

    In A2 (adjust the length of thw arrays to suit the size of your data):

    =IFERROR(INDEX(ENTRY!A:A,SMALL(IF(ENTRY!$A$2:$A$8 <> WITHDRAW!$A$2:$A$8,ROW($A$2:$A$8)),ROWS($A$1:A1))),"")

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Once confirmed, drag copy down.

  9. #9
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    Please ignore this message.

    Multiple uploads
    Attached Files Attached Files
    Last edited by anilpatni1234; 07-09-2018 at 04:21 AM.

  10. #10
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    Hey.

    Thank you.

    I am using Excel 2007

  11. #11
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    Also the formulae does not work .


    Sheet "In Hand" must be showing me the codes of all those items which are not present in range A of sheet " withdraw"

    But it does not work at the moment.

    I have presses Cntrl Shift Enter as well. but its not working
    Last edited by anilpatni1234; 07-09-2018 at 04:07 AM.

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

    Re: Compare 2 sheets and show balance

    It's working fine here - I will try to attach it (although the forums are on the blink, so I may not be able to).
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    HEy.

    I got the problem.

    I am not getting the "{" and " }" even after pressing cntrl shift enter

  14. #14
    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,410

    Re: Compare 2 sheets and show balance

    You are doing something wrong, then. Use my attachment. Do NOT attempt to type the curly brackets yourself - that will stop the formula from working.
    Last edited by AliGW; 07-09-2018 at 04:35 AM.

  15. #15
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    Hey.

    Thank you so much for your help.

    I will use your attachment .

    But i will try finiding the error as well.

    Thank you so much for your time.

  16. #16
    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,410

    Re: Compare 2 sheets and show balance

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  17. #17
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    Hey Ali,

    I encountered a problem.


    I have attached my workbook.

    I have put the formulae as discussed with you.

    However its not working right now.

    Also I have modified the formulae to entend range to 500000.


    can you please help me
    Attached Files Attached Files
    Last edited by anilpatni1234; 07-11-2018 at 04:31 AM.

  18. #18
    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,410

    Re: Compare 2 sheets and show balance

    Where is the updated file? I see no new attachment.

  19. #19
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    Internet problemm. Its uploaded . Pleas e check

  20. #20
    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,410

    Re: Compare 2 sheets and show balance

    One of the ranges needs changing:

    =IFERROR(INDEX(ENTRY!A:A,SMALL(IF(ENTRY!$A$2:$A$500000<>WITHDRAW!$A$2:$A$500000,ROW($A$2:$A$500000)),ROWS($A$1:A1))),"")

    All ranges need to be the same size.

  21. #21
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    I have made the ranges of same size.

    However its not showing me the results.

    It was suppose to match sheet "Entry" and "Withdraw" and show the balance.

    However its not working for me.

    I have uploaded the workbook
    Attached Files Attached Files

  22. #22
    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,410

    Re: Compare 2 sheets and show balance

    In what way is it not working? Explain what you mean.

    No time now, sorry - just going out.

  23. #23
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Compare 2 sheets and show balance

    HEy Ali,

    Thats okay.

    Whenever you are free then have a look.

    In sheet "Entry" range "A" there are 5 codes namely - AS1,AS2,AS3,AS4,AS5
    In sheet "Withdraw " range "A" there are 2 codes namely - AS1 and As3

    So sheet "in hand" must show only As2,As4 and As5 (as these are the items which are not withdrawn yet)


    However if you see sheet "In hand" it stilll shows code AS3 which is already withdrawn.

    Could you please have a look
    Attached Files Attached Files

  24. #24
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Compare 2 sheets and show balance

    Try the following:
    1) Paste the following into cell A2 on the IN HAND sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2) Select to have the formula copied to the rest of the cells in the column.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  25. #25
    Registered User
    Join Date
    06-09-2020
    Location
    Cambodia
    MS-Off Ver
    Window 10
    Posts
    3

    Re: Compare 2 sheets and show balance

    Try
    =IFERROR(INDEX(ENTRY!A:A,SMALL(IF(ENTRY!$A$2:$A$5000<>WITHDRAW!$A$2:$A$5000,ROW($A$2:$A$5000)-ROW($A$2)+1),ROWS($A$2:A2))),"")
    Control+Shift+Enter

  26. #26
    Registered User
    Join Date
    06-09-2020
    Location
    Cambodia
    MS-Off Ver
    Window 10
    Posts
    3

    Re: Compare 2 sheets and show balance

    Try
    In A2:
    =IFERROR(INDEX(ENTRY!A:A,SMALL(IF(ENTRY!$A$2:$A$5000<>WITHDRAW!$A$2:$A$5000,ROW($A$2:$A$5000)-ROW($A$2)+1),ROWS($A$2:A2))),"")
    Control+Shift+Enter

+ 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] compare two excel sheets and show missing data in a new sheet
    By jhonnyexcel in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-04-2016, 08:46 AM
  2. IF function for running balance that wont show starting balance in all cells
    By Heather T in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-11-2015, 03:15 PM
  3. Formula to show deductions and balance
    By Rpatel1974 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2014, 02:15 PM
  4. Formula to show current day balance on a different sheet
    By wiljar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2013, 04:51 AM
  5. How to compare data and balance amounts owed
    By desmondo37 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2012, 08:00 PM
  6. Replies: 3
    Last Post: 12-30-2011, 02:17 PM
  7. [SOLVED] Getting the Check Register Balance to show on another Sheet
    By thenderson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-21-2005, 03:35 PM

Tags for this Thread

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