Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default HELP: Averaging values if they meet certain criteria

Hi,

I have two worksheets and I'm trying to enter a function into the second
worksheet based on data in the first. They are based on recruitment activity,
e.g. how long it takes to fill a vacancy, the candidate source, etc.

Column P, "Offered" is simply a date (format d-mm-yy).
Column S, "Time to Fill" is a "Days360" function based of the date the
vacancy was received and the "Offered" date.

In the second workshop I want to create a function that will calculate the
average Time to Fill for any role offered in a particular month.

Please can someone help me! If necessary I can send you the spreadseet to
review.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default HELP: Averaging values if they meet certain criteria

You can use an array* formula like:

=AVERAGE(IF((condition_1)*(condition_2),Sheet1!S$2 :S$100))

where condition_1 relates to your roles and condition_2 relates to the
month. I don't know what column you use to record the roles, but
assuming it is column D, then condition_1 would be written as (Sheet1!D
$2:D$100=A2) where A2 is the cell on your second sheet where you can
enter the role you are interested in. Condition_2 can be written as
(MONTH(Sheet1!P$2:P$100)=9) if you are interested in September, or you
could put 9 into B2 of the second sheet and then refer to B2.

*As this is an array function then once you have typed it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER rather than the
usual ENTER. If you do this correctly then Exel will wrap curly braces
{ } around the formula when viewed in the formula bar - you must not
type these yourself.

You details are a bit scant, but adjust all the cell and sheet
references to suit your particular situation.

Hope this helps.

Pete

On Oct 16, 12:11 pm, KellyF wrote:
Hi,

I have two worksheets and I'm trying to enter a function into the second
worksheet based on data in the first. They are based on recruitment activity,
e.g. how long it takes to fill a vacancy, the candidate source, etc.

Column P, "Offered" is simply a date (format d-mm-yy).
Column S, "Time to Fill" is a "Days360" function based of the date the
vacancy was received and the "Offered" date.

In the second workshop I want to create a function that will calculate the
average Time to Fill for any role offered in a particular month.

Please can someone help me! If necessary I can send you the spreadseet to
review.

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default HELP: Averaging values if they meet certain criteria

Hi Pete,

I'm sorry but I've entered this formula

=AVERAGE(IF((Offered,"=1-Jun-06")*(Offered,"=1-Jul-06"),TTF))

and then hit ctrl+shift+enter however it tells me I have an error in it.

Offered is the range of dates and TTF is the range of number values that I
want to average (per month).

What have I don't wrong?


"Pete_UK" wrote:

You can use an array* formula like:

=AVERAGE(IF((condition_1)*(condition_2),Sheet1!S$2 :S$100))

where condition_1 relates to your roles and condition_2 relates to the
month. I don't know what column you use to record the roles, but
assuming it is column D, then condition_1 would be written as (Sheet1!D
$2:D$100=A2) where A2 is the cell on your second sheet where you can
enter the role you are interested in. Condition_2 can be written as
(MONTH(Sheet1!P$2:P$100)=9) if you are interested in September, or you
could put 9 into B2 of the second sheet and then refer to B2.

*As this is an array function then once you have typed it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER rather than the
usual ENTER. If you do this correctly then Exel will wrap curly braces
{ } around the formula when viewed in the formula bar - you must not
type these yourself.

You details are a bit scant, but adjust all the cell and sheet
references to suit your particular situation.

Hope this helps.

Pete

On Oct 16, 12:11 pm, KellyF wrote:
Hi,

I have two worksheets and I'm trying to enter a function into the second
worksheet based on data in the first. They are based on recruitment activity,
e.g. how long it takes to fill a vacancy, the candidate source, etc.

Column P, "Offered" is simply a date (format d-mm-yy).
Column S, "Time to Fill" is a "Days360" function based of the date the
vacancy was received and the "Offered" date.

In the second workshop I want to create a function that will calculate the
average Time to Fill for any role offered in a particular month.

Please can someone help me! If necessary I can send you the spreadseet to
review.

Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default HELP: Averaging values if they meet certain criteria

this should work:

For an average use a combination of SUMIF(range, condition) / countif(rango,
condition).

This will calculate a sum based on certain criteria, and also a coun of the
occurances of that criteria, hence an average using divided by in the middle
:).

Let me know if ya want further explanation.

"KellyF" wrote:

Hi,

I have two worksheets and I'm trying to enter a function into the second
worksheet based on data in the first. They are based on recruitment activity,
e.g. how long it takes to fill a vacancy, the candidate source, etc.

Column P, "Offered" is simply a date (format d-mm-yy).
Column S, "Time to Fill" is a "Days360" function based of the date the
vacancy was received and the "Offered" date.

In the second workshop I want to create a function that will calculate the
average Time to Fill for any role offered in a particular month.

Please can someone help me! If necessary I can send you the spreadseet to
review.

Thanks!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ranking Values that Meet a Certain Criteria [email protected] Excel Discussion (Misc queries) 3 March 19th 07 08:43 PM
add numbers if they meet criteria...? Dan B Excel Worksheet Functions 2 January 31st 07 11:47 PM
Sum range of values that meet date criteria Ed Wurster Excel Discussion (Misc queries) 2 April 11th 05 08:06 PM
Counting Values that meet another cells criteria Jess Excel Worksheet Functions 1 March 8th 05 01:42 AM
Sum the values of one column, only if they meet certain criteria . Todd Pippin Excel Worksheet Functions 0 February 8th 05 04:37 PM


All times are GMT +1. The time now is 12:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"