You are here:

Excel/Default Value,Data Validation, ruling for cell in excel

Advertisement


Question
Hi Mr. Gulshan,
Good Day!!!
I am in the process of creating a reporting template for a team in excel. In which I wish to include certain rules to the cells, they are:
1. The default value should appear as zero in each cell.
2. The users are allowed only to key in the numbers which are greater than or equal to zero.
3. If the user delete content in the cell the cell should automatically pick zero as a default value.

Can you please guide me with your expert advise

Answer
Hi Shilpa,

For requirement no. 2, you can use something called data validation. You need to select the cell and click on Data - Validation menu. The dialog box that appears gives you various options to control the data input in the cell.

For requirements 1&3, excel doesn't have a direct formula, however you can write a short macro to do that job.
Let me know if you are comfortable using macros and I'll write one and send it across to you.

Hope this helps,
Gulshan.
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

Excel

All Answers


Answers by Expert:


Ask Experts

Volunteer


GULSHAN PURSWANI

Expertise

I can answer questions related to the following topics: 1. MS Excel - Creating and Linking Formulae, Running Pivot Tables, Vlookup etc. 2. Macros / VBA - Creating Macros to do specific jobs. Importing / Exporting / Validating Data in excel through Macros.

Experience

I've been working on excel for over 10 years and on VBA macros for over 3 years now.

Education/Credentials
Bachelor of Commerce, Chartered Accountant from The Institute of Chartered Accountants of India

©2016 About.com. All rights reserved.