56 free macros indexedAll toolsHow to runBlogGitHub ↗

All Excel Tools

56 free, downloadable macros. Click any tool to read the how-to and download the .xlsm.

Add Prefix and Suffix to Cells

Bulk-add text to the start and/or end of every cell in your selection, with formulas left untouched

productivity

Add Running Total Column

Write a cumulative running total to the column next to your numeric column, in one pass

reporting

Add Totals Row to Numeric Columns

Drop a SUM formula at the bottom of every numeric column in your selection, plus a 'Total' label and a top border

reporting

Auto Pivot Summary

One-click summary of any data: group by one column and sum another, output to a new Summary sheet

reporting

AutoFit All Columns on All Sheets

Run AutoFit on every column of every visible sheet so the workbook is consistently readable in one click

productivity

Bulk Add Hyperlinks

Convert every URL-like cell in your selection into a clickable hyperlink in one pass

productivity

Bulk Find and Replace From Table

Read a 2-column table of find/replace pairs and apply every pair to your data range in one pass

productivity

Change Case to UPPERCASE or lowercase

Convert every text cell in your selection to UPPERCASE or lowercase in a single click

data-cleanup

Clean Phone Numbers

Strip dashes, spaces, parens, and dots from a column of phone numbers so every entry is just digits

data-cleanup

Clear All Comments

Delete every cell comment in your selection in one shot, with a confirmation prompt before deletion

data-cleanup

Combine All Sheets Into One

Stack the data from every worksheet in a workbook into a single Combined sheet, with one header row at the top

productivity

Compare Two Columns

Highlight every cell in two columns whose value does not appear in the other column, in one click.

data-cleanupreporting

Convert Formulas to Values

Replace every formula in your selection with its current evaluated value, in place, preserving the display format

productivity

Convert Hyperlinks to Plain Text

Extract the URL from each hyperlinked cell and replace the cell content with the plain URL text

data-cleanup

Convert Text to Numbers

Turn numbers stuck as text back into real numbers, including currency symbols, commas, and parens

data-cleanup

Convert Text to Proper Case

Capitalize the first letter of each word in your selection and lowercase the rest, in place

data-cleanup

Count and Sum Cells by Color

Count how many cells share a background color, and sum them when they're numeric, with one click

reporting

Count Words and Characters Per Cell

Add word and character counts to the two columns next to your text column in one pass

productivity

Delete All Hidden Sheets

Remove every hidden and very-hidden sheet from the workbook with one confirmation prompt

productivity

Delete Empty Columns

Remove every column in your selection where all cells are empty or whitespace-only

data-cleanup

Export Each Sheet to CSV

Save every visible worksheet as its own CSV file in the workbook's folder, in one click

productivity

Extract Email Addresses From Text

Pull every email address out of messy free-form text into a clean adjacent column

productivity

Extract Numbers From Text

Pull every number out of a column of text cells and write them comma-separated to the next column.

data-cleanupproductivity

Fill Blank Cells With Value Above

Walk down each column and copy the most recent non-blank value into every blank cell underneath it

data-cleanup

Find and Replace Across All Sheets

Replace text in every worksheet of your workbook in one go, with case and whole-cell options

productivity

Freeze Top Row on All Sheets

Apply Freeze Panes at row 2 to every visible sheet in the workbook so headers stay visible during scrolling

productivity

Highlight All Formula Cells

Color every cell containing a formula light yellow so you can see at a glance which cells are calculated versus hardcoded

productivity

Highlight Blank Cells

Color every blank or whitespace-only cell in your selection light red so missing data is visible at a glance

data-cleanup

Highlight Cells With Comments

Color every cell in your selection that has a comment (note) so you can spot annotations at a glance

data-cleanup

Highlight Duplicate Values

Color every cell whose value appears more than once in your selection

data-cleanup

Highlight Rows Containing Keyword

Color every row in your selected range where any cell contains a keyword you type in.

data-cleanupproductivity

Highlight Top and Bottom Values

Color the top N values green and the bottom N values red in your selection in one click

reporting

Insert Blank Row On Change

Insert a blank row above every cell where a chosen column's value changes from the row above.

productivityreporting

Insert Row Numbers

Fill the selected column with sequential integers starting at any number, no formulas, no fill-handle dragging

productivity

Letter Grade From Numeric Scores

Convert a column of numeric scores into letter grades using a configurable A/B/C/D scale

productivity

List All Sheet Names

Generate an index sheet at position 1 with a hyperlinked list of every other sheet in the workbook

productivity

List Cells With Formula Errors

Find every #REF!, #VALUE!, #N/A, and other formula error in your selection and list them on a new sheet

productivity

Protect All Sheets With Password

Apply the same sheet-level protection password to every sheet in the workbook in one shot

productivity

Quick Statistics Summary

One-click count, mean, median, mode, standard deviation, min, max, and range for any column of numbers

reporting

Remove All Formatting

Strip all colors, borders, fonts, and number formats from your selection while keeping values and formulas intact

data-cleanup

Remove Blank Rows

Delete every row in your selection where every cell is empty or contains only whitespace

data-cleanup

Remove Duplicates by Multiple Columns

Delete rows where the values in two or more columns you choose are all the same

data-cleanup

Remove Line Breaks From Cells

Strip newlines and tabs from text cells, replacing them with spaces and collapsing extra whitespace

data-cleanup

Remove Special Characters

Strip non-alphanumeric characters from text cells in your selection, with options to keep spaces and basic punctuation

data-cleanup

Reverse Row Order

Flip the order of rows in your selection top-to-bottom in place, keeping all columns aligned

productivity

Sort Sheets Alphabetically

Reorder every tab in the active workbook A to Z or Z to A in one click

productivity

Split Cell on Delimiter

Split each cell in a column on any delimiter you choose, writing the parts to columns to the right

data-cleanup

Split Full Names Into First and Last

Take a single column of full names and split it into First Name and Last Name columns to the right

productivity

Split Sheet by Column Value

Break one big sheet into many sheets, one per unique value in the column you choose

productivity

Standardize Mixed Date Formats

Convert text dates in M/D/Y, D/M/Y, or Y-M-D format into real Excel dates with a YYYY-MM-DD display

data-cleanup

Swap Two Columns

Swap the data in two columns in one click, supporting both adjacent and Ctrl-clicked non-contiguous columns

productivity

Transpose Rows and Columns

Copy your selection and paste a transposed version (rows become columns and vice versa) at the cell you pick

data-cleanup

Trim Whitespace From All Cells

Strip leading, trailing, and extra internal whitespace from every text cell in your selection

data-cleanup

Unhide All Sheets

Make every hidden and very-hidden sheet in the workbook visible at once

productivity

Unmerge Cells and Fill Down

Unmerge every merged cell in your selection and copy the value into all the cells the merge used to span

data-cleanup

Unprotect All Sheets

Remove sheet protection from every tab of the workbook with a single password prompt

productivity