![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Mar 2002
Posts: 6,205
|
Hi I am looking for a formula which will run down Column D and total all times in Column E (HH:MM:SS) for "UP-Time". I guess I can apply the same formula to "DOWN-Time" Since I'm here... I will also be attempting to get the % of UP-Time and the % of DOWN-Time from these totals... Thanks, Tom |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 39,494
|
Quote:
Same for the DOWN-Time: Just replace the condition (2nd) argument. Custom format the formula cells as [hh]:mm:ss Aladin |
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,208
|
Quote:
=SUMPRODUCT((E4:E10)*(D4:D10="UP-Time")) Note cell formated as; [hh]:mm:ss to show total over 24hrs |
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,208
|
Woops!! Aladin beat me by 1 Min
_________________ ![]() Kind Regards, Ivan F Moala [ This Message was edited by: Ivan F Moala on 2002-05-04 16:04 ] |
|
|
|
|
|
#5 |
|
Join Date: Mar 2002
Posts: 6,205
|
You guys are great!
I used both of them. I had no clue you could do that with the Range on the end with SumIf. I always thought that this was all you could do: =SumIf(Range,Condition) I have never used the SumProduct before. Will need to check it out more thouroughly. I appreciate it. Am forcing myself to learn these functions instead of resorting to VBA too much of the time. Have a good one! Tom |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 39,494
|
Quote:
The full syntax for SUMIF is: SUMIF(Range1,Condition,Range2) where Condition is expected to hold for Range1. Moreover, Range2 can be the same as Range1: SUMIF(Range,Condition,Range) which gets shortened to: SUMIF(Range,Condition). On SUMPRODUCT, see: http://www.mrexcel.com/wwwboard/messages/8961.html Aladin [ This Message was edited by: Aladin Akyurek on 2002-05-04 16:34 ] |
|
|
|
|
|
|
#7 |
|
Join Date: Mar 2002
Posts: 6,205
|
Thanks Aladin.
Clear and concise. Great to have this learning for free! Tom |
|
|
|
|
|
#8 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
If you don't want to have to include the text criteria use this formula in F:F
=SUMIF(D2:D100,D2:D100,E2:E100) With this form of sumif colmn F will display both the downtime and uptime sums. |
|
|
|
|
|
#9 |
|
Join Date: Apr 2002
Posts: 113
|
When you get to similar, but more complicated stuff, try the Conditional Sum Add-in. This will show you how to create array formulas. (Can do more than just sum.) Remeber to use CTRL-SHIFT-ENTER when entering the formulas.
|
|
|
|
|
|
#10 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
Yea the array formulas are very useful and flexable ie. =SUM(IF(($A1:$A$10=A15)*($B1:$B10=B15)*($C1:$C10=C15),$D$1:$D$10))
is a SumIf that only sums column D when conditions have been met in column A,B and C. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|