Calculate cells if another cell equals a specific date

AnnyCav

New Member
Joined
May 15, 2024
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I know this should be an easy enough formula to find, but it is too hard to describe in a search(??) So I am posting it here with a visual so you have an idea of what I am talking about.

What I want to do is look at the date on the LIST and go to another sheet (Sheet2) and find that date on this other list in column E and then calculate the time in Column F if it is the same date.

Eg: The formula will look up Sheet 2, Column E and match it to the date for that list. If the date matches, I want it to ADD all the times in column F that matches that date in Column E. So the list for 3rd June is so far at 180 minutes.

Kind regards
Anny
 

Attachments

  • Dateandtimecalc.JPG
    Dateandtimecalc.JPG
    26.5 KB · Views: 11
  • Calctime.JPG
    Calctime.JPG
    13.8 KB · Views: 9

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
It sounds like you need a SUMIF? (Although I have actually used SUMIFS, because I think it makes more sense to put the sum_range argument first)

AB
1Total
23 Jun 202480
311 Jun 202455
Sheet1
Cell Formulas
RangeFormula
B2:B3B2=SUMIFS(Sheet2!C$2:C$9,Sheet2!B$2:B$9,A2)

ABC
1
23 Jun 202440
33 Jun 202420
43 Jun 202420
53 Jun 2024
611 Jun 202422
711 Jun 202433
820 Jun 2024180
920 Jun 202445
10
Sheet2
 
Upvote 1
Solution
It sounds like you need a SUMIF? (Although I have actually used SUMIFS, because I think it makes more sense to put the sum_range argument first)

AB
1Total
23 Jun 202480
311 Jun 202455
Sheet1
Cell Formulas
RangeFormula
B2:B3B2=SUMIFS(Sheet2!C$2:C$9,Sheet2!B$2:B$9,A2)

ABC
1
23 Jun 202440
33 Jun 202420
43 Jun 202420
53 Jun 2024
611 Jun 202422
711 Jun 202433
820 Jun 2024180
920 Jun 202445
10
Sheet2
YOU LEGEND! That worked a treat and I did not think of the "SUMIF". I'm disappointed in myself.
Thank you
Anny
 
Upvote 0

Forum statistics

Threads
1,224,832
Messages
6,181,234
Members
453,026
Latest member
cknader

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