Story of my first ever 200KM bike ride (plus an Excel dashboard with ride stats)

Share

Facebook
Twitter
LinkedIn

Ok people. Let me tell you that this post is almost not about Excel. It is about how one Excel blogger’s (yours truly) dream of long distance cycling came true. So sit back, grab your favorite drink and read between sips.

PS: if you just want to see the dashboard, click here.

So what is this all about?

Last Sunday (27th July) & Monday (28th), I finished my first ever 200KM bicycle ride. I rode for a little more than 12 hours, burned 5,179 calories & rode 206 kilometers.

It is definitely one of the most memorable, tiresome & uplifting experiences in my life. So naturally, I want to share the story with you.

Thats me at the end of 118 km ride on Day 1 - near Annavaram village entrance

Where it all began

Around late last year, I read a book called Free Country by George Mahood. It is a story of two young British lads cycling from Lands End to John O’ Groats (from one end of Britain to another) without spending a penny of their own money. While reading the book, I kept thinking, ‘I should do something mildly similar one day’.

But I did not do much cycling in the next several months. Until…,

I read truly inspiring story of how adc cycled from Manali to Leh (500 km). The story is special because the terrain between Manali & Leh is filled with high altitude passes, dangerous mountain roads, harsh weather, almost no habitat & breath taking scenery.

That travelogue motivated me enough to get out my dusty cycle from garage and start riding it.

Soon I was riding 20 KM per day. I started doing a few long rides (~40km) in the weekends to build strength.

Once I felt confident, I discussed my plans for a longer ride with Jo (my wife). She was a little apprehensive as I have never done something like that and long rides could mean increased chance for injury or accident.

Finally we agreed that doing a round trip to Annavaram (a small temple town 118 km away from our home) would be reasonable. The roads to Annavaram are in excellent condition. There is ample help available all the way (plenty of food stops, villages & towns along the way). Plus in case of fatigue or injury, I could easily hitch a ride back home.

I fixed on the dates 27 & 28th of July for ride. Weather app on Jo’s iPad said there is 70% chance of rain. I kept my plans fluid & wanted to ride only if there is no rain in the morning when I started.

Route Map

Here is the route I took (link).

Day 1 – Vizag to Annavaram (118 km, 7:34 hrs riding)

I woke up at 4:45 AM and unlocked the doors immediately to see if there is any rain. No rain and the skies looked ok. I got ready, had a glass of milk & woke up Jo. She gave me a farewell hug and I left the house at 5:24.

The initial 20 km was a breeze to ride. The route so far is familiar as I bicycle on it almost everyday.

After riding 25  km, I took a short water break.

State highway 38 looked pleasant & fresh in the morning

I barely rode for another 4 km and stopped again, this time to enjoy the view from top of a flyover. The rolling hills, green rice fields, railway track, chirping birds & fresh morning air provided perfect setting for a few pictures.

Rolling hills, green rice feilds, train track & beautiful sky, the route had it all

My ride - Schwinn Sporterra is all ready

Soon I left the state highway & joined national highway 45 (and 16 too). This is a 4 lane highway with wide shoulder. Unlike in US (and many other western countries), in India bicycles, pedestrians and many other forms of moving objects are allowed on highways. The best part of riding on national highway is that the gradients are better. Next 15 km felt like one long flat ride.

I crossed Anakapalli (a small town on the outskirts of Vizag) and stopped for breakfast at 41 KM mark. 1/3rd distance completed!

After feasting on Idly, Dosa & a tea (traditional breakfast in south India), I resumed the journey at 8:10 AM.

Still no rains. So I rode on.

At around 50 KM mark, stopped for a quick drink of water & electral (oral re-hydration solution made with essential salts & minerals).

At a water stop near 50km mark. The national highway 45 looked flat & inviting.

Around 60 km mark I started feeling a little thirsty and wanted to stop for some tea. Soon (after 6km) found a road side tea stall. My original plan is to ride until 80k mark and stop for lunch.

But seeing that I finished 66km by 9:56AM, I have decided to ride until Annavaram (my destination for the day) before lunch.

After the tea stop, I rode for another hour to reach Nakkapalli (a small village on the highway). There I saw a fruit juice stall. Immediately stopped to have a full glass of banana juice. The shop owner told me that Annavaram is another 36 km from there. It  started drizzling now. I am a little worried that it may rain heavily.

But my fears were unfounded. Soon the skies cleared and I was on a climb. After riding just another 10 km, I had to stop again to quench my thirst and relax a bit. As I was sitting by the road side, a mini truck stopped next to me. the truck driver was curious to know where I am heading & my story. After chatting for a while they left me.

A selfie at 90km mark. Happy with the progress made so far

At 95KM mark, I stopped again for a quick snack (snickers bar). Soon 2 kids on a cycle approached me. They are Siva & Siva Ganesh. Siva Ganesh (eldest one, studying 9th class) wanted to test ride my cycle. He was curious to know how the gears work. He took the cycle for a short spin and returned. They spend another 5 minutes with me asking several questions.

Picture taken by the Mr. Siva. You can see their cyle next to mine.

Once again I found myself on a steady climb. And then there are strong head winds. My speeds dropped to the range of 10-15kmph. After a lot of pedaling & sweat, I crossed Tuni at 12:30PM.

Selfie @ 100km mark

Selfie @ 100km Mark

It took me another 30 minutes & 6 km of biking to reach a small temple village called Lova Gudi. By now my water bottles are emptied. So I stopped here to purchase a bottle of water. From here Annavaram (my destination) is 15 km. Normally I would have finished this distance in 40-50 mins. But after riding for 6 hrs, I find myself tired & sweaty. Plus the winds have picked up again. And to top it, almost all of this stretch is a climb.

I took a deep breath and resumed cycling.

The wind & gradient made my task all the more difficult. But I pressed on.

See how harsh the wind is. The coconut leaves are all bent.

Heavy head-winds made my climb even more difficult.

About 5 km away from Annavaram (around 110 km mark), someone in a car was waiting for me. As soon as he saw me, he waved his hands and stopped me. Turns out he is a biker from Vizag. He got curious upon seeing the site of a lone biker and wanted to know about me. We chatted for a while and exchanged phone numbers.

Finally at 2:50 PM, I reached Annavaram village gate. Yay!. It took me more than 9 hours & 30 minutes to reach here. Out of this riding time is 7:30 (it might have been slightly less than this as my tracking app – MapMyRide was not set to autopause for the first 65 km).

Finally, at Annavaram village gate after 9:30 hours of riding.

Thats me at the end of 118 km ride on Day 1 - near Annavaram village entrance

Day 1 – At Annavaram

I went to the first hotel I can find and ordered lunch. While waiting for lunch, I called Jo & my mom to tell that I reached safely.

After lunch I asked them if they have any rooms to stay. They have vacancies and I immediately took a room. I quickly showered and took a nap. But I could hardly sleep as my thighs and wrists were aching. It looked like I could not ride back and may have to take a bus to my home.

Originally I planned to visit the famous Annavaram temple in the evening. But my legs & back felt too sore to do anything. So instead I went for a short walk to explore the village in the evening.

Later I ordered dinner and watched some football on TV.

Around this time, I have decided to skip the return ride & take a bus instead. I told the same to Jo when I called her to say good night.

I kept waking up in the night due to one pain or other. I turned off the alarm at 6:15 AM and went back to sleep again.

Finally when I woke up at 8:00 I surprisingly felt rejuvenated and ready.

At that moment I decided to ride back home. My plan is to ride as far as I can and then take a bus.

Day 2 – Annavaram to Anakapalli (88 km, 4:30 hrs riding)

After a heavy breakfast & some coffee, I checked out of the hotel and started my return journey at 8:43 AM.

Since I have climbed & gained elevation yesterday, the first 40 km ride from Annavaram was almost downhill mixed with few flats. So I could maintain speeds between 20-30 kmph. At one point I even reached 43.5 kmph, although barely for a minute.

I did not stop anywhere for first 25 km. But then the views by the road are too breathtaking to ignore. So I stopped for a few pictures at 25k mark & again at 27k mark.

Selfie after 25km ride on Day 2

At the later stop, I found several open billed storks in the rice fields. It was a pleasure watching them forage for food & fly elegantly.

Open billed storks, flying away

Pretty soon I reached the toll plaza. And yay!, no toll for me. Another reason to bike.

No toll for my bike, yay!

Had to stop again at 10:55AM to appreciate the beautiful green & blue views. Took a few pictures and resumed ride. Reached 50 KM by now.

Beautiful skies, green & blue views are inviting. So I took a break

At this point, I changed my plan to ride for 83 km. This will make the total distance as 200km.

By 11:30, I reached Elamanchali (a small village 20 km away from Anakapalli, my destination for the day). By now it started raining quite a bit. My bike accumulated quite a bit of dirt & soot.

At 11:30 on day 2, the rains have started and my bike is all wet & dirty

By 1:00 PM, I reached outskirts of Anakapalli  and spotted a nice road side restaurant. Immediate stopped there for lunch. As soon as I stopped it started raining heavily. So I had a leisurely lunch spending close to an hour there. Finally the skies cleared at 2 PM and I resumed my ride.

When I was 3 km outside Anakapalli, a gentleman on motorcycle slowed down and rode with me for a few minutes. He asked me several questions about where I am riding, what I do, why I am riding etc. He even invited me to have lunch with him. But I had to decline as I already finished my lunch.

Finally, at 3:06 PM, I finished 88km and stopped my bicycle ride.

An empty mini truck going towards Sabbavaram (half way between where I stopped & my home) offered me a ride.

From Sabbavaram I took an Auto (a 3 wheeled taxi, also called as tuk-tuk) to my home.

And that marked the end of my first ever 200 km bike ride.

My impressions:

Growing up, I used to be the least fit kid in my school. I sucked at all sorts of sports. I got kicked out of football, hockey, badminton, cricket and all other sporting teams in school.

So naturally I assumed that I am not good for athletic activities.

Once I completed my studies and got a job, I realized the importance of living an active life. So I started jogging, cycling and playing sports.

Ever since I quit my job to start my own business, I became even more fitness conscious. Every year (since 2010), I have challenged myself to break personal barriers. When I first considered biking, I could not imaging anything beyond 50km per day. But with practice and motivation, I could finish this ride.

Few thoughts:

  • Do a few practice rides: I have been riding 20-30km per day for almost a month before taking up this challenge.
  • We underestimate our body: We can take on big challenges, endure pain & perform at our peak so much more than we estimate.
  • Drink & Eat well: I call my diet really healthy. We eat home cooked food 90% of the time. Most of our diet is veggies, fruits, milk, nuts, rice & wheat. Almost half of the vegetables & fruits we eat are grown in our back yard. We rarely drink and eat meat once a week.
  • Enjoy the ride: Stop and enjoy the scenery. Talk to fellow travelers and take ample breaks. Any distance can be covered easily.

Thanks to

  • Jo: for supporting & encouraging me.
  • My mom: for not freaking out when she learned about the ride.
  • Free Country & ADC: for the motivation
  • You: for supporting Chandoo.org so that I can chase my passions.

Now for an Excel Dashboard visualizing the ride

Soon after I got back, I started thinking about analyzing all the ride data. I did what I do best. I created an Excel dashboard to tell the 200km ride story.

Here is a snap shot of the dashboard (click to expand).

200km bike ride - visualized in an Excel dashboard

Click here to download the Excel Workbook.

It is unlocked. So go ahead and examine the file. Break it apart to understand the logic & formulas. Learn something new & be awesome.

How is this dashboard made?

Here I am going provide only the highlights. Please visit Excel Dashboards page for fantastic tutorials & explanations on how to make dashboards.

  • Tables: for structuring ride data. All the ride data came from MapMyRide. I used Doogal.co.uk to get elevation profile of the route.
  • Column & line charts: for the splits, speed & elevation.
  • Form controls: to make the charts dynamic & to control the Ride pics slideshow.
  • Picture links: to show one of the many ride pictures thru scroll bar form control.
  • Ample dose of formulas: Mainly INDEX, MATCH, SUMIFS & COUNTIFS.

More personal stories

If you are in the mood to know Chandoo.org & me a little more, check out these:

See you again with more awesome Excel stuff.

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

27 Responses to “Sum of Values Between 2 Dates [Excel Formulas]”

  1. dexter says:

    I would apply a filter and use function subtotal, with option 9. This way you can see multiple views based on the filter.

  2. Michael Azer says:

    hey Chandoo, the solutions you proposed are very efficient, but if I wanted to be fancy I would do it this way .. the references are as your example workbook.
    =SUM(INDIRECT("C"&(MATCH(F5,B5:B95)+4)):INDIRECT("C"&(MATCH(F6,B5:B95)+4)))

  3. Luke M says:

    I like things simple:
    =SUMIF(B5:B95,">="&F5,C5:C95)-SUMIF(B5:B95,">"&F6,C5:C95)

  4. Matt S says:

    use something like: =SUM(OFFSET(B1,0,0,DATEDIF(A1,D1,"d")))
    and have D1 be the date that I want to sum to.

  5. Tom J says:

    In Excel 2003 (and earlier) I'd use an array formula to calculate either with nested if statements (as shown here) or with AND.

    {=SUM(IF(B5:B95>F5,IF(B5:B95<F6,C5:C95,0),0))}

    Note that I truly made this for BETWEEN the dates, not including the dates

  6. Andrew says:

    I turned the data set into a table named Dailies.
    I named the two limits StartDate and EndDate.

    And used an array formula:

    {=SUM((Dailies[Date]>=StartDate)*(Dailies[Date]<=EndDate)*Dailies[Sales])}

  7. Frank Linssen says:

    If I would still be using the old Excel I would do it as follows:

    SUMIF($B$5:$B$95,"<="&H6,$C$5:$C$95)-SUMIF($B$5:$B$95,"<"&H5,$C$5:$C$95)

    Works as simple as it is.

    Regards

  8. ikkeman says:

    =sum(index(c:c,match(startdate,c:c,1)+1):index(c:c,match(enddate,c:c,1))

  9. ikkeman says:

    =sum(index(c:c,match(startdate,b:b,1)+1):index(c:c,match(enddate,b:b,1))

  10. ram says:

    Great examples and thanks to Chandoo. You have simplified my work.

  11. Rony says:

    Hi! great tips I have found in your page, have you seen this
    http://runakay.blogspot.com/2011/10/searching-in-multiple-excel-tabs.html

  12. [...] I'm not sure I understand your question fully, but have a look at this: Sum of Values Between 2 Dates [Excel Formulas] | Chandoo.org - Learn Microsoft Excel Online [...]

  13. Amanda says:

    Thank you! Thank you! Thank you!

  14. abdalurhman says:

    =SUMIF(A2:A11;">="&B13;B2:B11)-SUMIF(A2:A11;"<"&A11;B2:B11)

  15. Eliza says:

    awesome... thank yoo Chandoo!

  16. dockhem says:

    which is most efficient and fast, if all are efficient ?

  17. jmassiah says:

    Thank you for this formula, I've just spent ages trying to find something to work on my data, I knew it would be possible! Don't care if others think there are easier/other ways to do it, you explained it so I understood it and could apply it to what I was doing so I'm happy!

  18. Nagaraju says:

    The above said example is awesome for calculating values between dates,

    can you pls let know how to calculate sale values if we have 10 sales boys for
    ex: 1,rama
    2,krishna
    3,ashwin
    4,naga
    5,suresh

    how much rama sale value between 1/jan/2015 to 10/jun/15
    how much krishna sale value between 10/jan/2015 to 15/july/2015
    i think you understood can you pls let me know the formula for how to calculate the sale between diffrent sale man sale value from master data file

    Thanks,
    Nagaraju

  19. Viv says:

    Hi

    I have a list of people's names in column A, I have a list of dates in column B which records the dates they have been off sick, in column C I have either 1 if it is a full sick day or 0.5 if it is a half day.

    What I would like to do is to add up the number of dates a specific person has been off within two dates.

    For example, I want to look at my list of names and to find Joe Bloggs (column A), then add up all his sick days (column C). The start date will be in cell E1 and the end date will be in F1.

    If this possible using SUMIFS?

    List of names are in range A2:A100

    List of dates in B2:B100

    List of sick days (either 0.5 or 1 in C2:C100

    The start date is in cell E2

    The end date is in cell F2

    Your help would be greatly appreciated.

    • Loknathan says:

      Yes, with the help of SUMIFS you can have the solution.
      Note: you need have an extra col. D2 where you will input Name of the person.
      =SUMIFS(C2:C100,A2:A100,D2,C2:C100,">="&E2,C2:C100,"<"&F2)

      Col. A Col. B Col. C Col.D Col. E Col. F
      Name Date Sales
      ABC 28-Jun-11 1 MNO 28-Jun-11 25-Sep-11
      XYZ 29-Jun-11 0.5
      MNO 30-Jun-11 1
      PQR 1-Jul-11 1

      • Loknathan says:

        Typo ERROR / Correction in formula:
        Yes, with the help of SUMIFS you can have the solution.
        Note: you need have an extra col. D2 where you will input Name of the person.
        =SUMIFS(C2:C100,A2:A100,D2,B2:B100,">="&E2,B2:B100,"<"&F2)

  20. Viv says:

    Hi

    I have a list of people's names in column A, I have a list of dates in column B which records the dates they have been off sick, in column C I have either 1 if it is a full sick day or 0.5 if it is a half day.

    What I would like to do is to add up the number of dates a specific person has been off within two dates.

    For example, I want to look at my list of names and to find Joe Bloggs (column A), then add up all his sick days (column C). The start date will be in cell E1 and the end date will be in F1.

    If this possible using SUMIFS?

    List of names are in range A2:A100

    List of dates in B2:B100

    List of sick days (either 0.5 or 1 in C2:C100

    The start date is in cell E2

    The end date is in cell F2

    Your help would be greatly appreciated.

    Viv

  21. AC says:

    Thanks for this - it solved the problem that I was having. However can someone please explain to me why the "" needs to be around >= and <= as well as why we need to add & in order for the formula to work? Thanks in advance!

  22. Ufoo says:

    This formula works perfectly as well. Any ideas?: =SUM(INDEX(C5:C95,MATCH(H5,B5:B95,1)):INDEX(C5:C95,MATCH(H6,B5:B95,1)))

  23. Ufoo says:

    ikkeman had posted the same thing.

  24. murray says:

    I am trying to sum total a range of cells between date ranges ie column n has $ amounts column d has the transaction dates ie 1/3/2015 or 25/3/2015 or 25/4/2015 column b has the text saying drp or distribution - reinv

    In another cell I am trying to sum or total (in column n) with the value of a range of different dates (column d) that contain different text (column b) ie cell n48 is 50, n65 is 85, n165 is 36

    with the dates ie cell d48 is 1/3/2015, d65 is 25/3/2015 and d165 is 25/4/2015

    with different text that says drp or distribution - reinv ie cell b48 is drp, b65 is distribution - reinv, b165 is drp

    If I wanted to sum the amounts between 1/3/2015 to 31/3/2015 with drp then the total would be 50. Also if I wanted to sum the amounts between 1/4/2015 to 30/4/2015 with drp the sum total would be 36 If I wanted to sum the amounts between 1/3/2015 to 31/3/2015 with drp and distribution - reinv the sum would be 115

    What would the formula be for these different questions

    hope you can help, it has been driving me nuts and cant work it out

Leave a Reply