A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using a cell reference for Sumif Criteria



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2004, 05:11 PM
Kevin
external usenet poster
 
Posts: n/a
Default Using a cell reference for Sumif Criteria

I am using the following formula to get an average for a
column of data where the values are greater than or equal
to the value 5510.

=SUMIF(C18:C80,"=5510",C18:C80)/COUNTIF(C18:C80,"=5510")

How can I update the formula so that instead of using a
hardcoded value, the formula uses a cell reference for the
criteria?
  #2  
Old May 25th, 2004, 05:32 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Using a cell reference for Sumif Criteria

Try

"="&Cell


=SUMIF(C18:C80,"="&B2,C18:C80)/COUNTIF(C18:C80,"="&B2)

or

=AVERAGE(IF(C18:C80=B2,C18:C80))

the last one entered with ctrl + shift & enter

--


For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom

"Kevin" wrote in message
...
I am using the following formula to get an average for a
column of data where the values are greater than or equal
to the value 5510.

=SUMIF(C18:C80,"=5510",C18:C80)/COUNTIF(C18:C80,"=5510")

How can I update the formula so that instead of using a
hardcoded value, the formula uses a cell reference for the
criteria?



  #3  
Old May 25th, 2004, 05:34 PM
Domenic
external usenet poster
 
Posts: n/a
Default Using a cell reference for Sumif Criteria

Hi Kevin,

Assuming that the cell you want to reference is A1, try,

=SUMIF(C18:C80,"="&A1)/COUNTIF(C18:C80,"="&A1)

or, alternatively, you can try,

=AVERAGE(IF(C18:C80=A1,C18:C80)), to be entered using CTRL+SHIFT+ENTER

Hope this helps!

In article ,
"Kevin" wrote:

I am using the following formula to get an average for a
column of data where the values are greater than or equal
to the value 5510.

=SUMIF(C18:C80,"=5510",C18:C80)/COUNTIF(C18:C80,"=5510")

How can I update the formula so that instead of using a
hardcoded value, the formula uses a cell reference for the
criteria?

  #4  
Old May 25th, 2004, 06:20 PM
external usenet poster
 
Posts: n/a
Default Using a cell reference for Sumif Criteria

Cool...these are great options!

Thanks for your help Dominic and Peo!
-----Original Message-----
Hi Kevin,

Assuming that the cell you want to reference is A1, try,

=SUMIF(C18:C80,"="&A1)/COUNTIF(C18:C80,"="&A1)

or, alternatively, you can try,

=AVERAGE(IF(C18:C80=A1,C18:C80)), to be entered using

CTRL+SHIFT+ENTER

Hope this helps!

In article ,
"Kevin" wrote:

I am using the following formula to get an average for

a
column of data where the values are greater than or

equal
to the value 5510.

=SUMIF(C18:C80,"=5510",C18:C80)/COUNTIF

(C18:C80,"=5510")

How can I update the formula so that instead of using a
hardcoded value, the formula uses a cell reference for

the
criteria?

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:01 PM.


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