image: Download Wizard
A wiard helps you download other databases
R E L A T E D   C O N T E N T
ADVERTISEMENT

Hands on: Dig out facts in Excel with D functions

Explore how Excel’s D-lovely functions can make array formulas redundant

Stephen Wells, Personal Computer World 19 Jun 2008
ADVERTISEMENT

With the hundreds of functions already included, why does Excel also offer a D series like DSUM and DCOUNT?

It’s because when you analyse a table they eliminate the need to create complicated array formulas ­ those are the ones that are entered with Ctrl & Shift & Enter instead of just Enter. Excel adds curly brackets to the entry to acknowledge recognition of the array.

{=COUNT(IF(MONTH(Date)=5,IF(Date=”May”,1,0)))}

for instance could be replaced by

=DCOUNT(Expenses,”Date”,May)

Delightful! Though actually D stands for database.

A simple table recording for a travelling salesperson’s expenses is pretty dull as it stands but, by using a few D functions, a manager can glean useful information. Although the following may seem a lot of work for a small table, similar formulas can provide comparable answers from a big database. For simplicity, all places visited are listed under City although some of them are towns.

First change the worksheet name on the tab to Table. Then it simplifies things if you create a few Names. Highlight the complete table, A1:E15. In the Name box at the left of the Formula Bar type ‘Expenses’. Press Enter.

What’s in a name?
Excel offers various ways of creating Names. For this example we can try a few more. To make a Name out of the label ‘Hotel’ just highlight the Hotel range of the table, including the label, and press Ctrl & Shift & F3. A dialogue will appear with the default position ‘Create Names from values in the top row’. Click OK and the job’s done.

As ever, Excel 2007 includes a more complicated way of creating a Name. Highlight everything in column B, including the label. Press Alt and let go. Some little capital letters appear at the top of the screen. You then type in a sequence of these letters, in upper or lower case. Type ‘m’ and then ‘c’ (without the quotes) and the same dialogue box appears as in the previous paragraph. Press OK as before.

Just to check that you have indeed created a Name, highlight the values, but not the label, in column B and the Name ‘City’ will appear in the Name box.

Here’s another way of doing it. Highlight the values, but not the label, in column C. Right-click the mouse and the New Name dialogue box can be displayed. The Name ‘Meals’ will be at the top and the correct range will be given at the bottom. Again, just press OK. Create a Name for the Travel values using the method of your choice.


All Software Applications
Tags: Spreadsheets

Like this story? Spread the news by clicking below:

Post this to Delicious del.icio.us    Post this to Digg Digg this    Post this to reddit reddit!

Permalink for this story
R E A D E R   C O M M E N T S
M A R K E T P L A C E
Get your free demo of Numara Track-It! 8 - the leading help desk solution for IT related issues.
Make presentations, review documents & share your entire desktop. 30-day free trial! (cc required).
Discover how remote support can fuel your IT business in ways you've never thought of before.
Apply ITIL best practices at your service desk while eliminating integration cost. Learn more here.
WAN based, automated, daily vulnerability assessments. Click here to try and request our whitepapers.
Have your product or service listed here >   
Sponsored links
F E A T U R E D   J O B S
Central London, United Kingdom | MI5 Security Service
Enterprise Modeller - Up to £50,000 + benefits - Central London MI5 is making significant investments to enhance its technology capability and is looking for talented IT professionals to join its technology teams in central ... more >
Shinfield Park, Reading, United Kingdom | Foster Wheeler
Server Support Analyst (Citrix skills required) - Reading Foster Wheeler is a leading international project management, engineering and construction organisation with global construction capabilities working on major projects within upstream oil & gas, midstream & ... more >
Welwyn Garden City, Hertfordshire, United Kingdom | Tesco.com
Database Developer - Welwyn Garden CityWho's behind the world's most successful online retailer? Just over 10 years ago we started Tesco.com (aka Dotcom). Today, we've an incredible 750,000 active customers and sales at just under ... more >
Boston Spa, Leeds, United Kingdom | The British Library
 Application Specialist - £26,196 - £31,348 - Boston SpaExcellent benefits including a civil service pension scheme + online product discounts + childcare discounts + onsite nursery + wide range of social clubs + great staff ... more >
More job opportunities