Formula to return time and date based on distance condition across multiple worksheets

F0r3stH1k3r

New Member
Joined
Jan 1, 2025
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a multi-sheet workbook for tracking my runs. Each month has its own sheet with identical columns which track Miles and Time, among other things.

I'd like to track my Personal Record (PR) time [cell H5] and the date that time was achieved [cell H6]. I've done this with a MIN formula in H5 and an Index/Match in H6. What I can't figure out is how to return Time and Date only on condition that Miles are >=3.11.

I'd also like this formula to take all worksheets into consideration. If I get a PR in January, I'd like that time and date to show in later months until it has been surpassed.
 

Attachments

  • Results.jpg
    Results.jpg
    81.4 KB · Views: 6

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I have a multi-sheet workbook for tracking my runs. Each month has its own sheet with identical columns which track Miles and Time, among other things.

I'd like to track my Personal Record (PR) time [cell H5] and the date that time was achieved [cell H6]. I've done this with a MIN formula in H5 and an Index/Match in H6. What I can't figure out is how to return Time and Date only on condition that Miles are >=3.11.

I'd also like this formula to take all worksheets into consideration. If I get a PR in January, I'd like that time and date to show in later months until it has been surpassed.
Welcome to Mr Excel.

As is often the case, it would be easier if the raw run data is contained in one sheet in a table and the summary sheet accesses this information as appropriate.
The adoption of this approach will make any analysis much easier.

I have mocked something up to demonstrate.

A means has to be developed to change the month (actually stored as the first day in the month) on the Analysis sheet.

Formula can be developed to give you the results that you want on the Analysis sheet.

Let me know if you want to proceed in this way.

Book1
ABCDEFGHIJK
1DateDayMilesTimePace (mph)Location *ShoesResultsPlaceGenderAge
225/01/2025Saturday600:48:007.46
326/01/2025Sunday600:51:006.95
427/01/2025Monday600:46:007.69
528/01/2025Tuesday600:37:009.63
629/01/2025Wednesday1902:01:009.42
730/01/2025Thursday1401:26:009.66
831/01/2025Friday1301:40:007.74
926/02/2025Wednesday1602:00:007.99
1027/02/2025Thursday500:30:009.97
1128/02/2025Friday1702:00:008.46
1201/03/2025Saturday1201:29:008.01
1302/03/2025Sunday1702:27:006.91
Run Data


Book1
ABCDEFGHIJKLM
1
2January 2025
3
4PROGRESSRESULTSPRSHOES
5Goal19:18Days Left-# 5k+ daysGhost GTX
6Month to Date ---Req'd/day-# daysLaunch GTS
7Left to go19:18Avg/day-Vionic
8
9DateDayMilesTimePace (mph)Location *ShoesResultsPlaceGenderAge
1025/01/2025Saturday600:48:007.46
1126/01/2025Sunday600:51:006.95
1227/01/2025Monday600:46:007.69
1328/01/2025Tuesday600:37:009.63
1429/01/2025Wednesday1902:01:009.42
1530/01/2025Thursday1401:26:009.66
1631/01/2025Friday1301:40:007.74
17
Analysis
Cell Formulas
RangeFormula
B10:L16B10=FILTER(tblRunData,(tblRunData[Date]>=Analysis!B2)*(tblRunData[Date]<=EOMONTH(Analysis!B2,0)),"")
Dynamic array formulas.
 
Upvote 0
For year-to-date status: The workbook has a sheet titled Overall, which both pulls and provides data as a yearly summary. Having the year-to-date PR and Date it was attained on this sheet will work.

For month-by-month status: I can limit cells H5 and H6 to relate only to that month, though I would still need to figure out how to count Time and Date only if Distance is >=3.11

Regarding the date: I am certainly open to changing the current formulas as it means I will need to learn how FILTER works (learning is what I'm here for after all).

Here is how the date is currently determined: The current year is entered into cell C3 on the Overall sheet. On the month sheets, B2:K2 has ="month "&Overall!C3 and cell B10 has =DATE(Overall!C3,#,1) where # equals the number of the month. Cell B11 has =B10+1, and that formula is copied down to the last day of the month. The cells containing the date are then formatted as mmm - dd.
 
Upvote 0

Forum statistics

Threads
1,225,521
Messages
6,185,461
Members
453,294
Latest member
mpfred6

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