Solved

Excel: Change current formula to count and average

Posted on 2011-02-18
3
275 Views
Last Modified: 2012-05-11
Experts:

I have a formulas that I need to have modifies into a "count" and one formula for an "Average". This is the current formula below

=OFFSET('Executive Rollup Data'!BP60,0,MATCH(TODAY(),'Executive Rollup Data'!BP60:$DT60)-2,1,1)


Thoughts?

Thanks experts!
0
Comment
Question by:Maliki Hassani
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 34930131
Hello LANCE,

that formula simply defines a range, it doesn't do anything with it....

If you want to AVERAGE the values in the range you can enclose it in an AVERAGE function, i..e

=AVERAGE(OFFSET('Executive Rollup Data'!BP60,0,MATCH(TODAY(),'Executive Rollup Data'!BP60:$DT60)-2,1,1))

and you can do the same with COUNT, i.e.

=COUNT(OFFSET('Executive Rollup Data'!BP60,0,MATCH(TODAY(),'Executive Rollup Data'!BP60:$DT60)-2,1,1))

COUNT just counts numbers, if you want to count any entries (numeric or text) switch to COUNTA

regards, barry
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34930148
.....actually, I'm talking rubbish (wouldn't be the first time)

The OFFSET function is only giving you a single value so it won't make much sense to AVERAGE or COUNT that, can you explain what you want to do in a little more detail

regards, barry
0
 

Author Comment

by:Maliki Hassani
ID: 34930223
Your first anser helped thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now