Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
LWS
 
Posts: n/a
Default How to create a formula in Excel

I need to create a formula that will average numbers in one column, based on
data in another column.
example:
AVERAGE H4:H362 IF C4:C362=M.2FL
or
AVERAGE H4:H362 IF C4:C362=M.MED

Thanks for your help
  #2   Report Post  
Ted Metro
 
Posts: n/a
Default

You can use a CSE (control-shift-enter) average, but I don't know if it can
be done with two conditions.

Of course if you want to be really basic you could do two sumif formulas and
two countif formulas add each of the two pairs and then divide the sums by
counts.

"LWS" wrote:

I need to create a formula that will average numbers in one column, based on
data in another column.
example:
AVERAGE H4:H362 IF C4:C362=M.2FL
or
AVERAGE H4:H362 IF C4:C362=M.MED

Thanks for your help

  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try the array formula
=AVERAGE(IF(C4:C362="M.2FL",H4:H362))

comitted with CTRL+SHIFT+ENTER

--
Regards
Frank Kabel
Frankfurt, Germany
"LWS" schrieb im Newsbeitrag
...
I need to create a formula that will average numbers in one column, based
on
data in another column.
example:
AVERAGE H4:H362 IF C4:C362=M.2FL
or
AVERAGE H4:H362 IF C4:C362=M.MED

Thanks for your help



  #4   Report Post  
Ted Metro
 
Posts: n/a
Default

just to clarify, it would look something like this for your M.2FL example --

=sumif(c4:c362,"M.2FL",h4:h362)/countif(c4:c362,"M.2FL")

your M.MED example would be the same, just substituting in M.MED for M.2FL.

"Ted Metro" wrote:

You can use a CSE (control-shift-enter) average, but I don't know if it can
be done with two conditions.

Of course if you want to be really basic you could do two sumif formulas and
two countif formulas add each of the two pairs and then divide the sums by
counts.

"LWS" wrote:

I need to create a formula that will average numbers in one column, based on
data in another column.
example:
AVERAGE H4:H362 IF C4:C362=M.2FL
or
AVERAGE H4:H362 IF C4:C362=M.MED

Thanks for your help

  #5   Report Post  
LWS
 
Posts: n/a
Default

WOW !!!! it works !!! I have been fighting with this, and other variations,
for weeks, several people in my office have also been fighting it. Thank you
so much !!!

Frank, one question, I have never used the "comitted with CTRL+SHIFT+ENTER"
before, how does that work, and how can I apply it with other formulas? Thank
you very much.
Lisa

"Frank Kabel" wrote:

Hi
try the array formula
=AVERAGE(IF(C4:C362="M.2FL",H4:H362))

comitted with CTRL+SHIFT+ENTER

--
Regards
Frank Kabel
Frankfurt, Germany
"LWS" schrieb im Newsbeitrag
...
I need to create a formula that will average numbers in one column, based
on
data in another column.
example:
AVERAGE H4:H362 IF C4:C362=M.2FL
or
AVERAGE H4:H362 IF C4:C362=M.MED

Thanks for your help






  #6   Report Post  
LWS
 
Posts: n/a
Default

Ted,

I was planning on using this formula as a template. I also need to calculate
minimum and maximum completion times based on the same variables. Will this
formula work for that, as well?

Thanks,
Lisa

"Ted Metro" wrote:

just to clarify, it would look something like this for your M.2FL example --

=sumif(c4:c362,"M.2FL",h4:h362)/countif(c4:c362,"M.2FL")

your M.MED example would be the same, just substituting in M.MED for M.2FL.

"Ted Metro" wrote:

You can use a CSE (control-shift-enter) average, but I don't know if it can
be done with two conditions.

Of course if you want to be really basic you could do two sumif formulas and
two countif formulas add each of the two pairs and then divide the sums by
counts.

"LWS" wrote:

I need to create a formula that will average numbers in one column, based on
data in another column.
example:
AVERAGE H4:H362 IF C4:C362=M.2FL
or
AVERAGE H4:H362 IF C4:C362=M.MED

Thanks for your help

  #7   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
this is an array formula. See:
http://www.cpearson.com/excel/array.htm

--
Regards
Frank Kabel
Frankfurt, Germany
"LWS" schrieb im Newsbeitrag
...
WOW !!!! it works !!! I have been fighting with this, and other
variations,
for weeks, several people in my office have also been fighting it. Thank
you
so much !!!

Frank, one question, I have never used the "comitted with
CTRL+SHIFT+ENTER"
before, how does that work, and how can I apply it with other formulas?
Thank
you very much.
Lisa

"Frank Kabel" wrote:

Hi
try the array formula
=AVERAGE(IF(C4:C362="M.2FL",H4:H362))

comitted with CTRL+SHIFT+ENTER

--
Regards
Frank Kabel
Frankfurt, Germany
"LWS" schrieb im Newsbeitrag
...
I need to create a formula that will average numbers in one column,
based
on
data in another column.
example:
AVERAGE H4:H362 IF C4:C362=M.2FL
or
AVERAGE H4:H362 IF C4:C362=M.MED

Thanks for your help






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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM
How do I create a formula in Excel that will countif or sumif bef. bkclark Excel Worksheet Functions 4 November 10th 04 05:30 PM
How do I create a multi formula IF function in Excel? Wazza Excel Worksheet Functions 8 November 8th 04 09:25 PM
how do i create a blank cell in excel using a formula Tosh Excel Worksheet Functions 1 November 2nd 04 04:22 PM


All times are GMT +1. The time now is 09:07 AM.

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

About Us

"It's about Microsoft Excel"