+ Reply to Thread
Results 1 to 10 of 10

Balance Formula Exclude CC Payments or Transfers

  1. #1
    Forum Contributor
    Join Date
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    Balance Formula Exclude CC Payments or Transfers

    Hi,

    Can the formulas in column N be adjusted so as to not include when Type is either "CC Payments" or "Transfers" ?

    Thank you

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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,939

    Re: Balance Formula Exclude CC Payments or Transfers

    Is this what you want?

    =SUMPRODUCT([Amount]*(--([Date]<=[@Date]))*([Type]<>"CC Payments")*([Type]<>"Transfer")*([Type]<>"Income")*(-1)+([Type]="Income"))

    If not, then provide 10 rows of expected results (manually).
    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
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    Re: Balance Formula Exclude CC Payments or Transfers

    I don't think that is right. It should keep a running total as transactions are added.

    I applied the new formula and the first line goes to negative amount even though it was a positive income.
    Attached Files Attached Files

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

    Re: Balance Formula Exclude CC Payments or Transfers

    Where are the manually mocked-up expected results that I asked for?

    Please explain in WORDS what the formula is meant to be doing in its entirety.

    The first line is showing a positive 5, not a negative ...

  5. #5
    Forum Contributor
    Join Date
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    Re: Balance Formula Exclude CC Payments or Transfers

    It should keep a running total of Income, Expenses, or Savings. When there are CC Payments or Transfers these transactions should not be included in the running total. I will work on the manual entries.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Balance Formula Exclude CC Payments or Transfers

    Try, =SUMPRODUCT(-[Amount]*([Date]<=[@Date])*([Type]<>"CC Payments")*([Type]<>"Transfer")*([Type]<>"Income")+[Amount]*([Date]<=[@Date])*([Type]="Income"))

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

    Re: Balance Formula Exclude CC Payments or Transfers

    Try this:

    =IF(N13="Balance",[@[CSV Amount]],IF(OR([@Type]="CC Payments",[@Type]="Transfer"),N13,N13+[@[CSV Amount]]))
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    Re: Balance Formula Exclude CC Payments or Transfers

    Thank you very much for your help @AliGW and @josephteh they both are achieving desired results.

  9. #9
    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,939

    Re: Balance Formula Exclude CC Payments or Transfers

    Excellent!

    In future, please ALWAYS include some expected results and a clear explanation of what the formula is meant to be doing. It will make your helpers' lives much easier.

  10. #10
    Forum Contributor
    Join Date
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    Re: Balance Formula Exclude CC Payments or Transfers

    Okay will do. Thanks.

+ 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. Replies: 1
    Last Post: 12-29-2018, 07:59 PM
  2. Replies: 6
    Last Post: 06-14-2018, 03:05 PM
  3. formula for calculating advance payments, pays and balance
    By Minaknez in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2017, 04:04 PM
  4. Need a formula to deduct payments from balance
    By dmxxmd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2014, 01:46 AM
  5. [SOLVED] track balance based on payments in Excel
    By poet92581 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2006, 01:20 AM
  6. Simple interest, multiple payments, loan balance
    By NinasNumber in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2006, 03:35 PM
  7. Replies: 0
    Last Post: 03-17-2005, 03:06 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