Formula Help

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,838
Office Version
  1. 2010
Platform
  1. Windows
Here is a sample of my data, "Monday" will appear more than once in Column B but there will only be one Monday with "3" in Column A... How would I return the "01:05:03" to G2 please?

Excel Workbook
ABCDEFG
1HelperDayDuratonHelperDayDuration
29Saturday00:57:473Monday
38Sunday00:58:42
43Monday01:05:03
59Tuesday00:56:28
Sheet1
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi How_Do_I

Does this do what you want (in Cell G2)?

Code:
=SUMPRODUCT(--($A$2:$A$5=$E$2),--($B$2:$B$5=$F$2),$C$2:$C$5)

Cheers

pvr928
 
Upvote 0
It certainly does thank you pvr928...! Thanks again.
 
Upvote 0
Hi,

A simple SUMIFS will work also:


Book1
ABCDEFG
1HelperDayDuratonHelperDayDuration
29Saturday0:57:473Monday1:05:03
38Sunday0:58:42
43Monday1:05:03
59Tuesday0:56:28
Sheet17
Cell Formulas
RangeFormula
G2=SUMIFS(C2:C5,A2:A5,E2,B2:B5,F2)
 
Upvote 0
My next question is, how would I find the row that "Monday" in Column B and "3" in column A appear in please?
 
Upvote 0
No jtakw, the actual row which I think I've got. I changed the OP to add Named Ranges:

=SUMPRODUCT(--(Helper=E2),--(Day=F2),ROW(Duraton))
 
Upvote 0
Try (entered as an array formula (SHIFT + CTRL + ENTER)) in cell I2:

Code:
=SMALL(IF(($E$2=$A$2:$A$5)*($F$2=$B$2:$B$5),ROW($A$2:$A$5),""),1)

Cheers

pvr928
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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