Spreadsheet to keep track of my daily walking time

Burrgogi

Active Member
Joined
Nov 3, 2005
Messages
340
Office Version
  1. 2010
Platform
  1. Windows
Hello everyone! I've gained some weight recently and so I've started a daily walking routine that will hopefully shed some of the excess weight. I've got 3 different walking routes that I like to take, A, B & C.
A= 30 min
B= 38 min
C= 45 min
As you can see from my spreadsheet, I've put the corresponding letter to each day of the month. I don't know how to tally up the total number of minutes that correspond to those letters.

Secondly, there are days when I put in 2 walking sessions per day. (e.g. A + A = 60 min). I don't know how to account for that in my setup.

There are also days when I don't do any walking but rather bicycling and they don't fit into any pattern (routes A, B or C). So I guess I need some flexibility in the worksheet to manually type in the number of minutes (e.g. 1 hr 10 min). Any ideas on all this?
 

Attachments

  • Daily walk tracker.png
    Daily walk tracker.png
    25.3 KB · Views: 44

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I hope you don't mind but I mocked something up. I added "Time" Lines next to the letter ones. Linked using "IF" formulas to link A to 30 B to 38 and C to 45. Then linked cells together that would allow it to auto calculate each month from the numbers and also a Total for the year at the end linking the linked cells to one another.
Cell Formulas
RangeFormula
C2:C32,Y2:Y32,W2:W32,U2:U32,S2:S32,Q2:Q32,O2:O32,M2:M32,K2:K32,I2:I32,G2:G32,E2:E32C2=IF(B2="A",30,IF(B2="B",38,IF(B2="C",45,"")))
C33,Y33,W33,U33,S33,Q33,O33,M33,K33,I33,G33,E33C33=SUM(C2:C32)
Y34Y34=SUM(C33,E33,G33,I33,K33,M33,O33,Q33,S33,U33,W33,Y33)
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Another option
+Fluff 1.xlsm
AB
1
21A
32A
43A
54A
65A
76
87B
98A
109A
1110B
1211A
1312
1413A
1514C
1615A
171660
1817A
1918
2019A
2120A
222145
2322A
2423
2524A
2625A
2726
2827A
2928A
3029A
3130A
3231
33821
Master
Cell Formulas
RangeFormula
A2:A32A2=SEQUENCE(31)
B33B33=SUMPRODUCT(((B2:B32="A")*30)+((B2:B32="B")*38)+((B2:B32="C")*40))+SUM(B2:B32)
Dynamic array formulas.
 
Upvote 0
Using the setup prodvided byy PuntingJawa, you can replace the formula in C2 by:

=SUMPRODUCT(LEN(D2)-LEN(SUBSTITUTE(D2;"A";"")))*30+SUMPRODUCT(LEN(D2)-LEN(SUBSTITUTE(D2;"B";"")))*38+SUMPRODUCT(LEN(D2)-LEN(SUBSTITUTE(D2;"C";"")))*45

In that case you can type AAB in one cell and it will count 30+30+38=98.


Edited to add:
Depending on your Excel settings you might have to change the semicolons into commas!
=SUMPRODUCT(LEN(D2)-LEN(SUBSTITUTE(D2,"A","")))*30+SUMPRODUCT(LEN(D2)-LEN(SUBSTITUTE(D2,"B","")))*38+SUMPRODUCT(LEN(D2)-LEN(SUBSTITUTE(D2,"C","")))*45
 
Upvote 0
Using what @petertenthije did it looks like this
Tracking RouteA to RouteC.xlsx
ABCDEFG
1DayJanTimeFebTimeMarTime
21A B C11300
32A B6800
43A C7500
54B C8300
65ABC11300
76AB6800
87AC7500
98BC8300
109000
1110000
1211000
1312000
1413000
1514000
1615000
1716000
1817000
1918000
2019000
2120000
2221000
2322000
2423000
2524000
2625000
2726000
2827000
2928000
3029000
3130000
3231000
33Totals67800
34
35RoutesFormat
36A-30 MinutesBoth ABC and A B C will work
37B-38 MinutesUse all capital letters
38C-45 MinutesLowercase will bring 0
Sheet1
Cell Formulas
RangeFormula
C2:C32,G2:G32,E2:E32C2=SUMPRODUCT(LEN(B2)-LEN(SUBSTITUTE(B2,"A","")))*30+SUMPRODUCT(LEN(B2)-LEN(SUBSTITUTE(B2,"B","")))*38+SUMPRODUCT(LEN(B2)-LEN(SUBSTITUTE(B2,"C","")))*45
C33,G33,E33C33=SUM(C2:C32)

Unlike with mine that can use both A a B b C c this one needs all capital letters. However I did miss you saying that you do multiple routes sometimes and mine didn't allow that. I used the edited version they posted with "," instead of ";" and tested. The example above shows it works with both spaces and together.
 
Upvote 0
Same idea but without helper columns
Excel Formula:
=SUMPRODUCT(((LEN(B2:B32)-LEN(SUBSTITUTE(B2:B32,"A","")))*30)+((LEN(B2:B32)-LEN(SUBSTITUTE(B2:B32,"B","")))*38)+((LEN(B2:B32)-LEN(SUBSTITUTE(B2:B32,"C","")))*40))+SUM(B2:B32)
 
Upvote 0
Slightly shorter depending on version
Excel Formula:
=SUM(FILTERXML("<k>"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXTJOIN(,,B2:B32),"A","<x>30</x>"),"B","<x>38</x>"),"C","<x>40</x>")&"</k>","//x"))+SUM(B2:B32)
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,845
Members
449,051
Latest member
excelquestion515

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