Ozgrid, Experts in Microsoft Excel Spreadsheets
Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com
Learn how to create Excel dashboards.

Prevent Blanks in an Excel Table/List

Information Helpful? Why Not Donate.

TRY OUT: Smart-VBA | Code-VBA | Analyzer-XL | Downloader-XL | Trader-XL | More Free Downloads.. Best Value: Finance Templates Bundle

Excel: Prevent Blanks in an Excel Table/List. Stops Blanks in Excel

Got any Excel Questions? Free Excel Help .

Stop Blanks in Excel Download Working Example

With the aid of Data Validation we can ensure a table, or list cannot have blank/missing entries. For example, let's use a simple example that only consists of a 2 column table (the number can be anything up to 256). Suppose you have a heading of "Name" in A1 and "Department" in B1. Underneath these headings users are supposed to fill out both the name and their associated departments and not have a department without a name, or a name without a department.

Select A3:B100 and ensure your selection Start s from cell A3. Now go to Data>Validation and choose the "Custom" from "Allow:" and then in the "Formula" box add the formula below;=AND(COUNTA($A$2:$A2)=ROW()-2,COUNTA($B$2:$B2)=ROW()-2)

**It is very important to note the Absolute of the $A$2 and $B$2 and the Relative Row/ Absolute Column of $A2 and $B2**

Select the "Error Alert" page and type an applicable error message the user will see if they leave blanks in the Table. Ensure the "Error style" is set to "Stop" and click OK.

The Validation applied will ensure that all entries (in the Table A2:B100) have both a name and a department.

Download Working Example

QUICK TIP: FILL BLANKS

Let's say you have a list of entries in column A and within the list you have many blank cells. Here is a quick way to fill those blanks with the value of the cell above. Select column A, then push F5 and click Special then check the Blanks option and click OK. You should now have all blanks selected. Now push Equals (=) then the Up arrow and finally holding down the Ctrl key push Enter.

Or, you can download a free Add-in from us here .

New & Less Than You Think: List Managers | Working With Excel Sheets In VBA | Excel Charting Lessons | Delete rows by condition | TRY OUT: Smart-VBA | Code-VBA | Analyzer-XL | Downloader-XL | Trader-XL | More Free Downloads.. Best Value: Finance Templates Bundle

Excel Dashboard Reports & Excel Dashboard Charts 50% Off Become an ExcelUser Affiliate & Earn Money

Special! Free Choice of Complete Excel Training Course OR Excel Add-ins Collection on all purchases totaling over $64.00. ALL purchases totaling over $150.00 gets you BOTH! Purchases MUST be made via this site. Send payment proof to special@ozgrid.com 31 days after purchase date.


Instant Download and Money Back Guarantee on Most Software

Try out: Analyzer XL | Downloader XL | Smart VBA | Trader XL Pro (best value) | ConsoXL | MergeXL | O2OLAP for Excel | MORE>>

Excel Trader Package Technical Analysis in Excel With $139.00 of FREE software!

Microsoft ® and Microsoft Excel ® are registered trademarks of Microsoft Corporation. OzGrid is in no way associated with Microsoft

GIVE YOURSELF OR YOUR COMPANY 24/7 MICROSOFT EXCEL SUPPORT & QUESTIONS