+ Reply to Thread
Results 1 to 5 of 5

Problems with zero values and previous data

Hybrid View

  1. #1
    Registered User
    Join Date
    06-03-2008
    Posts
    14

    Problems with zero values and previous data

    I'm trying to get a type of balance sheet together for a larger worksheet I'm working on but I am having difficulty with zero values.

    On some months there won't be any data, so the line total will be zero, not a problem. That is until we want to continue with the next month (or several months in the future) where we include the data and the line total doesn't add to the previous known total.

    i.e.

    last input data in month 3 totalled £1000, no data until month 7 so all are zero. Then on month 7 there is a £1 loss, but this is just showing -£1 not £999. Now I have tried to do this many ways which just throw out circular reference problems, like doing a lookup for the last value in the column, works fine until you enter the next line of data and everything updates, lol.

    Pulling my hair out right now so if anybody has any idea's I'll willingly try them out.

    I have attached the file with demo data so you can see what I'm doing completely wrong. The first line of data will be drawn from another sheet so I have just added 1,000 for test purposes.

    Line K7 should reflect the previous balance at K4, but after several attampts I'm giving up.

    All help is appreciated, and you never know I may even end up with some hair left.

    Bluefrog
    Attached Files Attached Files

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Is this what you want, K1 would need to say "Running Total", if you put this in K3 and drag down the column

    =K2+C3+G3-E3-I3
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    06-03-2008
    Posts
    14
    Works OK but still shows values when there is no data present in the two columns. Ideally this should be left blank, and carried over until there is user input in either of the profit or loss columns. This eliminates the entire column having values when the user month is May, Jun-Dec should be blank or zero values, but when data is entered they should become positive (or negative) values again and show in the column, in relation to the last previous value visible.

    Any idea's?

    BTW, thanks for the input so far.
    Last edited by bluefrog; 06-04-2008 at 06:58 AM.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    May be this in K3

    =IF(AND(C3="",E3="",G3="",I3=""),"",$K$2+SUM($C$3:C3)+SUM($G$3:G3)-SUM($E$3:E3)-SUM($I$3:I3))
    and drag down

  5. #5
    Registered User
    Join Date
    06-03-2008
    Posts
    14
    That seems to work perfectly, thanks 1,000,000 times.

+ 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