Here is a familiar problem:
You create a workbook to track some data. You ask your staff to fill up the data. Almost all the input data is fine, except the date column. Every one types dates in their own format.
Here is a fun, simple & powerful way to warn your users when they enter wrong dates.
Use conditional formatting
Here is a quick demo:

How to ensure cleaner dates with conditional formatting?
- Let’s say your users need to enter date input in cell C3.
- Select C3 and go to Home > Conditional Formatting > New Rule
- Select the rule type as “Use a formula…”
- Use a formula like this: =ISERROR(DAY($C$3))
- Set up formatting to highlight incorrect dates
- Done
Explanation for the formula:
We will assume that C3 contains a valid date and try to do some sort of date operation on it, like finding the day of month using DAY($C$3). If this returns an error, that means we have an invalid date.
So to check the error status, we use ISERROR().
A caveat: dates are numbers
Since Excel dates are numbers, technically, your users can type a number in C3 (like 7) and our conditional formatting won’t trigger the error.
Bonus tip: Adding conditional formatting to an entire column
To add conditional formatting to an entire column,
- Let’s say the date inputs go to column C, starting with C3 as first input
- Select all the cells in column C that will have dates
- Set up the conditional formatting with below rule:
- =ISERROR(DAY($C3))
Download example workbook
Click here to download a simple example workbook with this technique. Examine the conditional formatting in C3 & D3 to learn more.
Do you use CF to nudge your users in right direction?
Excel Conditional Formatting is one of my all time favourite features. I use liberal amounts of CF on all my Excel recipes. I think CF makes a great ingredient if you are collecting user inputs.
What about you? Do you use conditional formatting to make sure your inputs are clean? What techniques do you use? Please share your thoughts and tips in the comments area.
Here are few more awesome ways to use conditional formatting:
How to ensure cleaner dates with conditional formatting?












11 Responses to “Fix Incorrect Percentages with this Paste-Special Trick”
I've just taught yesterday to a colleague of mine how to convert amounts in local currency into another by pasting special the ROE.
great thing to know !!!
Chandoo - this is such a great trick and helps save time. If you don't use this shortcut, you have to take can create a formula where =(ref cell /100), copy that all the way down, covert it to a percentage and then copy/paste values to the original column. This does it all much faster. Nice job!
I was just asking peers yesterday if anyone know if an easy way to do this, I've been editing each cell and adding a % manually vs setting the cell to Percentage for months and just finally reached my wits end. What perfect timing! Thanks, great tip!
If it's just appearance you care about, another alternative is to use this custom number format:
0"%"
By adding the percent sign in quotes, it gets treated as text and won't do what you warned about here: "You can not just format the cells to % format either, excel shows 23 as 2300% then."
Dear Jon S. You are the reason I love the internet. 3 year old comments making my life easier.
Thank you.
Here is a quicker protocol.
Enter 10000% into the extra cell, copy this cell, select the range you need to convert to percentages, and use paste special > divide. Since the Paste > All option is selected, it not only divides by 10000% (i.e. 100), it also applies the % format to the cells being pasted on.
@Martin: That is another very good use of Divide / Multiply operations.
@Tony, @Jody: Thank you 🙂
@Jon S: Good one...
@Jon... now why didnt I think of that.. Excellent
Thank You so much. it is really helped me.
Big help...Thanks
Thanks. That really saved me a lot of time!
Is Show Formulas is turned on in the Formula Ribbon, it will stay in decimal form until that is turned off. Drove me batty for an hour until I just figured it out.