Follow this blog:
RSS
Email Alert

Microsoft Office

Office challenge: How can you force Excel to open a specific workbook?

Takeaway: Here’s the answer to last week’s challenge on omitting 0 values from an averaging expression, along with a new question to test your Excel skills.

Many of us use Excel a lot, but we work with only one or two workbooks. After launching Excel, we open the same workbook we use everyday and go to work. Can you omit the repetitious open task and force Excel to open a specific workbook when it launches?

Last week we asked…

“How can you get Excel to return an average that doesn’t consider 0 values?” The responses were all sound and valuable. You guys really know Excel! Most of you shared the most common solution, a combination of the SUM() and COUNTIF() functions, in the following form:

=SUM(range)/COUNTIF(range,”<>0″)

Joshua.Masson@… Offered an interesting array solution:

=AVERAGE(IF(range<>0,range,”"))

Gordon.cooper@… pointed out that the array accounts for blank cells, whereas the more traditional SUM() expression doesn’t. He’s right, but I agree with gbentley@… in this particular case. Neither expression is superior, but it is important that you know how both expressions respond to blanks and text (any value that doesn’t specifically match the COUNTIF() function’s criteria).

A few of you mentioned Excel 2007’s new AVERAGEIF() function. Interestingly, if you exclude 0 values, this function also ignores blank cells — curious.

Thanks for playing! It’s interesting to see so many different solutions to the same question.

Get IT Tips, news, and reviews delivered directly to your inbox by subscribing to TechRepublic’s free newsletters.

Susan Harkins

About Susan Harkins

Susan Sales Harkins is an IT consultant, specializing in desktop solutions. Previously, she was editor in chief for The Cobb Group, the world's largest publisher of technical journals.

Susan Harkins

Susan Harkins
Susan Sales Harkins is an IT consultant, specializing in desktop solutions. Previously, she was editor in chief for The Cobb Group, the world's largest publisher of technical journals.
9
Comments

Join the conversation!

Follow via:
RSS
Email Alert