Calculating the right formula

  • Thread starter Thread starter michaelas
  • Start date Start date
M

michaelas

Hi,
I'm using a worksheet as an auto mileage log as follows:
Col. A = date
Col. B= Start mileage for day
Col. C = End mileage for day
Col D = Total for day
Col E = Description/Destination

In column E, if I did not have work related mileage on a given day, I
list the description as "No Work."

My question is this:
How do I construct a formula so I can find the total mileage of all my
"No Work" trips, and have that mileage automatically totaled in one
cell? (preferably on-going, as I add mileage from day to day)

Appreciate any help.
michaelas
 
Hi!

One way:

=SUMIF(E:E,"No Work",D:D)

This formula uses entire columns as ranges, so, as you add data to the table
the formula will automatically calculate any new data that meets the
criteria. Just don't put the formula in either column D or E.

Biff
 
Hi michaelas,

try SumIf

e.g.

=SumIf(E1:E100,"No Work",D1:D100)

Obviously, amend the ranges (E1 to E100 and D1 to D100) to suit you
circumstances.

Ar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top