» Disregarding blank cells when performing calculations on a range.
CATEGORY - Excel Formula and Function
VERSION - All Microsoft Excel Versions
Listed in Range A1:C13 are the totals of sales made by each salesman per date.
A blank cell in column E, indicates that no sales were made by that salesman on that date.
How could we calculate the averaged total of sales per each date and per each salesman, disregarding blank cells?
Solution:
Using the AVERAGE and IF functions in an Array Formula, such as this:
{=AVERAGE(IF($A$5:$A$13=A17,IF($B$5:$B$13=B17,IF($C$5:$C$13<>"""",$C$5:$C$13))))}
(To create Array formula: select the cell after typing the formula,press F2 and then press Ctrl+Shift+Enter)
Example:
Range1
Date___________ Salesman ID_____Total Sales
10/04/2005_____ 1_______________$10,000
10/04/2005_____ 2_______________$8,000
10/04/2005_____ 3_______________
11/04/2005_____ 1_______________
11/04/2005_____ 2_______________$5,000
11/04/2005_____ 3_______________$12,000
10/04/2005_____ 1_______________$9,000
12/04/2005_____ 2_______________
12/04/2005_____ 3_______________$12,500
Range2
Date___________Salesman ID______Averaged Sales
10/04/2005_____1________________$9,500
11/04/2005_____2________________$5,000
12/04/2005_____3________________$12,500

Book Store:
Recommended Books:
- Special Edition Using Microsoft Word 2002
- Real Estate Loopholes: Secrets of Successful Real Estate Investing
- The Financial Numbers Game: Detecting Creative Accounting Practices
- Quantitative Methods in Derivatives Pricing: An Introduction to Computational Finance
- Not-for-Profit Accounting Made Easy
- Microsoft Access Version 2002 Step by Step
Reply: WesZalewski
Alan
Hi WesZalewski,
[QUOTE=WesZalewski]Unclear.
What is in cells A17, B17 and what column E has to do with anything in this example? Blank cells seem to be in column C.
If range two shows results then the avarage for Salesman ID 3 should be 12,250.
Please, clarify.[/QUOTE]It appears to me that part of the formula is missing in the example.
Have you reported this using the 'report post' function?
I don't want to double report it, so I have not done so, but you can do that yourself, by clicking on the botton.
HTH,
Alan.


What is in cells A17, B17 and what column E has to do with anything in this example? Blank cells seem to be in column C.
If range two shows results then the avarage for Salesman ID 3 should be 12,250.
Please, clarify.