Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 661353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:15:28+00:00 2026-05-13T23:15:28+00:00

I have an excel spreadsheet with two columns, one with a list of exercises

  • 0

I have an excel spreadsheet with two columns, one with a list of exercises (33 of them) and a number of reps for each. What I really want is a program that picks a random exercise, displays it with it’s number of reps, and has a button that says something like “Done?” When you click it, I want a timer that counts down 20 minutes, picks a new exercise and waits until you click done, and repeat.

I know this isn’t hard, but I am no programmer by any means. If anyone has a tutorial or another way of doing this (flash?), I would really appreciate it.

Thanks in advance,
Jay

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:15:28+00:00Added an answer on May 13, 2026 at 11:15 pm

    What you are asking for is not too difficult but not that easy to explain if you are not used to using userforms etc.

    Instead, I have come up with a more simplified solution that may suit your needs. For the purpose of this solution, I am assuming all your exercises are listed in column A and reps in column B. The following code will randomly select an exercise, highlight the chosen selection, and then in column C show a countdown from 20 mins to 0 at 1 minute intervals. As a visualisation:

            A              B            C
    1       Bench press    20 reps  
    2       Abs            10 reps      
    3       Lateral raise  15 reps      14 mins <-display of minutes remaining
    4       Bicep curl     8 reps
    5       Calf raise     10 reps
    6       etc
    

    To achieve this, first add the following code into a module (Alt + F11, then Insert > Module)

    Sub StartExercise()
    'Get number of exercises
    Dim NumberOfExercises As Integer
    NumberOfExercises = Range("A1").End(xlDown).Row - 1
    
    'Reset font to normal black and clear anything in column C
    Range("A1:B" & NumberOfExercises + 1).Font.Bold = False
    Range("A" & NumberOfExercises + 1 & ":" & "B" & NumberOfExercises + 1).Font.ColorIndex = 1
    Range("C1:C" & NumberOfExercises + 1).Clear
    
    'Select a random exercise
    Dim RandomExercise As Integer
    RandomExercise = Int(Rnd() * (NumberOfExercises - 1 + 1) + 1)
    
    'Highlight selected exercise and reps
    Range("A" & RandomExercise + 1 & ":" & "B" & RandomExercise + 1).Font.Bold = True
    Range("A" & RandomExercise + 1 & ":" & "B" & RandomExercise + 1).Font.ColorIndex = 3
    
    'Countdown from 20 minutes to 0
    SetCountDown RandomExercise
    
    End Sub
    
    Sub SetCountDown(TargetCellRow As Integer)
    
    Dim MinsRemaining As Integer
    Dim iMins As Integer
    MinsRemaining = 20
    
    For iMins = MinsRemaining To 0 Step -1
        Range("C" & TargetCellRow + 1).Value = iMins & " mins"
        Application.Wait (Now + TimeValue("0:01:00"))
    Next iMins
    
    End Sub
    

    Finally, on your spreadsheet you will need a way of starting the code.

    Select View > Toolbers > Forms and then from the menu click Button and draw it anywhere on your spreadsheet. In the Assign Macro dialog box you should see ‘StartExercise’ as an option. Select this option and click ok.

    Now when you click your button you should see an exercise and number of reps become highlighted in bold, red font and ’20 mins’ appear next to it. This will then countdown to 0 mins. If you then click the button you can start all over again with a random exercise.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an excel spreadsheet that has two columns. When I choose to save
I have an Excel spreadsheet containing a list of strings. Each string is made
I have an excel spreadsheet with two columns. The first column is a label
I have an excel spreadsheet with two rows. One is for name, and the
I have one Excel spreadsheet which has the following columns: Surname / First Name
I have an Excel spreadsheet with a few thousand entries in it. I want
I have an Excel spreadsheet provided as a report, when really its more of
I'm working with a spreadsheet with two columns, in which one of the columns
I have two excel spreadsheets, one contains data on various persons, while the other
I have an excel spreadsheet that has 2 columns. Something like this |ColA |

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.