Excel - using two cells 1 with total time n 1 with date how can i put the.
Asked By Peter Gonzalez
20-Jan-10 12:59 PM
I am trying to put the amount of time spent in to a seperate sheet (Cell # 2
column E ) from a sheet that has the dates in one cell (column A) and the
time spent in another (column K) and the reason for the time spent in column
B. On the seperate sheet I have to put the amount of time spent in column E
and match with the date I have in column A on the seperate sheet to populate
the chart that I am making. The only thing that I have been able to do is
create a formula to show the amount of time spent and for what reason but i
cannot match it to the date because the dates can come in mulitiples of the
same date.
Please help!!! it is for my job
SUMPRODUCT
(1)
GotSheet
(1)
Mulitiples
(1)
Gsnu200909
(1)
Gary''s Student replied to Peter Gonzalez
Just an example. Say in column A A1 thru A20 we have:
1/5/2010
1/8/2010
1/7/2010
1/5/2010
1/7/2010
1/5/2010
1/9/2010
1/8/2010
1/1/2010
1/3/2010
1/6/2010
1/5/2010
1/9/2010
1/10/2010
1/5/2010
1/3/2010
1/6/2010
1/7/2010
1/2/2010
1/9/2010
and in column K we have:
4:54
3:28
3:48
0:22
0:03
0:31
3:31
0:53
9:03
5:27
9:38
0:25
0:06
4:54
6:09
0:42
4:30
2:09
0:37
3:06
There are multiple value of the different dates. In the other sheet in
column A we list the possible dates:
1/1/2010
1/2/2010
1/3/2010
1/4/2010
1/5/2010
1/6/2010
1/7/2010
1/8/2010
1/9/2010
1/10/2010
and in B1 in the other sheet we put:
=SUMPRODUCT((Sheet1!A$1:A$20=A1)*(Sheet1!K$1:K$20)) and copy down
we format this column B as Time and we see:
1/1/2010 9:03:56
1/2/2010 0:37:39
1/3/2010 6:10:00
1/4/2010 0:00:00
1/5/2010 12:24:03
1/6/2010 14:09:12
1/7/2010 6:00:43
1/8/2010 4:22:04
1/9/2010 6:44:21
1/10/2010 4:54:18
--
Gary''s Student - gsnu200909
Peter Gonzalez replied to Gary''s Student
thanks but that did not work for me let me show you what I got
Sheet 1 Example
Date Dept.Name1 Dept.Name2 Dept.Name3 Dept.Name4
1/18/2010 1:23 0:45 1:53 1:22
1/19/2010 1:45 2:15 5:15 0:55
1/20/2010
1/21/2010
Sheet 2 Example Same Row
Date
1/18/2010 Dept.Name2 Time Stopped Time Start Total Time Lost
(0:45)
1/18/2010 Dept.NAme1 Time Stopped Time Start Total Time Lost
(1:23)
1/19/2010 Dept.Name2 Time Stopped Time Start Total Time Lost (2:15)
the formula that I am looking for is one that i can match the dept. name with
the date at the same time entering the Total Time Lost in its respective cell
so i do not have to go back and forth from sheet to sheet or creating the
=total time lost formula after every entry.
Sumproduct formula Excel Hi All Is there a smarter way of doing this SUMPRODUCT formula? I am finding different duration totals and multiplying the total by a different ratio to be able to copy the formula across 52 columns and down 10 rows. = SUM(((SUMPRODUCT((market = $D217)*(duration = $BO$198), I$35:I$76)*thirty +SUMPRODUCT((market = $D217)*(duration = $BP$198), I$35:I$76)*five +SUMPRODUCT((market = $D217)*(duration = $BQ$198), I$35:I$76)*ten SUMPRODUCT((market = $D217)*(duration = $BR$198), I$35:I$76)*fifteen +SUMPRODUCT((market = $D217)*(duration = $BS$198), I$35:I$76)*twenty +SUMPRODUCT((market = $D217)*(duration = $BT$198), I$35:I$76)*fortyfive +SUMPRODUCT((market = $D217)*(duration = $BU
Rationalising a formula Excel Hi, Could anyone suggest a way to rationalise this formula: = SUMPRODUCT(('Tests 1'!$Z$3:$Z$970 = "Derbyshire")*('Tests 1'!$AG$3:$AG$970 = "TERMINATED")*('Tests 1'!$AE$3:$AE$970> = $C$3)*('Tests 1'!$AE$3:$AE$970< = $H$3))+SUMPRODUCT(('Tests 1'!$Z$3:$Z$970 = "Derbyshire")*('Tests 1'!$AO$3:$AO$970 = "TERMINATED")*('Tests 1'!$AM$3:$AM$970> = $C$3)*('Tests 1'!$AM$3:$AM$970< = $H$3))+SUMPRODUCT(('Tests 1'!$Z$3:$Z$970 = "Derbyshire")*('Tests 1'!$AV$3:$AV$970 = "TERMINATED")*('Tests 1'!$AT$3:$AT$970> = $C$3)*('Tests 1'!$AT$3:$AT$970< = $H$3))+SUMPRODUCT(('Tests 1'!$Z$3:$Z$970 = "Derbyshire")*('Tests 1'!$BC$3:$BC$970 = "TERMINATED")*('Tests 1'!$AE$3:$AE$970> = $C$3)*('Tests 1'!$AE$3:$AE$970< = $H$3))+SUMPRODUCT(('Tests 1'!$Z$3:$Z$970 = "Derbyshire")*('Tests 1'!$AO$3:$AO$970 = "NO - INTOXICATED 1'!$AM$3:$AM$970> = $C$3)*('Tests 1'!$AM$3:$AM$970< = $H$3))+SUMPRODUCT(('Tests 1'!$Z$3:$Z$970 = "Derbyshire")*('Tests 1'!$AV$3:$AV$970 = "NO - INTOXICATED 1'!$AT$3:$AT$970> = $C$3)*('Tests 1'!$AT$3:$AT$970< = $H$3))+SUMPRODUCT(('Tests 1'!$Z$3:$Z$970 = "Derbyshire")*('Tests 1'!$BC$3:$BC$970 = "NO - INTOXICATED 1'!$BA$3:$BA$970> = $C$3)*('Tests 1'!$BA$3:$BA$970< = $H$3))+SUMPRODUCT(('Tests 1'!$Z$3:$Z$970 = "Derbyshire")*('Tests 1'!$AG$3:$AG$970 = "NO - COUNTER
appreciate some help for a newbie if possible. ATB. Excel Worksheet Discussions Excel 2007 (1) SUMPRODUCT (1) COUNTIF (1) Porosity (1) Presence (1) Lineis (1) Zeros (1) Isome (1) Countif supports only one "if". If you have Excel 2007, you can use Countifs. If not, use Sumproduct, as in: = sumproduct(('Data Sheet'!f1:f1000 = 3)*('Data Sheet'!i1:i1000 = "Y")) You cannot use full columns with Sumproduct, so adjust the range to suit. Regards, Fred adjust your ranges to fit for columns F and I: = SUMPRODUCT((F1:F6 = 3)*(I1:I6 = "Y")) - - hope to help, cm cm and Fred Smith, thank the zeros, the line is still plotted and drops below zero for future dates. = IF(SUMPRODUCT(('Data Sheet'!$F$4:$F$65500 = $G8)*('Data Sheet'!I$4:I$65500 = "Y")) = 0, "", SUMPRODUCT(('Data Sheet'!$F$4:$F$65500 = $G8)*('Data Sheet'!I$4:I$65500 = "Y"))) I entry from being plotted, set it to #N / A, rather than 0, as in: = IF(SUMPRODUCT(('Data Sheet'!$F$4:$F$65500 = $G8)*('Data Sheet'!I$4:I$65500 = "Y")) = 0
Adding to a SUMPRODUCT formula Excel Afternoon all I have the below forumula = (SUMPRODUCT((B22 = 1)*(F22 = "EX"), 1))+(SUMPRODUCT((B22 = 1)*(F22 = "CURRENT"), 2))+(SUMPRODUCT((B22<> 1)*(F22 = "CURRENT"), B22))+(SUMPRODUCT((B22<> 1)*(F22 = "EX"), B22)) However if there is nothing in cell B22 I am B22 to simply put nothing in the cell Thank you in advance Excel Worksheet Discussions SUMPRODUCT (1) LOOKUP (1) = IF(B22 = "", "", IF(B22 = 1, IF(F22 = "EX", 1, IF(F22 = "CURRENT 2, 0)), IF(OR(F22 = "EX", F22 = "CURRENT"), B22, 0))) Hi Mark Try = IF(B22 = "", "", (SUMPRODUCT((B22 = 1)*(F22 = "EX"), 1)) +(SUMPRODUCT((B22 = 1)*(F22 = "CURRENT"), 2)) +(SUMPRODUCT((B22<> 1)*(F22 = "CURRENT"), B22)) +(SUMPRODUCT((B22<> 1)*(F22
La date se trouve dans la 10eme colonne de la feuille "test" Total = Application.WorksheetFunction.SumProduct((Month(Worksheets("test").Columns(10)) = 12)) l? le programme sort de la formule sans calcul et sans message d'erreur J'ai aussi essay? Total = [SumProduct((Month(Worksheets("test").Columns(10)) = 12))] et j'ai un message d'erreur 2015 Help La date se trouve dans la 10eme colonne de la feuille "test" Total = Application.WorksheetFunction.SumProduct((Month(Worksheets("test").Columns(10)) = 12)) l? le programme sort de la formule sans calcul et sans message d'erreur J'ai aussi essay? Total = [SumProduct((Month(Worksheets("test").Columns(10)) = 12))] et j'ai un message d'erreur 2015 Help End With With Rg 'Nombre de donn?es tenant compte que tu mois x = Evaluate("SumProduct((month(" & .Parent.Name & _ 'Nombre de donn?es tenant compte du mois et de l'ann?e F = Evaluate("SumProduct((month(" & .Parent.Name & "!" & _ .Address & ") = " & LeMois & ")*(year(" & _ .Parent.Name & "!" & .Address & ") = " & _ Lann?e & "))") End La date se trouve dans la 10eme colonne de la feuille "test" Total = Application.WorksheetFunction.SumProduct((Month(Worksheets("test").Columns(10)) = 12)) l? le programme sort de la formule sans calcul et sans message d'erreur J'ai aussi essay? Total = [SumProduct((Month(Worksheets("test").Columns(10)) = 12))] et j'ai un message d'erreur 2015 Help