+ Reply to Thread
Results 1 to 16 of 16

Extract the latest Account Balance based on dates

  1. #1
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Extract the latest Account Balance based on dates

    Hello,

    I need your help please.
    I have a file I am downloading from the bank, and need to extract the balances of all accounts for the end of July.

    The file can contain a range of dates from the 1st of Jul.- Jul.31st . A balance will show depending if there were transactions on that date.
    If there were no transactions it will skip to the next day.


    I have 2 problems:

    1. The file is showing some of the dates as a text, which makes it difficult to use for calculations.
    2. Some of the balances will end at 30.7 and some on 31.7
    I need a formula to take the most recent balance.


    I attached an example hereby.

    Thank for your help.
    Attached Files Attached Files
    Last edited by Limor_OP; 08-09-2020 at 03:11 AM.

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

    Re: Extract the latest Account Balance based on dates

    Still Office 2010, or something newer?
    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 Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Extract the latest Account Balance based on dates

    yes, 2010.

  4. #4
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Extract the latest Account Balance based on dates

    I'm not sure your regional settings allows you to convert text to data use -- but i hope it will be

    P.S. Sorry i couldn't insert formulas to the message. Site firewall rejected it
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Extract the latest Account Balance based on dates

    Thanks BWV
    I will copy the formulas:
    E4:
    IFERROR(INDEX($A$4:$A$97,MATCH(0,COUNTIFS($E$3:E3,$A$4:$A$97),)),"")

    G4:
    =IFERROR(INDEX(B:B,0.1+MOD(AGGREGATE(14,6,($C$4:$C$97+ROW($C$4:$C$97) %% )/($A$4:$A$97=E4)/(-- ($C$4:$C$97)>=$E$2)/(--($C$4:$C$97)< EDATE($E$2,1)),1),1)/1 %%),"")

    The problem is that the balances returned are not for the last day of the month.

    For example - account 3-101 returns 66.29 while it should return 70.64 (for Jul. 30) because it recognizes Jul. 09 as Sep. 07th
    If I download the report as CSV - can it fix the dates issue?

    Thank you!

  6. #6
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Extract the latest Account Balance based on dates

    What is the correct result 66.29 or 70.64 ? In My file it's 70.64.

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Extract the latest Account Balance based on dates

    Probably indeed regional settings.
    the dates are supposed to relate to July only.

    my File is showing :

    1-001 53032
    5-330 18.13
    2-001 11599
    3-101 66.29

    The dates for account 3-101 are showing:

    66.29 7-Jan-2020
    66.29 7-Feb-2020
    66.29 7-Mar-2020
    66.29 7-May-2020
    66.29 7-Jun-2020
    66.29 7-Jul-2020
    66.29 7-Aug-2020
    51.39 20/07/2020
    51.39 21/07/2020
    51.39 22/07/2020
    51.39 23/07/2020
    51.39 24/07/2020
    51.39 26/07/2020
    12.07 17/07/2020
    12.07 19/07/2020
    12.07 15/07/2020
    12.07 16/07/2020
    84.97 13/07/2020
    84.97 14/07/2020
    6.29 7-Oct-2020
    6.29 7-Dec-2020
    70.64 28/07/2020
    70.64 29/07/2020
    70.64 30/07/2020
    51.36 27/07/2020
    66.29 7-Sep-2020

  8. #8
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Extract the latest Account Balance based on dates

    What can I do with the dates? some are displayed as text , and some are not. Those that are showing as a date switched the month with the day :/// so Jul. 09 became Sep. 07th , etc.....

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Extract the latest Account Balance based on dates

    I used Power Query and converted all the dates to US format. Here is the Mcode

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Extract the latest Account Balance based on dates

    You can use Text to columns to convert the dates to real dates.
    on page 3 select DMY (It must be the format the dates are in, not your regional settings)

  11. #11
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Extract the latest Account Balance based on dates

    Thank you All.
    Fluff - I did what you said and now BMV 's formula works perfectly.

    Alan - thank you too! this is a few levels above my capabilities

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Extract the latest Account Balance based on dates

    You're welcome & thanks for the feedback.

  13. #13
    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,756

    Re: Extract the latest Account Balance based on dates

    Glad to help.

  14. #14
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Extract the latest Account Balance based on dates

    Belinda
    If you want to explore Power Query then I suggest you get a copy of "M is for (Data) Monkey" by Ken Puls and Miguel Escobar. Worth learning and not as difficult as VBA/

  15. #15
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Extract the latest Account Balance based on dates

    I wish I had the time to learn. Where is this book available, and how much does it cost?

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

    Re: Extract the latest Account Balance based on dates

    Amazon: https://www.amazon.co.uk/s?k=m+is+fo...l_90mwa9xjd9_e

    The third book on that page by Gil Raviv is pretty handy, too. I have both.

+ 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] Need a VBA coding for extract latest price list based on date & Export button (xlsx pdf )
    By Pankaj jaswani in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2020, 06:45 AM
  2. Need formula to extract account ID, per unique sub-account
    By ierosadopr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-21-2019, 10:38 AM
  3. [SOLVED] Help require to get a paid/balance account
    By mso3 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-28-2015, 10:44 PM
  4. How to keep running balance for one account.
    By Rheanna in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2014, 01:51 PM
  5. Account Balance + intrest monthly
    By wcnwzrd in forum Excel General
    Replies: 0
    Last Post: 03-23-2009, 08:29 PM
  6. bank account balance
    By kc27315 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-08-2008, 02:48 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