SUM only certain ones

crazyd

New Member
Joined
Sep 1, 2002
Messages
5
I asked this before, but I think I may have asked it wrong.
I have a driving log. In column D5 thru D73 is to put either Day or Night. In Column F5 thru F73 is total drive time. I need at the bottom of the sheet to have a total for all day time and a different total adding all of the ones that say night. Is this possible?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
On 2002-09-03 06:59, crazyd wrote:
I asked this before, but I think I may have asked it wrong.
I have a driving log. In column D5 thru D73 is to put either Day or Night. In Column F5 thru F73 is total drive time. I need at the bottom of the sheet to have a total for all day time and a different total adding all of the ones that say night. Is this possible?
Try this:
=SUMIF(D5:D73,"Night",F5:F73)

HTH
texasalynn
 
Upvote 0
Hi Crazyd,

you can use the SUM.IF function to select what you want to total.

total:=SUM(F5:F73)
total day:=SUM.IF(D5:D73,"Day",F5:F73)
total night:=SUM.IF(D5:D73,"Night",F5:F73)

Geert
 
Upvote 0

Forum statistics

Threads
1,225,851
Messages
6,187,386
Members
453,424
Latest member
rickysuwadi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top