Say Goodbye to Manual Edits: Use Google Sheet to Auto Capitalize Names and Titles

By Intellezy

September 9, 2024

Learn how to use Google Sheets to auto capitalize names and titles effortlessly. Say goodbye to manual edits and discover easy methods, formulas, and tools.

Photo by Paul Hanaoka on Unsplash

Did you ever have a spreadsheet sent to you by a coworker and then you found out that it’s a mess? There’s a lot of names and titles in your Google Sheet, and they’re all over the place—some in all caps, others in lowercase, and a few with the first letter capitalized. We’ve all been there and it’s a headache to fix manually, especially when you’re dealing with large datasets. Thankfully, we can automate this process and fix these inconsistencies in no time with a simple Google Sheets formula and using Google Apps Script to auto capitalize names and titles. 

Using Google Sheets Formula to Auto Capitalize: UPPER, LOWER, and PROPER

Google Sheets is packed with functions that can make your life easier, and when it comes to auto capitalization, the UPPER, LOWER, and PROPER functions are your best friends. Let’s break them down:

  • UPPER: This function converts all the text in a cell to uppercase. It’s perfect when you need to shout out a brand name or emphasize something in your data.

=UPPER(A2) 

  • LOWER: On the flip side, LOWER converts all the text to lowercase. You might not use this one as often, but it’s handy when you need consistency.
  • =LOWER(A2) 
  • PROPER: This is the golden function for names and titles. It capitalizes the first letter of each word and converts the rest to lowercase. It’s ideal for ensuring that names like "john doe" become "John Doe."
  • =PROPER(A2) 

You can easily automate and fix the capitalization issue on your spreadsheet. But we can also take this one step further!

Auto Capitalization Using Google Apps Script

Using simple formulas is a great quick fix when you’re working with small to medium-sized data but for big ones? Thanks to Google Apps Script, we can automate this process by writing a simple code capitalizes the first letter of each word in a specific column (like your names and titles):

  1. Open your Google Sheet and go to Extensions > Apps Script.
  2. Delete any code in the editor and replace it with the following:

function onEdit(e) {

  var range = e.range;

  var sheet = e.source.getActiveSheet();

  if (range.getColumn() == 1) { // Change the number to the column you want to auto-capitalize

    var cellValue = range.getValue();

    var capitalizedValue = toTitleCase(cellValue);

    range.setValue(capitalizedValue);

  }

}

function toTitleCase(str) {

  return str.replace(

    /\w\S*/g,

    function(txt) {

      return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();

    }

  );

}

3.Save the script, and from now on, whenever you enter text in the specified column, it will automatically capitalize each word.

Going Beyond Basics: Add-ons and Extensions

If you're not familiar with formulas or scripts, or if you simply want something more powerful, consider using Google Sheets add-ons. There are numerous add-ons on Google’s Workspace Marketplace to improve the capabilities of Google Sheets, with some focusing primarily on text formatting and auto capitalization.

Power Tools by Ablebits is a popular add-on that provides a variety of data-cleaning capabilities, including auto-capitalization. It's simple to use, and you can choose whether text should be capitalized across the entire sheet or simply in certain columns.

A simpler alternative to Ablebits’ Power Tools is the Advanced Find & Replace add-on.This works the same way with Power Tool’s auto capitalization with a much more user-friendly and simple interface. It allows you to search for patterns in your data and replace them with uppercase text. This add-on is great for bulk editing and can save you a lot of time when dealing with large datasets.


When Auto Capitalization Goes Wrong: Common Pitfalls

While auto capitalization is extremely helpful, it’s not foolproof. There are a few things you need to watch out for:

  • Acronyms and Initialisms: Functions like PROPER will capitalize the first letter of each word, which can mess up acronyms. For example, “NASA” could turn into “Nasa.” Be mindful of these cases and manually adjust as needed.
  • Names with Special Capitalization: Some names have unusual capitalization, like “McDonald” or “O’Neill.” The PROPER function might not handle these correctly, so you’ll need to double-check and make manual corrections if necessary.
  • Mixed Data Types: If you have numbers or special characters mixed in with your text, auto-capitalization might not work as expected. Ensure your columns are clean and contain only the text you want to capitalize.

Conclusion: Embrace Automation!

Manual data entry and cleanup are a thing of the past. Leverage Google Sheets' auto-capitalize functions, scripts, and add-ons, so you can streamline your workflow and maintain clean, professional-looking data with minimal effort. So go ahead, give these tools a try, and say goodbye to those manual edits for good! 

Upskill and Master Google Sheets Today

Ready to transform the way you work with data in Google Sheets? Explore Intellezy's comprehensive training video library, where you'll find a wealth of expert-led tutorials designed to help you master Google Sheets at your own pace. Whether you're looking to grasp the basics or dive into advanced features, our extensive collection covers everything from essential formulas to complex data analysis. 

Each video is crafted to be engaging and easy to follow, ensuring you gain practical skills that you can immediately apply to your projects. Start learning today and see how Intellezy can empower you to work smarter, save time, and achieve more with Google Sheets. Request a free trial now to get started!


Request Your Free Trial

Explore our complete library to see how you can maximize your team’s efficiency, performance, and productivity.

Privacy Agreement Acceptance
I allow Intellezy to contact me for scheduling and marketing, per its Privacy Policy.