EXCEL_GM2e942pbm

Move or Copy Files in Seconds with This Free Excel Macro Template

Sorting through cluttered folders to find, copy, or relocate specific files is one of the most tedious parts of digital admin work. Whether you are archiving monthly invoices, organizing project deliverables, or pulling specific file types out of a crowded downloads directory, doing it manually takes time and invites human error.

With a custom Excel VBA macro template, you can turn a ten-minute manual chore into a single click. Designed with a clean, user-friendly interface right inside your spreadsheet, this tool handles bulk file transfers automatically based on the exact rules you define.

How the Excel File Manager Works

You do not need to know how to write VBA code to use the template. The worksheet acts as a simple control panel broken down into five straightforward steps:

  1. Folder to look through: Instead of typing out long, error-prone file paths, click the Select Folder button next to the first input box to browse your computer and choose your source directory.
  2. Folder to move/copy files into: Click the second Select Folder button to pick your destination folder where the matching files should land.
  3. Criteria: Enter your filter term in the criteria box. Depending on your workflow, this can be a partial file name (such as “2026_Invoice” or “Q3_Report”) or a specific file extension (like “.pdf” or “.xlsx”) so the macro knows exactly which files to target and which ones to ignore.
  4. Move or Copy?: Use the yellow selection cell at the bottom left to choose your action. Selecting Move transfers the files to the new folder and cleans out the original directory, while switching it to Copy leaves your original files untouched and creates duplicates in the destination folder.
  5. Run Macro: Once your paths, criteria, and action are set, press the Run Macro button in the center of the sheet to execute the transfer immediately.

Why Use an Excel Template for File Organization?

Building this workflow inside Excel gives you a repeatable, error-free system. Once your folder paths and criteria are typed into the cells, you can save the workbook and reuse the exact same setup every week or month without re-selecting your directories. If you manage recurring reporting cycles, batch data exports, or shared team drives, this lightweight template keeps your folders organized so you can focus on actual analysis rather than file housekeeping.

Download the free Copy Files Macro Here

EXCEL_tx3k5s2tXc

Free Snowball Debt Payoff Planner Template in Excel

If you are looking for a simple way to organize your debt repayment plan, the Snowball Debt Payoff Planner can help. This free Excel template is designed to track multiple debts, calculate payoff timelines, and show how your monthly budget can be applied using the snowball repayment method.

The template is especially useful if you want a clear view of when each debt will be paid off and how changes to your monthly payment budget can affect your overall debt-free date.

You can download the free Snowball Debt Payoff Planner Template for Excel right here.

Check out the YouTube video below for a detailed walkthrough of how the template works.

What Is the Snowball Debt Repayment Strategy?

The snowball debt repayment strategy focuses on paying off debts from the smallest balance to the largest. You continue making the minimum payment on every debt, then apply any remaining money in your monthly debt repayment budget toward the smallest balance first.

Once the smallest debt is paid off, the amount that was going toward that debt is redirected to the next smallest balance. Over time, this creates momentum as more payments are combined and applied to fewer remaining debts.

The goal is to reduce the number of outstanding debts quickly, build confidence, and eventually direct your full repayment budget toward the largest remaining balance.

How the Snowball Debt Payoff Planner Works

The planner starts with a few key inputs. After entering your monthly debt repayment budget and the month you want the repayment schedule to begin, you can add the details for each debt you want to include in your payoff plan.

For each debt, enter the name, starting balance, annual percentage rate, and minimum monthly payment. The template then calculates the payoff schedule, updates the related charts, and estimates when each debt will be paid off.

Snowball debt payoff planner in Excel.

Setting Up the Template

Begin by entering the first month of your repayment schedule. In most cases, this will be the current month, but you can choose a future month if you want to plan ahead.

Next, fill in the details for each debt you want to include. The template allows you to rename the default entries, so you can replace generic labels such as “Bill 1” or “Bill 2” with the names of your actual debts.

Debts listed in the snowball debt repayment planner in Excel.

For each item, add the starting balance, APR, and minimum monthly payment. These inputs give the planner the information it needs to calculate a realistic repayment schedule.

Automatic Calculations and Built-In Protection

Some fields in the workbook are shaded grey because they contain formulas. These fields update automatically based on the values you enter, so you do not need to calculate payoff dates or balances manually.

The file is also password-protected to help prevent accidental changes to formulas. This makes it easier to use the template confidently without overwriting the calculations that power the schedule and charts.

Reviewing the Payoff Schedule

Once the debt details are entered, the charts and payoff schedules update automatically. You can see when each debt is expected to be paid off and when you are projected to become completely debt-free.

Testing What-If Scenarios

You can also use the planner to test different monthly repayment budgets. Increasing or decreasing the monthly budget will update the payoff schedule, helping you see how extra payments may shorten your timeline.

The workbook includes tables that show how much of your monthly payment is allocated to each debt. These tables also show the projected ending balance by month, giving you a more detailed view of how your repayment plan changes over time.

Including or Excluding Debts

The template can track up to 10 bills or debts. If you do not need all 10 entries, you can remove an item from the plan by clearing its include checkbox.

After unchecking an item, delete the values from the white input cells for that debt. This step is important because it ensures that the minimum payment from an excluded item does not continue affecting the repayment calculations.

After the unused debt is cleared, the repayment schedule and chart update automatically. You will see the revised balances, payment allocations, and expected payoff dates based only on the debts you have chosen to include.

Accounts receivable data in Excel.

Creating an Accounts Receivable Customer Dashboard for Excel

An accounts receivable dashboard can be an effective way to track customers and quickly review how risky each is. I’m going to create a dashboard for AR customers that makes it easy to cycle through customers, view their balances, outstanding invoices, aging schedule, and a risk score that takes into account multiple factors.

For this example, I’m going to use the following data set, which is a sample of what the data might look like if you download it from an accounting software. You can download the practice file here.

If you want the fully completed template, you can download the AR dashboard file here.

Accounts receivable data in Excel.

I have converted this into a table to ensure that it’s easy to reference the fields, without having to rely on remembering column letters.

Setting up the data and creating additional fields

If your data doesn’t already include an aging classification, it’s important to have one to ensure that invoices are being correctly put into the correct categories (current, 30, 60, 90+, etc).

In my template, I’ve created a lookup table that is used to correctly put each invoice in the correct category:

Accounts receivable aging table in excel.

Using this template, I can ensure that the days overdue are always correct and updated based on the current day, with the following formula in column R (Aging Bucket):

=IF(P2=”Paid”,0,MAX(0,TODAY()-H2))

The TODAY function is used to calculate the difference between the due date and today’s date, to arrive at the correct number of days overdue.

I’m also going to create additional fields for my dashboard:

Month-Year: this turns the invoice date into a month and year text format. This is to help ensure that running totals are calculated correctly. The formula for this field is as follows:

=TEXT([@[Invoice Date]],”MMM-YYY”)

Over 90 Balance: this pulls in the balance of the invoice, but only if it is over 90 days overdue. It’s a simple IF statement as follows:

=IF([@[Days Overdue]]>90,[@[Open Balance]],0)

Weighted Average Over 90: this field is used for scoring purposes and will multiply the over 90 balance based on how many more days overdue than 90 it is. While this won’t be the true value outstanding, it helps to emphasize a customer with receivables that are significantly overdue. The formula for this is as follows:

=([@[Days Overdue]]/90)*[@[Over 90 Balance]]

Over 90 Invoice: this field is simply to count whether an invoice is over 90 days or not. It is used in the scoring to determine how many are overdue and what percentage of customers are over 90 days. The formula for this is the following:

=IF([@[Days Overdue]]>90,1,0)

Creating the dashboard

I’ve created a new tab for the dashboard, called Customer Score.

Here, I’ll setup a pivot table so that I can have a breakdown of the customer’s running balance by month, by putting the Month-Year field I created in the rows section and the open balance field in the values section.

Add the Customer Name field to the filters section. To show a running total, select the field in the values section, select Value Field Settings, and under Show Values As, select the option for Running Total In. And because there’s only one field, you just select the Month-Year field.

This now shows you a pivot table that breaks down the selected customer’s running open balance by month and year.

Pivot table in Excel showing running balance by month and year.

The pivot table can also be used to make it easy to select a customer, rather than from a drop-down list. With the pivot table selected, if you go to the Insert tab and select Slicer, you can add one for the Customer Name field.

Adding a slicer for an Excel pivot table.

Putting this on the left-hand side will make it easy to simply select a customer. This value will update the filter in the pivot table, and that value can link to your header.

Note: selecting multiple customers from the filter won’t work, as only one name can be populated in the header.

A slicer in Excel that shows a list of customers.

With the customer selected, I can now populate formulas for the number of invoices outstanding, their value, and the aging.

Table in excel showing a breakdown of accounts receivable aging.

This is created using the COUNTIF and SUMIFS functions to populate the values based on which categories they fall into. On the right, I’ve also calculated the percentage of the total open receivables.

Below this, I’ve also created a pivot chart based on the pivot table. This is simply a column chart showing the values by month.

Pivot chart in excel showing accounts receivable balances by month.

Calculating the customer risk score

The most important metric is to calculate what the actual risk score is. This is a weighted-average calculated based on the following factors: weighted average over 90 balance, % of invoices over 90, and age of newest invoice.

This is how I’ve setup the weighting, thresholds, and the scoring:

Excel table calculating a customer's risk score.

The max and threshold values are customizable and can be altered based on your data. The values are pulled in from the different fields in the data tab.

Weighted Average Over 90 formula:

=SUMIFS(DataTable[Weighted Average Over 90],DataTable[Customer Name],C2)

Over 90% of Invoices formula:

=AVERAGEIF(DataTable[Customer Name],C2,DataTable[Over 90 Invoice])

Age of Newest Invoice formula:

=TODAY()-MAXIFS(DataTable[Invoice Date],DataTable[Customer Name],C2)

C2 is the cell that has the customer name.

For the score, this is calculated by taking the score, dividing it by the threshold, and then multiplying that by the max values. However, the MIN function is used to ensure the total value does not exceed the maximum value. Regardless of how much higher the value is than the threshold, the score for the individual metric cannot exceed the maximum.

This maximum score is then pulled into the dashboard to create a complete picture of how risky the customer is, based on this weighted average.

I have also setup conditional formatting rules for the risk score to change color based on the value. Check out the video below for a complete walkthrough of how to create this dashboard from start to finish.

https://youtu.be/hy5VbitelRE
maxresdefault

How to Create a KanBan Board in Excel

AI Summary: You can build a simple Kanban-style board in Excel by storing tasks in an Excel Table and using the FILTER function to spill each status column automatically. Add optional filters (like Assigned To and Priority) by multiplying conditions, and use an OR test to make a filter optional when a cell is left blank.

  • Scales with you: add extra criteria (Assigned To, Priority) without changing the layout.
  • Best for: lightweight task tracking in Excel without add-ins.
  • Core idea: one task list (Excel Table) + one board sheet (status headers) + FILTER formulas.

Overview

Excel doesn’t include a built-in Kanban board, but you can create a similar workflow with a task table and a few FILTER formulas. This approach lets you visualize work by status (columns) and automatically updates the board as tasks move through your process.

https://youtu.be/hlGbKRsXILM

Step 1: Create a task list (Excel Table)

Start with a task list like the one shown below. At a minimum, include the Task Name and Status. Adding more fields (for example, Assigned To and Priority) lets you filter the board later.

Table of tasks in Excel.

Step 2: Lay out the Kanban board (statuses as columns)

On another sheet, set up the Kanban board layout. Create one column per status and format the headers however you like. In this example, the statuses are Backlog, In Progress, In Review, and Done.

KanBan board outline in Excel.

Step 3: Use FILTER to spill tasks into each status column

Under the first status header (for example, Backlog in cell B3), enter this formula to pull all matching task names into the column:

Formula: =FILTER(Table1[Task Name],Table1[Status]=B$3,””)

How it works: FILTER returns the Task Name values where the Status equals the header cell (B$3). The last argument (“”) displays a blank when no results match. Using an Excel Table (Table1) matters because the ranges expand automatically as you add tasks.

Because the formula locks the header row (row 3), you can copy it across to the other status columns (placing it in row 4 under each header). You’ll now have a Kanban board that updates automatically based on each task’s status.

KanBan board in Excel filled with tasks.

As you make changes to the statuses on the tasks, they will automatically update on the KanBan board. You may want to create a drop-down list on your task list to make it easy to update statuses.

Optional: Add filters (Assigned To, Priority, and more)

So far, the board filters tasks only by Status. If your task table includes more fields, you can also filter by things like Assigned To and Priority to focus on a specific person or type of work.

On the board sheet, add input cells for Assigned To and Priority (often via drop-down lists). In this example, those input cells are stored as named ranges called assignedto and priority.

KanBan board showing a drop-down option for the assignedto field.

Multiple conditions: FILTER accepts one include argument, but you can combine conditions by multiplying them. Each comparison returns TRUE (1) or FALSE (0). Only rows where all conditions are TRUE multiply to 1 and are returned.

Formula (Status + Assigned To + Priority): =FILTER(Table1[Task Name],(Table1[Assigned To]=assignedto)*(Table1[Status]=B$3)*(Table1[Priority]=priority),””)

For example, selecting Alex for Assigned To and High for Priority will show only Alex’s high-priority tasks in each status column.

KanBan board in Excel filtered for Alex's high-priority tasks.

Make a filter optional: If you want Priority to be optional, add an OR test using +. This makes the Priority condition TRUE when either (a) the priority matches, or (b) the priority input cell is blank.

Formula (Priority optional when blank): =FILTER(Table1[Task Name],(Table1[Assigned To]=assignedto)*(Table1[Status]=B$3)*((Table1[Priority]=priority)+(priority=””)),””)

With that change, leaving the Priority input blank will return all tasks for Alex (still grouped by status), instead of only tasks with a specific priority.

KanBan board in Excel showing tasks for Alex for all priorities.

FAQ

Can Excel do Kanban? Excel doesn’t have a native Kanban board feature, but you can create a Kanban-style view by grouping tasks into status columns and using formulas to display the right tasks in each column.

Why use an Excel Table for the task list? Tables automatically expand as you add rows, so your FILTER formulas keep working without updating ranges.

How do I add multiple filters in FILTER? Multiply conditions like (Assigned To=cell)*(Status=header)*(Priority=cell). TRUE becomes 1, and FALSE becomes 0, so only rows that meet every condition are returned.

How do I make a filter optional when an input cell is blank? Add an OR test with +, like (Priority=cell)+(cell=””). That makes the condition pass when the input is empty.

If you’re stuck or want to compare your setup to mine, you can download my Kanban template.

WorldcupThumbnail5

2026 FIFA World Cup Prediction Template: Free Automated Excel Tracker

Quick Summary: Skip the manual setup and start your World Cup league instantly. This free, ready-to-use Excel template features automated standings, customizable scoring rules for predictions, and a dynamic leaderboard. Whether you are tracking matches for yourself or running an office pool, this spreadsheet handles the complex math and tiebreakers for you.

📥 Download the Free World Cup Template Here

How the World Cup Prediction Template Works

This template is built to handle everything from individual match tracking to large-scale participant pools, utilizing three main tabs: Actuals, Predictions, and Leaderboard.

1. The “Actuals” Tab (Live Tournament Tracking)

On the Actuals tab is where you will enter the actual results, in the score column. The tables will update accordingly, as will the knockout stages. The score needs to be entered in the following format: 0:0. Otherwise, you will get an error prompting you to adjust the format. This is to ensure that the formulas calculate correctly.

The standings will automatically update but if they are not correct due to complex tiebreakers, you can override the standings in the following area.

Override section of the prediction template.

Simply enter all the teams from a group where the standings are incorrect, and manually enter the correct position in the override field.

The match schedule shows the games based on your local time zone. However, to ensure this is correct, you first need to enter the correct GMT Adjustment. This will then update the matches to reflect your local time.

GMT adjustment section for the template.

If you want to track certain teams, you can do so by selecting from the Watchlist area. Any teams you select will be highlighted on the match schedule in yellow, to indicate the matches they are involved in.

The prediction template tracking matches involving Belgium and the United States.

If you want to track matches in certain cities, there is also an area where you can indicate cities to track. Any cities you select will be highlighted on the match schedule in blue.

The template tracking matches played in Vancouver and Seattle.

2. The “Predictions” Tab (Player Entries)

The Predictions tab is only needed if you are making predictions. It’s very similar to the Actuals tab, except here, you’ll enter in your predictions. The predictions will be compared with the scores from the Actuals tab. Based on the scoring rules, you will earn points for the correct number of total goals, the correct result, and for getting the exact score correct. You can also receive points for predicting a team’s correct position in their group.

You can change the different points by changing the score values relating to the different categories. You can see your point total next to the prediction points header.

Prediction points and scoring rules for the template.

If you have multiple players making predictions, then simply copy the sheet as many times as you need to.

3. The “Leaderboard” Tab (Standings)

If you have multiple people making predictions, then you can compare their results on the Leaderboard tab. To add players, you just need to add them under the Tab Name. This has to match the tab name exactly or else it will result in an error.

GoldsilverThumbnail

How to Get Gold and Silver Prices Into Excel With Power Query

If you want to look up the price of gold or silver, you can do that easily through a quick Google search. But did you know that you can also import prices right into Excel? With the help of Power Query, I’m going to show you how that’s possible.

Start by getting access to an API

There isn’t a built-in Excel function that pulls in the price of gold or silver. But we can use an API connection to get that in. I suggest using alphavantage.co, where you can get a free API key. You can pull up to 25 requests per day. After that, you’ll have to wait until the next day. But at the very least, you can refresh several times over the course of a day. If you need more frequent updates, you can also choose from paid plans.

If you go with an API service, then you’ll need to refer to their documentation on how to reference and pull data. In the case of Alpha Vantage, it gives the following URL as an example of how you would pull in silver prices:

url = 'https://www.alphavantage.co/query?function=GOLD_SILVER_SPOT&symbol=SILVER&apikey=demo'

I’ve bolded the parts that you would change. If you want to pull the price of gold, simply change the value that is bolded above, from SILVER to GOLD. You’ll also need to change the demo API key to the one that you’ve set up.

This link can then be used in Power Query.

Selecting the 'from web' option in Power Query.

Click on the From Web button in the Data tab, which will give you a place to paste the URL into:

Entering the URL to import data from in Power Query.

This will now open up Power Query and allow you to see what the data looks like:

Power Query window in Excel.

After clicking on the option to convert into a table, you’ll now see the ability to Close & Load, which will download the data into Excel:

Power Query window in Excel with the option to close and load.

Doing this will create a new tab on your spreadsheet, with the following data now displayed in a table format:

Silver price loaded into Excel via Power Query.

To refresh the data, click the Refresh All button in Excel, or right-click the table and select Refresh.

How to import both gold and silver prices in a combined query

You can create a second query to pull in the price of gold, but there’s also another option: a combined query. This will allow you to set up multiple queries at once and, through a single refresh, pull in both data points.

The one hitch is that with Alpha Vantage, you can make only one request per second, so you’ll need to wait before initiating the second data pull. This, too, however, can be coded within Power Query.

Let’s get back into Power Query to do this. From the Get Data option, select the button that allows you to create a Blank Query:

Creating a blank query in Power Query.

Then, click on the option to go straight into the Advanced Editor:

Selecting the advanced editor option in Power Query.

By doing this, you can now enter Power Query code, rather than going step by step. Here is the code that you can use to pull in both the price of gold and silver from Alpha Vantage:

let
    ApiKey = "YOURAPIKEY",
    
    FetchData = (symbol) => 
        let
            Source = Json.Document(Web.Contents("https://www.alphavantage.co/query?function=GOLD_SILVER_SPOT&symbol=" & symbol & "&apikey=" & ApiKey))

        in
            Source,

    Gold = FetchData("XAU"),

    Silver = Function.InvokeAfter(() => FetchData("XAG"), #duration(0, 0, 0, 2)),

    Combined = Table.FromRecords({Gold, Silver}),
    #"Changed Type" = Table.TransformColumnTypes(Combined,{{"price", type number}})
in
    #"Changed Type"

Note that you’ll need to put in your own API key at the beginning. But with this code, it’ll wait a couple of seconds before running the second query. And at the end, you have both gold and silver prices in a table:

Power Query showing both gold and silver prices.

If you liked this post on How to Get Gold and Silver Prices Into Excel, please give this site a like on Facebook and also be sure to check out some of the many templates that we have available for download. You can also follow me on X and YouTube. Also, please consider buying me a coffee if you find my website helpful and would like to support it.

SpinWheel

How to Create a Spinning Wheel in Excel

Do you want to create a spinning wheel like in the video below?

In this post, I’ll show you how you can do this, with the help of visual basic. There are a couple of ways you can create a spinning wheel effect. I’ll go over both approaches, and share the code with you so that you can set it up in your own spreadsheet.

Create a spinning wheel effect by rotating an object

The easiest way to spin a wheel, or any object for that matter, is to rotate it. This can be done in visual basic. Before you get started, however, you need to know the name of the shape that you want to spin.

A wheel object in an Excel spreadsheet.

In the above screenshot, I have inserted a wheel into my spreadsheet, but you can use any image. In the top-left-hand corner, you’ll notice it says wheel1 — this is the name of the object. You change this to whatever you want. However, this is what you’ll need to reference in the macro when applying the spin effect.

Now, go into visual basic. This can be done using ALT+F11 shortcut. Then, you’ll need to go to the Insert option from the menu and click on Module.

Then in Module 1, copy the following code in:

Sub SpinEffect()
    Dim i As Long
    Dim wheel As Shape
    Set wheel = ActiveSheet.Shapes("wheel1")
      
     For i = 1 To 100 Step 1
        wheel.IncrementRotation 5
        DoEvents
    Next i
    

     For i = 1 To 100 Step 1
        wheel.IncrementRotation 3
        DoEvents
    Next i
    

     For i = 1 To 100 Step 1
        wheel.IncrementRotation 2
        DoEvents
    Next i
    
    
     For i = 1 To 500 Step 1
        wheel.IncrementRotation 1
        DoEvents
    Next i
End Sub

At the beginning of the code, I specify the name of my object — wheel1. This is where you need to update the code to reflect the name of your object.

The rest of the code is going through a series of loops. The first one is rotating the image by 5 degrees, then 3 degrees, then 2, and finally 1. The last loop goes through 500 steps and is the longest. You can adjust these to change the speed of the wheel’s rotation.

You can also insert a shape that links to this macro, so that it effectively becomes a button. In my example, I created a rectangle and added the text ‘SPIN’ onto it. If you go to the Insert menu on the Excel ribbon and select Shapes, you can create your own.

Once you’ve created a shape, you can assign a macro to it by right-clicking on the shape and selecting Assign Macro.

Assigning a macro to a shape.

Then, select your macro and click on OK.

Selecting a macro in excel.

Now, anytime you click on the button, the macro will run, and your object will spin.

The one limitation about this method is that there is no way to know which value your wheel landed on. It spins, but there is no easy way to determine what it landed on. This is where the second method comes into play.

Creating a spin effect by changing visibility

This method is a bit more complex, but it addresses the main issues from the first approach, which is that you’ll known which value was selected.

I’m going to use the same wheel, but this time I’m going to make nine copies of it — one for each possible outcome. I will do the rotations myself and then just toggle the visibility using code. The setup can be a bit more tedious here because you’ll need to make sure the objects are on top of one another and that the rotations are precisely in the right position.

You’ll have to do this for each rotation and each object. You’ll also want to name each individual object so that you know which value it corresponds to.

Once the objects are all aligned, then you can insert the following code:

#If VBA7 Then
    Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As LongPtr)
#Else
    Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
#End If

Sub spin()

Dim wheel1 As Shape
Dim wheel2 As Shape
Dim wheel3 As Shape
Dim wheel4 As Shape
Dim wheel5 As Shape
Dim wheel6 As Shape
Dim wheel7 As Shape
Dim wheel8 As Shape
Dim wheel9 As Shape
Dim wheel10 As Shape

Set wheel1 = ActiveSheet.Shapes("wheel1")
Set wheel2 = ActiveSheet.Shapes("wheel2")
Set wheel3 = ActiveSheet.Shapes("wheel3")
Set wheel4 = ActiveSheet.Shapes("wheel4")
Set wheel5 = ActiveSheet.Shapes("wheel5")
Set wheel6 = ActiveSheet.Shapes("wheel6")
Set wheel7 = ActiveSheet.Shapes("wheel7")
Set wheel8 = ActiveSheet.Shapes("wheel8")
Set wheel9 = ActiveSheet.Shapes("wheel9")
Set wheel10 = ActiveSheet.Shapes("wheel10")

Dim i As Integer, j As Integer, cycle As Integer
    Dim winningNumber As Integer
    Dim delay As Long
    
    winningNumber = Int((9 * Rnd) + 1)
    
    ' 1. Initial Reset
    For i = 1 To 10
        ActiveSheet.Shapes("wheel" & i).Visible = msoFalse
    Next i

    ' --- STAGE 1: FAST (10 Cycles) ---
    delay = 10
    For cycle = 1 To 10
        For j = 1 To 10
            ActiveSheet.Shapes("wheel" & j).Visible = msoTrue
            DoEvents
            Sleep delay
            ActiveSheet.Shapes("wheel" & j).Visible = msoFalse
        Next j
    Next cycle

    ' --- STAGE 2: MEDIUM (10 Cycles) ---
    delay = 30
    For cycle = 1 To 10
        For j = 1 To 10
            ActiveSheet.Shapes("wheel" & j).Visible = msoTrue
            DoEvents
            Sleep delay
            ActiveSheet.Shapes("wheel" & j).Visible = msoFalse
        Next j
    Next cycle

    ' --- STAGE 3: SLOW (10 Cycles) ---
    delay = 40
    For cycle = 1 To 10
        For j = 1 To 10
            ActiveSheet.Shapes("wheel" & j).Visible = msoTrue
            DoEvents
            Sleep delay
            ActiveSheet.Shapes("wheel" & j).Visible = msoFalse
        Next j
    Next cycle


    ' --- STAGE 4: SLOW (10 Cycles) ---
    delay = 50
    For cycle = 1 To 10
        For j = 1 To 10
            ActiveSheet.Shapes("wheel" & j).Visible = msoTrue
            DoEvents
            Sleep delay
            ActiveSheet.Shapes("wheel" & j).Visible = msoFalse
        Next j
    Next cycle
    
    
    ' --- STAGE 5: SLOW (10 Cycles) ---
    delay = 60
    For cycle = 1 To 10
        For j = 1 To 10
            ActiveSheet.Shapes("wheel" & j).Visible = msoTrue
            DoEvents
            Sleep delay
            ActiveSheet.Shapes("wheel" & j).Visible = msoFalse
        Next j
    Next cycle
    
    
    ' --- FINAL LAP: STOP ON WINNER ---
    ' Even slower for the "crawl" to the finish line
    delay = 70
    For j = 1 To winningNumber
        ActiveSheet.Shapes("wheel" & j).Visible = msoTrue
        DoEvents
        Sleep delay
        
        ' Only hide if it's not the final winning shape
        If j < winningNumber Then
            ActiveSheet.Shapes("wheel" & j).Visible = msoFalse
        End If
    Next j

    MsgBox "The wheel stopped on Wheel " & winningNumber & "!"

End Sub

This code is longer and how it works is it determines the winning value at the beginning, based on a random number generator. Then the macro goes through loops to change the visibility of all the wheels, eventually revealing the winning one at the end.


If you liked this post on How to Create a Spinning Wheel in Excel, please give this site a like on Facebook and also be sure to check out some of the many templates that we have available for download. You can also follow me on X and YouTube. Also, please consider buying me a coffee if you find my website helpful and would like to support it.

WeightedAverage

How to Calculate Weighted Averages in Excel

A weighted average is a type of average that assigns different weights or values of importance to each element in a dataset. Unlike a simple average that treats all elements equally, a weighted average adjusts the contribution of each element based on its relative significance. This means that some elements have a greater impact on the final result than others, depending on their weights.

Why use a weighted average?

Weighted averages are useful because they provide a more accurate representation of the data by taking into account the importance of each element. For example, in financial analysis, a weighted average may be used to calculate the average interest rate of a portfolio of loans or investments, where the weight of each loan or investment is based on its size or duration. In schools, a weighted average may be used to calculate a student’s overall grade by assigning different weights to assignments, quizzes, and exams based on their importance or difficulty. Anytime you don’t want everything to have the same weighting or importance is when you’ll want to use a weighted average.

Calculating a simple weighted average in Excel

A common way to apply a weighted average is by using a points system. Suppose you are looking to buy a house and have many different criteria that you want to take into consideration, such as square footage, location, if it has a basement, etc. But not all of these items are equally important, and so you may want to say that location is worth 30 points and square footage is worth 25 points, and so on.

The first step is to assign a weight, or point value, to each one of these criteria. Then, assign a score to each one of them criteria, perhaps within a range of 1 to 100. Once you’ve done that, you multiply the score by the points. Total that up, and divide it by the total points, and you’ve got your score, or weighted average. Here’s an example:

Sample weighted average calculation when evaluating the purchase of a house.

This particular house scored high on the most important items, and thus, resulted in a high weighted average. The total of the score x points column was 10,190. Taking that value and dividing it by 145, the total points, results in a weighted average of 70.28.

Here’s another house, which scores far lower, with a weighted average of just 45.48:

Sample weighted average calculation when evaluating the purchase of a house.

Although it scored high on areas such as school and kitchen, because of its low scores on the top two weightings — location and square footage — that kept its weighted average down.

Creating a template like this in Excel and comparing your different scores can be a way to help compare houses and other things, while giving each criteria an appropriate weighting. By simply scoring everything on a value of 1-100 without weighting, the problem would be that each criteria would effectively be equal, saying that things like layout and the garage are just as important as the location and size of the house, which most people likely wouldn’t agree with. By using weights, you can better take into account the value of each individual criteria.

Calculating grades using weighted averages

Another use for calculating weighted averages is when it comes to grading. In a class, you might have a specific weighting scale that says assignments are worth 10% of your grade, quizzes are 20%, a project is worth 5%, a mid-term is 25%, and the final exam accounts for 40%.

In this case, you’re using percentages that add up to 100% rather than weights, which may be more subjective. This still works in largely the same way as you are multiplying a score by the weight. Except now, since the weights add up to 100%, you don’t need to worry about taking the total and dividing it by the total weights. Whatever your result is, that is the total score. Here’s an example of how a student scored in a class:

Calculating a student's grade using a weighted average calculation.

When using percentages for weighting, it’s important to double check they add up to 100% to ensure everything is accounted for. In this example, the student had a score of 72.25, which would be the same as saying they scored 72.25%, which would be their grade for the course. As you’ll notice, the student’s high scores on the quizzes and mid-term exam were unfortunately offset by a poor final exam mark.

In this example, since we’re just looking at percentages, you can do without the extra column for value, which takes the weight x the score. Instead, you can use SUMPRODUCT. If the weightings are in cells A2:A6 and the scores are in B2:B6, the grade can be calculated with the following formula:

=SUMPRODUCT(A2:A6,B2:B6)

The formula will multiply each value by the corresponding value in the same row, thereby eliminating the need to use an extra column. By using an Excel formula, you can save yourself the extra step of having to tally up the values and then dividing them by their weights again.


If you liked this post on How to Calculate Weighted Average in Excel, please give this site a like on Facebook and also be sure to check out some of the many templates that we have available for download. You can also follow me on Twitter and YouTube. Also, please consider buying me a coffee if you find my website helpful and would like to support it.

UltimatePTGuide

The Ultimate Guide to Pivot Tables

Pivot tables are one of the most powerful tools in Excel and Google Sheets, allowing users to quickly analyze and summarize large datasets. This article will provide a comprehensive guide to pivot tables, including advanced features and common troubleshooting tips.

What is a Pivot Table?

A pivot table is a data summarization tool that is used in the context of data processing. Pivot tables can automatically sort, count, and total data stored in one table or spreadsheet and display the summarized data. This makes them invaluable for data analysis tasks, especially when dealing with large datasets.

A pivot table in Microsoft Excel.

How to Create a Pivot Table in Excel

Creating a pivot table in Excel is straightforward:

  1. Select the range of data you want to analyze.
  2. Go to the Insert tab and click on PivotTable.
  3. Choose where you want the pivot table to be placed.
  4. Drag and drop fields into the Rows, Columns, Values, and Filters areas to organize your data.

TIP: You can use ALT+N+V+T as a shortcut to create a pivot table in Excel instead of going through the Insert tab.

For a detailed step-by-step guide, check out our article on how to create a pivot table in Excel.

In some cases, you may have a data set which shows as a summary and with important fields going across horizontally rather than vertically. That can be challenging, but you can use Power Query to help you flip your data into a tabular format, which can be more useful for data analysis.

TIP: Do you keep changing the pivot table layout because you don’t like the default Excel setup? You can change the pivot table defaults!

Combining multiple sheets into one pivot table

If you are have multiple worksheets, then you don’t have to create one pivot table for each of them. Instead, you can combine them together with the help of Power Query. By doing so, this can drastically make your data analysis more efficient by having multiple sheets linked into just one pivot table, where you can easily slice and dice data. And with Power Query, it’s easy to trigger a refresh.

Working with Dates in a Pivot Table

Dates are a common type of data that often require special handling in pivot tables. Analyzing date-related data can provide valuable insights into trends, seasonality, and performance over time. One of the most powerful features of pivot tables is the ability to group dates into various intervals such as months, quarters, and years. This can make your data analysis more effective, especially when dealing with long periods.

Grouping Dates in a Pivot Table

Grouping dates allows you to summarize data on a periodic basis. This is particularly useful for identifying monthly trends and patterns, such as sales performance or seasonal variations. To group dates in a pivot table, follow these steps:

  1. Right-click on any date in the pivot table.
  2. Select Group from the context menu.
  3. In the Grouping dialog box, select how you want to group your dates.
  4. Click OK.
Grouping dates in a Pivot Table.

This is a great way of grouping your existing data. But you can also add to your data by creating calculated fields, which can take your pivot table to the next level.

Creating Calculated Fields in a Pivot Table

Calculated fields in pivot tables allow you to perform custom calculations on the data within your pivot table. This feature is invaluable for creating new metrics, combining existing data in meaningful ways, and enhancing your data analysis capabilities without altering the original dataset.

A calculated field is a new field that you add to your pivot table, which derives its value from performing calculations on other fields in the pivot table. For example, you can create a calculated field to calculate profit by subtracting costs from revenue or to determine the percentage change between two periods.

How to Add a Calculated Field

Here are the steps to create a calculated field:

  1. Go to the PivotTable Analyze tab.
  2. Click on Fields, Items & Sets in the Calculations group.
  3. Select Calculated Field from the dropdown menu.
  4. Define the Calculated Field:
  • In the Insert Calculated Field dialog box, enter a name for your new field in the Name box.
  • In the Formula box, enter the formula you want to use. You can use standard arithmetic operations (e.g., +, -, *, /) and reference other fields by their names.
  • For example, to calculate profit, you might enter a formula like =Revenue - Costs.

5. Click Add and then OK to insert the calculated field into your pivot table.

Benefits of Using Calculated Fields

  • Custom Metrics: Create specific metrics tailored to your analysis needs, such as profit margins, growth rates, or weighted averages.
  • Dynamic Analysis: Calculated fields update automatically as you change the layout or filter data within your pivot table.
  • Enhanced Insights: Combine data from different fields in new ways to uncover deeper insights and trends.

Tips for Using Calculated Fields

  • Use Descriptive Names: Give your calculated fields clear and descriptive names to make them easily identifiable in your pivot table.
  • Test Your Formulas: Ensure that your formulas are correct and yield the expected results by testing them with sample data.
  • Avoid Overcomplicating: Keep your calculated fields as simple as possible. Complex calculations can be harder to manage and troubleshoot.

By mastering calculated fields, you can significantly enhance the analytical power of your pivot tables, allowing for more sophisticated and insightful data analysis. You can even add IF statements to a pivot table with the help of calculated fields.

After leveraging calculated fields to generate custom metrics and enhance your data analysis, the next step is to efficiently filter and explore your pivot table data. This is where slicers come into play, offering an intuitive and interactive way to refine your data views and focus on specific subsets of information.

Setting Up Slicers in a Pivot Table

Slicers provide a user-friendly way to filter data in pivot tables, making it easier to view and analyze specific subsets of your data. They are particularly useful for interactive dashboards and reports, allowing users to quickly change the data displayed without modifying the underlying pivot table.

What is a Slicer?

A slicer is a visual filter in the form of a button that allows you to filter pivot table data quickly. Slicers make it easy to filter data by simply clicking on the values you want to include or exclude, providing a more intuitive and interactive way to work with your pivot tables. This is similar to how you would filter your data on a table by using drop-down options; slicers simply make the process easier.

How to Add a Slicer to a Pivot Table

Adding a slicer to your pivot table can be done with just a few clicks. Simply activate your pivot table, then take the following steps:

  1. In the PivotTable Analyze tab, click on Insert Slicer in the Filter group.
  2. The Insert Slicers dialog box will appear, listing all the fields available in your pivot table.
  3. Select the fields you want to use as slicers. You can choose multiple fields if needed (e.g., Product, Store, Salesperson).
  4. Click OK to add the slicers to your worksheet. Each selected field will have its own slicer.
Slicers in a pivot table.

Using Slicers to Filter Data

Once slicers are added to your worksheet, you can use them to filter your pivot table data:

Filter Data: Click on the buttons within the slicer to filter the data. Each button represents a unique value from the field you selected.

Multi-Select: To select multiple values, hold down the Ctrl key (or Cmd key on Mac) while clicking on the slicer buttons.

Clear Filters: To clear all filters applied by a slicer, click the Clear Filter button (a small filter icon with an X) in the top right corner of the slicer.

Benefits of Using Slicers

  • User-Friendly: Slicers provide a simple, visual way to filter data, making it easy for anyone to use, even those unfamiliar with pivot tables.
  • Interactive Reports: Slicers are perfect for interactive dashboards and reports, allowing users to dynamically filter data and gain insights quickly.
  • Multiple Field Filtering: You can use multiple slicers simultaneously to filter data by different fields, providing a more granular view of your data.
  • Consistent Filtering: Slicers ensure consistent filtering across multiple pivot tables that share the same data source, keeping your reports synchronized.

Slicers are not limited to Excel; you can also use slicers in Google Sheets.

TIP: You can adjust the size and shape of your slicers. You can also spread the selections across multiple columns. Under the Slicer tab, just change the number of columns you want for that selection.

Now that you’re familiar with slicers, the next step is to integrate these elements into a comprehensive and visually engaging dashboard. Dashboards combine multiple pivot tables, charts, and other data visualizations into a single, cohesive view, providing a powerful tool for data analysis and reporting.

Creating Dashboards with Pivot Tables

Dashboards are powerful tools that can help visualize a company’s performance, various economic data, travel statistics, and any other reports you want to analyze. They provide an interactive interface for users to explore and analyze data, making it easier to gain insights and make informed decisions.

What is a Dashboard?

A dashboard is a visual representation of key metrics and data points, typically displayed in a single view. Dashboards combine various elements such as pivot tables, charts, and interactive filters to provide a comprehensive overview of your data. They are particularly useful for monitoring performance, identifying trends, and facilitating data-driven decision-making.

An Excel dashboard.

Creating Pivot Charts

For any metric you want to create a chart or visualization for, you’ll want to consider creating a pivot table for it. From there, you can use pivot charts to do the rest.

To insert a pivot chart:

  • Click anywhere in your pivot table.
  • Insert a chart the way you normally would.
  • Select the type of chart that best represents your data (e.g., bar, line, pie chart) and click OK.

Format your pivot charts to enhance readability. Add titles, labels, and legends as needed. Use colors and styles that make the charts visually appealing and easy to interpret.

Combining Elements into a Dashboard

To create a cohesive and interactive dynamic dashboard, combine your pivot tables, charts, and slicers into a single worksheet. Some things to consider when doing so:

Layout Design:

  • Arrange the pivot tables and charts in a logical and visually appealing layout. Group related elements together.
  • Leave space for slicers and ensure they are positioned in a way that is easy for users to interact with.

Add Visual Enhancements:

  • Use shapes, colors, and borders to highlight key areas and separate different sections of your dashboard.
  • Add headers and text boxes to provide context and explanations for the data presented.
  • Arrange the slicers on your dashboard so they are easily accessible. Slicers should be placed near the relevant pivot tables and charts to facilitate easy filtering.

TIP: Connect Slicers to multiple pivot tables. To do this, right-click on the slicer and select Report Connections. Check the boxes for all the pivot tables you want to filter with the slicer.

Benefits of Using Dashboards

  • Real-Time Insights: Dashboards update automatically with changes to your underlying data, providing real-time insights.
  • User-Friendly Interface: Slicers and interactive charts make it easy for users to explore and filter data without advanced technical skills.
  • Comprehensive View: By combining multiple data points and visualizations, dashboards offer a holistic view of performance, trends, and key metrics.
  • Improved Decision-Making: Dashboards facilitate data-driven decision-making by presenting clear and actionable insights.

By following these steps, you can create powerful and interactive dashboards that leverage the full capabilities of pivot tables, charts, and slicers. This enables you to present complex data in an accessible and visually engaging format, driving better understanding and more informed decisions. You can create a dashboard in Google Sheets using similar approaches.

While pivot tables offer powerful data analysis capabilities and can significantly enhance your ability to work with large datasets, they are not without their challenges.

Biggest challenges with pivot tables

Some of the most common issues that users often encounter with pivot tables are the following:

  • Pivot tables by default aren’t formatted in a convenient way; users often end up adjusting the layout so that it is in a tabular setup.
  • Labels do not repeat, and that can make it difficult to read the table to determine what each line relates to. Here too, users need to change the default layout.
  • The formatting for fields can change when the data is refreshed if users haven’t adjusted the actual field settings themselves.
  • When referencing a pivot table in a formula, the GETPIVOTDATA function can be triggered if the option isn’t disabled.
  • The data source is updated and when it does, the pivot table doesn’t include the newly added information without manually having to adjust the range.

Pivot tables are incredibly useful in data analysis and by learning how to create and use them, you can improve your data analysis capabilities and create some stunning visuals. But be sure to watch out for some common pitfalls when creating pivot tables.

StockTradingTemplate2

2026 Stock Trading Template (FREE!)

If you want to track your investments in a spreadsheet, with visuals, metrics, and up-to-date data, you can download my free Google Sheets template. Below, I’ll go over how the template works, and provide you with a link that will enable you to copy the file for your own use.

How the H2E 2026 Stock Trading Template Works

There are five tabs in the worksheet, which I’ll guide you through: guide, watchlist, activity, pricehistory, and summary.

Guide

This is the overview of the file and the instructions and also what not to do. There are no inputs on this sheet.

H2E 2026 stock trading template guide.

Watchlist

This is a list of stocks that you want to track. The top-performing stocks from this list will display on the Summary page, giving you a way to see what’s doing well on a specific day. You only need to update the stocks in column A. Column B pulls in the percent change for the current day and is driven by a formula.

H2E 2026 stock trading template watchlist.

Activity

This sheet is where you will enter any transactions, including buy, sell, dividends received, contributions, and withdrawals. The headers that are highlighted in red indicate that those columns have formulas and shouldn’t be updated. The columns with headers in black are where you’ll want to input data.

H2E 2026 stock trading template activity sheet.

To enter a purchase, enter the ticker, quantity (positive), price, and any commission.

To enter a stock sale, populate the same fields but for quantity, make the value negative. Any stock sales will have their font turn red (regardless of whether the transaction is a gain or loss) and purchases will be green.

To enter dividends received, enter a value in column I for cash dividends. Dividend entries will highlight with a green background.

To enter a deposit or withdrawal from your portfolio, enter a positive value in column J for a deposit, or a negative one for a withdrawal. If there is a negative calculated cash balance, the value(s) in column Q will highlight red.

To enter starting stock balances, enter them as you would for a purchase (with a positive quantity) but check off the box in column B for balance adjustment. By doing this, you won’t affect the cash balance. Otherwise, a purchase will deplete your cash position.

If you make a mistake, it’s important to remember not to delete any rows. Doing so can lead to errors and values not calculating properly. Simply delete the values or override them.

Pricehistory

The Pricehistory sheet pulls in the stock prices from Google Finance for each stock, by month. You won’t need to enter any values on this sheet unless there is an error, such as if a stock isn’t found (perhaps it began trading recently or changed symbols). In those cases, you can override the formulas with a hardcoded amount, at which point you’ll just need to remember to update them later. When you no longer need the hardcoded amounts, you can copy the formulas down and let them take over.

H2E 2026 stock trading template pricehistory sheet.

The cell highlighted in red in the screenshot above tells me that value is hardcoded.

If, however, it’s erroring out for every month, then you’ll want to double-check that you’ve entered the ticker symbol correctly. This can happen if you have a stock that Google Sheets isn’t able to recognize without more information, such as the exchange. And in some cases, you’ll want to specify the exchange to ensure Google isn’t pulling the wrong ticker. It may assume you want the ticker that trades on the NASDAQ or NYSE, but if it’s a different one, you may want to specify the exchange.

For example, TSE:AC is the notation you would use to specify the Toronto Stock Exchange (TSE) and AC for Air Canada. The best way to check what the exchange notation should be is to go to Google Finance, look up the ticker there, and see how Google is referencing it.

Summary

The summary sheet is effectively your dashboard, that will show you how your portfolio’s balance has changed over the past year, the dividends you’ve received, the breakdown of your positions, and your gains and losses.

H2E 2026 stock trading template summary and dashboard sheet.

Below, there is also a table summarizing your positions, including realized, unrealized, and total gains and losses. The total gain and loss will include realized and unrealized gains and losses. Realized gains and losses will be populated anytime you have closed out of a position. The unrealized gain or loss will reflect your current position based on the number of shares you still own.

H2E 2026 stock trading template summary and dashboard sheet.

There is also a space where you can enter the minimum holding period, which may be useful if for tax purposes you need to hang on to an investment for a certain number of days. If you enter it and you haven’t been holding onto a stock for that long, it will highlight in grey to indicate that you are short of that minimum. If you don’t need it, you can just clear out the value and it will not highlight.

Download the Free H2E 2026 Stock Trading Template

Now that you know how the file works, feel free to test it out in Google Sheets. The link below will prompt you to make a copy of the file. The sample data will remain there but you can clear it out (just do not delete any rows!). If you have any questions, comments, or suggestions about the template, please contact me.

Disclaimer: This Google Sheets template is a personal tool shared for educational purposes. It is provided “as is” and has not been fully tested in all trading scenarios. I cannot guarantee its accuracy or freedom from errors. Use this tool at your own risk; I am not responsible for any financial losses or damages arising from its use. Please verify all calculations independently before placing trades.

Get the 2026 Stock Trading Template Here (Last updated: Jan. 8, 2026)


If you like the 2026 Stock Trading Template, please give this site a like on Facebook and also be sure to check out some of the many templates that we have available for download. You can also follow me on X and YouTube. Also, please consider buying me a coffee if you find my website helpful and would like to support it.