Articles in the Featured Category
Featured, General, Tips and Tricks »
This post is in continuation to my previous post on Excel Keyboard Shortcut. This time I have chosen shortcuts for ‘Formatting’ commands.
- Activate the Formatting dialog box: The shortcut key for this command is CTRL+1. This command will activate the Formatting dialog box which can then be used for applying any kind of formatting to the selected cells.
Featured, Lookup Functions »
Today I am starting to write about Lookup functions, that include VLookUp(), HLookUp(), InDirect(), etc. Lookup functions are one of the most useful and in-demand functions.
These functions are used in lot of applications, their demand in today’s market is very high, one of which is financial industry. And not just financial research, these functions are very famous in other industries also, at all those places where there is high use of Excel spreadsheets.
Advanced Topics, Featured, Queries, Tips and Tricks »
Recently one of the readers sent me an email with a question on data validation issue that most of us would have faced. I’ll call this person as Tom as this person has asked for anonymity of his identity.
As you remember, a cell can be validated for numerous things, text entries, numerical ranges, pre-defined lists. etc. [Refresh your data validation concepts here].
Featured, Queries »
Excel Basics, Featured »
Randbetween() functions is available in Excel 2007 (and is not there in Excel 2003). Rand() is used to generate a random number between the range of 0 to1 and is a decimal number. Whereas, Randbetween() returns random integers between the range provided by the user.
Advanced Topics, Featured »
Concept of Data Validation?
Data Validation is a tool provided by MS Excel that allows you to validate data that is entered by a user. The validation happens once the user enters data and hits the return key (enter key).
Why should I use data validation?
Data validation, though a simple tool, can be of lots of help. It’s very core function (of validating data) can be applied to many other tasks. Here are a few things that can be done using data validation tool:
Advanced Topics, Featured »
I have discussed basic concept of array functions, its advantages and disadvantages in my previous post. Now, let us now talk about an example where we generally get to use Array Functions.
Example:
In our example, we have some data related to sales of 3 products – Product A, Product B and Product C. The sales force is active in all 4 geographic regions – East, West, North and South. Now we need create a small report (just 4 cells of data) that will summarize the whole data. This report will have subtotals by Region and Product. Follow the below steps for this:
- Create an Excel spreadsheet with some sample data (alternatively you can download this spreadsheet) which has these columns – Region in column A, Product in column B and Sales in column C. Also, fill some sample data for these 3 columns
- Create a small matrix table with columns titled as each product and rows titled as each region. The matrix should look something like this:
Let us now try to formulate one single formula for subtotals that can be used with all the cells in the matrix. Here is the formula that I used for calculating the totals for each cell in the above matrix:
=SUM(IF($A$2:$A$29=$E6,IF($B$2:$B$29=F$5,$C$2:$C$29,0),0))
..and i entered this function as an array function, i.e. using CTRL+Shift+Enter
Let us understand what does each part of the formula does.
- =SUM(IF($A$2:$A$29=$E6,IF($B$2:$B$29=F$5,$C$2:$C$29,0),0))This portion of function gets executed first. This part checks if the Product column has ‘Product A’ in it. If yes, it lets the first cell go for next level of validation (next step of calculation), If the cell does not have ‘Product A’, then 0 value is passed on to next level
Note: I hope you remember I discussed in my previous post that array functions process each cell at a time. To refresh your concept read more about Array Functions here and here. - =SUM(IF($A$2:$A$29=$E6,IF($B$2:$B$29=F$5,$C$2:$C$29,0),0))
Similar to previous part of the formula, this part check the cell for Region. If the cell has region as ‘East’. If true, then the cell is passed on to next level of formula, i.e. Sum() function. If the cell does not have ‘East’, then 0 value is passed on to next level - =SUM(IF($A$2:$A$29=$E6,IF($B$2:$B$29=F$5,$C$2:$C$29,0),0))
Here, the value passed from previous 2 steps gets accumulated and is added up. (Learn more about Sum() Function and other Math Functions)
Now, you copy and paste this formula to other cells of the matrix and you will get the required results.
Note: The formula will take required cells from the column and row heads for validation by itself. This has been done through using ‘Relative Reference’ technique of writing formula in Excel. I will take this up in my later posts.
