+ Reply to Thread
Results 1 to 2 of 2

Gain / Loss on account data

Hybrid View

  1. #1
    Registered User
    Join Date
    03-26-2010
    Location
    Leeds, UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Gain / Loss on account data

    HI all, I'm having a problem writing a formula to calculate the day to day increase / decrease in value on some accounts.

    For instance, the top part of the spreadsheet shows the value of the account on a particular day, the bottom part shows the increase / decrease on that day.
    The increase / decrease on the account should be calculated from the initial day and show and increase / decrease if the balance changes on any particular day.

    I had some luck with the following formula, that another forum member kindly provided =IF(E8="","",E8-$B8), this calculates the change in balance correctly if the balance does not change on the previous day to the balance being calculated, or there are no changes in balance since the first day.

    For instance on days 2 and 3 for account number 4 the difference between the days would be a balance of 600-100, i.e. 500. The formula in its present state (cell E17, highlighted in yellow) calculates it as -200 (using 300 – 600) because it has taken the starting balance and not accounted for the previous days balance.

    I would be most appreciative of any insight you can provide on the above and the attached.
    Thanks for your help, Steve.
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Gain / Loss on account data

    I confess not all of the values in your file make sense me to and wonder if perhaps you're looking for:

    C16: =IF(C6="","",C6-LOOKUP(9.99E+307,$B6:B6))
    copied across matrix C16:G20

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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