Countif and Sumif with refrence value a Cell on another Sheet in theWorkbook

M

Mike 215

Hi.
I have a workbook for sales information.
'Sheet1'!A3 I want to put a number (2000) to compare
Sheets 2 - 26 G2:G30 is the information I want to look at

Sheets 2-26 F40 Counts the values in G2:G30 that are Greater
Than 'Sheet1'!A3
Sheets 2-26 F41 Counts the values in G2:G30 that are Less
Than 'Sheet1'!A3

Sheets 2-26 G40 Sums the values in G2:G30 that are Greater
Than 'Sheet1'!A3
Sheets 2-26 G41 Sums the values in G2:G30 that are Less Than
'Sheet1'!A3

I can get the answers if I put in the 2000 into each of the following
formulas,
but is very laborsum to do it for 25 worksheets
F40 =COUNTIF(G7:G16,">2000") and G40 =SUMIF(G7:G17,">2000")
F41 =COUNTIF(G7:G16,"<2000") and G41 =SUMIF(G7:G17,"<2000")

All help would be very appreciated
Mike
 
M

Mike 215

Try it like this:

=COUNTIF(G7:G16,">"&Sheet1!A3)
=SUMIF(G7:G17,">"&Sheet1!A3)

--
Biff
Microsoft Excel MVP










- Show quoted text -

These formulas produced 0 value for both Array and Regular Formula.

I am using Excel 2003.
MIke
 
T

T. Valko

F40 =COUNTIF(G7:G16,">2000")
G40 =SUMIF(G7:G17,">2000")

If above formulas worked then these formulas have to work:

=COUNTIF(G7:G16,">"&Sheet1!A3)
=SUMIF(G7:G17,">"&Sheet1!A3)

You're just replacing the hardcoded value 2000 with a cell reference.

--
Biff
Microsoft Excel MVP


Try it like this:

=COUNTIF(G7:G16,">"&Sheet1!A3)
=SUMIF(G7:G17,">"&Sheet1!A3)

--
Biff
Microsoft Excel MVP










- Show quoted text -

These formulas produced 0 value for both Array and Regular Formula.

I am using Excel 2003.
MIke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top