+ Reply to Thread
Results 1 to 16 of 16

Excel formula to exclude zero amounts on the bank statement

  1. #1
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Excel formula to exclude zero amounts on the bank statement

    Hi

    I'm kindly asking for a formula that if column J in TXs worksheet is 0 (zero) it does not reflect on the Bank worksheet, for example rows 22,23,26 t0 31 should not appear in the bank statement. See the excel sheet.


    Thank you.

    Regards,

    Sunboy
    Attached Files Attached Files

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

    Re: Excel formula to exclude zero amounts on the bank statement

    Try this:

    =IFERROR(1/(1/IF(TXs!$J6="","",INDEX(TXs!$G$6:$G$1783,AGGREGATE(15,6,ROW(TXs!$G$6:$G1783)/(TXs!$B$6:$B$1783 > =$E$10)/(TXs!$B$6:$B$1783 < EDATE($E$10,1)),ROWS(I$19:I19))-ROW($B$5)))),"")
    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: Excel formula to exclude zero amounts on the bank statement

    Hi
    Are you using excel 2010?

  4. #4
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Re: Excel formula to exclude zero amounts on the bank statement

    Hi Ali

    Thank you for the formula. However the formula is producing blank rows but I want the rows with blank or zero amounts not to appear in the bank statement. I think I was not clear, my apologies. See the desired outcome attached.

    Thank you.
    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,869

    Re: Excel formula to exclude zero amounts on the bank statement

    Oh, I see - sorry.

  6. #6
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Re: Excel formula to exclude zero amounts on the bank statement

    Hi

    I'm using excel 365

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

    Re: Excel formula to exclude zero amounts on the bank statement

    Then please update your forum profile, which tells us you are using Excel 2010.

  8. #8
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Re: Excel formula to exclude zero amounts on the bank statement

    Hi Ali

    I have updated my profile

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

    Re: Excel formula to exclude zero amounts on the bank statement

    Hi
    If you are using 365 you can use the FILTER function
    B19 and across:
    =FILTER(FILTER(TXs!$B$6:$J$178,((TXs!$J$6:$J$178 > 0)*(TXs!$B$6:$B$178 > =$E$10)*(TXs!$B$6:$B$178 < EDATE($E$10,1))) > 0),{1,0,0,1,1,1,0,0,1})
    Attached Files Attached Files

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

    Re: Excel formula to exclude zero amounts on the bank statement

    And with your original formula:
    F19 and down:
    =IFERROR(IF(TXs!$J6="","",INDEX(TXs!J$6:J$1783,AGGREGATE(15,6,ROW(TXs!$F$6:$F$1783)/(TXs!$J$6:$J$1783 > 0)*(TXs!$B$6:$B$1783>=$E$10)/(TXs!$B$6:$B$1783 < EDATE($E$10,1)),ROWS(I$19:I19))-ROW($B$5))),"")
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Re: Excel formula to exclude zero amounts on the bank statement

    Hi Belinda2000

    Thank you for the formula. It worked for the month of January but when I changed to the month of February it did not work. See the attached excel sheet.
    Attached Files Attached Files

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

    Re: Excel formula to exclude zero amounts on the bank statement

    Please try

    =IFERROR(INDEX(TXs!$B$6:$H$1783,AGGREGATE(15,6,ROW(TXs!B$6:B$1783)/(TXs!$B$6:$B$1783>=$E$10)/(TXs!$B$6:$B$1783<EDATE($E$10,1)/(TXs!$I$6:$I$1783="Bank")),ROWS(B$19:B19))-ROW(TXs!B$5),IFNA(MATCH("*"&B$18&"*",TXs!$B$5:$H$5,),7)),"")


    or for MS365

    =FILTER(FILTER(TXs!B6:H1984,(TEXT(TXs!B6:B1984,"my")=TEXT(E10,"my"))*(TXs!I6:I1984="Bank")),{1,0,0,1,1,1,1})
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Re: Excel formula to exclude zero amounts on the bank statement

    Hi Ro_Ry

    Thank you so much. The formula is working well but the Filter function is not it shows #SPLILL!.

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

    Re: Excel formula to exclude zero amounts on the bank statement

    If you have anything in the way (below, for example) of the SPILL area, it will error out.

  15. #15
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Re: Excel formula to exclude zero amounts on the bank statement

    Hi Ali, Belinda2000 and Ro_Ry

    Thank you very much for helping. Problem solved.

    Regards,

    Sunboy

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

    Re: Excel formula to exclude zero amounts on the bank statement

    Here is mine with the rectified aggregate function:

    F19:
    Please Login or Register  to view this content.
    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] Post bank transactions to bank Recon as individual amounts instead of sums
    By SjMaxwell in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-16-2018, 03:15 AM
  2. [SOLVED] Formula, Unique day, exclude Bank holidays
    By dude6571 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2018, 07:42 AM
  3. Importing a Bank Statement to Excel
    By Marktw in forum Excel General
    Replies: 6
    Last Post: 09-16-2018, 01:21 PM
  4. Bank statement to excel
    By Berzins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2018, 01:50 PM
  5. Bank Statement Search Formula
    By dtweaponx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-11-2016, 10:25 AM
  6. Need to make a bank statement in excel 2007
    By IshfaqPeerzada in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-31-2014, 08:32 AM
  7. [SOLVED] Excel 2007 : Find bank balance in bank statement
    By Baldev Kumar in forum Excel General
    Replies: 5
    Last Post: 07-05-2012, 02:58 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