Excel/Single quote


Hi Bib,

I am having some difficulties with one cell in particular. This cell is my Report_Period cell... I am creating a template to calculate monthly metrics. In this cell people enter in a particular date and that would calculate the metrics below it. (For example, if I wanted to see the # of Critical Problem Reports for the month of June, 2013 I would type in June 31, 2013 into the Report_Period cell and the # of Critical Problem reports for that month would populate... I am not having issues with that formula, but rather having issues with the date I am entering into the Report_Period Cell.

I notice that there is a single quote entered in front of the date if the date is not entered in correctly. For example- if someone typed in 2/31/2013 it would enter in as '2/31/2013 because there isn't 31 days in February.... My metrics will not calculate right if someone puts in the wrong date.

What I would like to know if there is a formula, data validation or any other solution to avoid this from happening? I want to make it so that people cannot enter in the wrong date. Even if there is no concrete way of doing it maybe even how to create a error message that tells them they need to enter it in correctly--- just as long as they know they arenít entering in the correct dates.

Any ideas?

Thank you Bob! I appreciate the help!


Hello Kathryn,

I think you mentioned the solution in your summary, namely Data Validation.

Data Validation has a date type which forces proper data input. You have too put in start and end dates when you setup the DV,these can be some very early and very late dates, or you could be more specific and use dates to control what date is entered.
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts


Bob Phillips


Can - VBA, Functions and formulas, PowerPivot, conditional formatting, data validation, charting


I have been using Excel for in excess of 20 yeras, and I am a 9 year Microsoft MVP

PASS UK Developer Group SQL Soton SQL FAQ

BSc Mathematics

Awards and Honors
Microsoft MVP since 2005

©2017 About.com. All rights reserved.