+ Reply to Thread
Results 1 to 18 of 18

Formula for closing balance

  1. #1
    Registered User
    Join Date
    01-11-2021
    Location
    Canada
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Formula for closing balance

    File updated

    Original Post:

    I am trying to find a formula to know the closing balance for each accounts in the tab "Épargnes et Inv." (Column G)

    What the formula would do is to update the closing balance each time there is a new data, whether a transaction made (deposit or withdrawal which the amount are in Column "D") or a Profit/Loss on the annual report. I linked a file to give you a better idea of what I look for and in which column the formula will be entered.

    Thanks in advance for any feedback, I'm open to every suggestion !
    Attached Files Attached Files
    Last edited by AliGW; 01-24-2021 at 12:04 PM.

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

    Re: Formula for closing balance

    And what value do you expect to be returned by the formula in G14? What is the result you are aiming for (the actual value, not a description of it)?
    Last edited by AliGW; 01-24-2021 at 04:10 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 Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Formula for closing balance

    What was wrong with the formula that you had in some parts of the column, namely:

    =SUMIFS(D$14:[@AMOUNT],C$14:[@ACCOUNT],[@ACCOUNT])

    Strictly speaking, SUMIFS is not needed, as there's only one IF and I don't like structured references a lot, so I'd use:

    =SUMIF(C$14:C14,C14,D$14:D14)

    But either way, same answer. You may need to use ; as the separator.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    01-11-2021
    Location
    Canada
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Re: Formula for closing balance

    Updated the file
    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,783

    Re: Formula for closing balance

    And your response to Glenn's suggestion is???

  6. #6
    Registered User
    Join Date
    01-11-2021
    Location
    Canada
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Re: Formula for closing balance

    Hi AliGW!

    I have updated the file with the expected results for last month and this month. I updated the file twice (one for you and one for Glenn but I thought it would've update only on the original post but the file is shown in the original post #1 and the other in comment #4 (either one have the information you are looking for ). Still trying to comprehend how the forum works. Thanks for helping me out .

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

    Re: Formula for closing balance

    OK - how about:

    =INDEX($D7:$AM7,MATCH(EOMONTH(TODAY(),-2)+1,$D$6:$AM$6,0))

    and:

    =INDEX($D7:$AM7,MATCH(EOMONTH(TODAY(),-1)+1,$D$6:$AM$6,0))
    Attached Files Attached Files
    Last edited by AliGW; 01-24-2021 at 12:00 PM.

  8. #8
    Registered User
    Join Date
    01-11-2021
    Location
    Canada
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Re: Formula for closing balance

    Hi Glenn!

    The SUMIFS and the values shown were good at the time that I had only the AMOUNT column (column D) but few days later, I've add the PROFIT/LOSS column (column F) so now I wasn't able to add in the the PROFIT/LOSS in the SUMIFS formula (wanted to sum AMOUNT and PROFIT/LOSS together in the SUM RANGE but it gives me a VALUE error). I've updated the file to let you know what would be the expected result (example row is highlited in black). Let me know if you need more detail/infos. Thanks for taking the time to try to solve the issue!

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

    Re: Formula for closing balance

    Why did you replace the file and delete the requirement at Post 1??? Talk about causing confusion!!

    Try this:
    =SUMPRODUCT((C$14:C14=C14)*(D$14:D14+F$14:F14))

    copied down
    Attached Files Attached Files

  10. #10
    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,783

    Re: Formula for closing balance

    OK - looks like the cells highlighted in the file I looked at are not the ones you are asking about.

    I will just move on - nothing to see here.

    Oh, and I reinstated the text of your opening post - don't delete messages like that again.

    By the way, let me know, please, if the solutions I offered are of any use.
    Last edited by AliGW; 01-24-2021 at 12:10 PM.

  11. #11
    Registered User
    Join Date
    01-11-2021
    Location
    Canada
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Re: Formula for closing balance

    Perfect! Exactly what I was looking for! Thanks AliGW !

    P.S. By curiosity, at the end of the EOMONTH part of the first formula ...-2)+1?... , why can't we just write -1 to give us the last month instead of -2)+1?

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

    Re: Formula for closing balance

    Because TODAY()-1 is not always going to be the first of the month. Your month row are all first of the month, so that's what we need for the match.

    EOMONTH(TODAY(),-2) is 30 November 2020, then +1 is 01 December 2020. You can work the other one out from that.

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Last edited by AliGW; 01-24-2021 at 12:21 PM.

  13. #13
    Registered User
    Join Date
    01-11-2021
    Location
    Canada
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Re: Formula for closing balance

    Excellent !! It works! Thanks a lot for the help Glenn!

    I understand the confusion and maybe the irritation, sorry about that! It wasn't intentional regarding the deleted requirement post :S. Still trying to figure out how the forum operates. It's because I don't know how to attach a file in the reply section instead of updating it in the original post. Don't even know how my duplicate file ended up outside of the original post :S??? If you or anybody can enlighten me on this one, it would help me to avoid further confusions.

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

    Re: Formula for closing balance

    Have we answered different questions??? I am very confused.

    Please see post #12 with instructions about how to mark this as solved.

  15. #15
    Registered User
    Join Date
    01-11-2021
    Location
    Canada
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Re: Formula for closing balance

    Aaaah ok makes sense!! Thanks for taking the time to explain !

    Thanks for reminding me regarding the SOLVED status and the add reputation when someone helped me (will get use to how the forum works over time ). Have a great day of evening AliGW!

  16. #16
    Registered User
    Join Date
    01-11-2021
    Location
    Canada
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Re: Formula for closing balance

    Hi AliGW!

    Just updated the status of the thread tool to "SOLVED"

  17. #17
    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,783

    Re: Formula for closing balance

    Thank you!

  18. #18
    Registered User
    Join Date
    01-11-2021
    Location
    Canada
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Re: Formula for closing balance

    You're welcome!

+ 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] Find a closing balance by date
    By JakeMann in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-21-2020, 06:14 AM
  2. How can i make my closing balance to opening balance automatically next day?
    By omer.w094 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2019, 02:21 AM
  3. How can i make my closing balance to opening balance automatically next day?
    By omer.w094 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2019, 02:20 AM
  4. [SOLVED] Calculating Closing Balance for a date range and with a condition in excel
    By tpsdas in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-29-2017, 08:54 AM
  5. Conditional Formatting for Closing Bank Balance
    By Neilesh Kumar in forum Excel General
    Replies: 10
    Last Post: 06-21-2016, 11:59 AM
  6. Opening balance and closing balance end of months.
    By sammy011 in forum Excel General
    Replies: 2
    Last Post: 01-31-2013, 02:12 PM
  7. Calculating Closing Balance that compounds
    By magjayeck in forum Excel General
    Replies: 1
    Last Post: 01-14-2013, 04:56 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