+ Reply to Thread
Results 1 to 3 of 3

Sum only if corresponding field is not empty

  1. #1

    Sum only if corresponding field is not empty

    I have a table which includes the date, Expected expenditures and
    actual expenditured:
    Date Expected Actual
    1 10 10
    2 10 11
    3 10 9
    4 10 8
    5 10 12
    6 10
    7 10
    8 10
    9 10
    etc.

    At the end of the date, I enter the actual expenditures for that day.
    Now, for example, say it is the end of the 5th day of the month. I have
    a sum function at the bottom of actual which is sum(above). How can I
    get a sum of the expected only up to that current date for which i have
    entered data into the actual column, so as to compare total
    expenditures so far with expected expenditures up to this date? TIA


  2. #2
    Registered User
    Join Date
    01-19-2006
    Posts
    13
    This isn't very pretty but I think it works. Cell references are assuming that your data above starts in cell A1

    =-SUMIF(C1:C9,"",B1:B9)+SUM(B1:B9)

  3. #3

    Re: Sum only if corresponding field is not empty

    Thanks for the quick reply, worked perfectly. As you can probably tell,
    i'm new to excel and am just creating a ton of sheets for everyday
    applications, so I can learn how to use it.


+ 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