Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default COUNTIF - Three criteria?

I am trying to average cells based on cells on the same row, that fit within
two criteria (dates), from another colum.

Here is a less complicated version of what I have now, without crazy
references.

=SUMPRODUCT(A4:A63=G3)*(A4:A63<=H3)*(BN4:BN63))
Range A4:63 are dates, as are cells G3 and H3 that I use for the criteria.

How can I count the non blank cells, that also are on the same row as cells
that are within the criteria in G3 and H3? (Dates) Right now this formula
only sums.. and I need an average. I figured if I can get an accurate count
that matches the dates, I could just divide.


This is the actual formula... but could be quite confusing with the
referencing to another sheet. I input data into named cells and can change
the sheet, and workbook name at will, and ge tthe data as long as the correct
workbook is open.
=SUMPRODUCT(((INDIRECT("'["&Scorecard&"]"&$B10&"'!"&Dates))=G3)*(((INDIRECT("'["&Scorecard&"]"&$B10&"'!"&Dates))<=H3)*((INDIRECT("'["&Scorecard&"]"&$B10&"'!"&AHT)))))

Thank you for taking the time to check this out for me!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default COUNTIF - Three criteria?

Referring to your first formula, this amendment will allow you to
count the number of non-blank cells that fit within the dates:

=SUMPRODUCT((A4:A63=G3)*(A4:A63<=H3)*(BN4:BN63<" "))

Just use this as the divisor to obtain the average.

Hope this helps.

Pete


On Apr 30, 3:27*pm, Alden wrote:
I am trying to average cells based on cells on the same row, that fit within
two criteria (dates), from another colum.

Here is a less complicated version of what I have now, without crazy
references.

=SUMPRODUCT(A4:A63=G3)*(A4:A63<=H3)*(BN4:BN63))
Range A4:63 are dates, as are cells G3 and H3 that I use for the criteria.

How can I count the non blank cells, that also are on the same row as cells
that are within the criteria in G3 and H3? (Dates) Right now this formula
only sums.. and I need an average. I figured if I can get an accurate count
that matches the dates, I could just divide.

This is the actual formula... but could be quite confusing with the
referencing to another sheet. I input data into named cells and can change
the sheet, and workbook name at will, and ge tthe data as long as the correct
workbook is open.
=SUMPRODUCT(((INDIRECT("'["&Scorecard&"]"&$B10&"'!"&Dates))=G3)*(((INDIREC*T("'["&Scorecard&"]"&$B10&"'!"&Dates))<=H3)*((INDIRECT("'["&Scorecard&"]"&$*B10&"'!"&AHT)))))

*Thank you for taking the time to check this out for me!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default COUNTIF - Three criteria?

That did the trick, thank you!!!

"Pete_UK" wrote:

Referring to your first formula, this amendment will allow you to
count the number of non-blank cells that fit within the dates:

=SUMPRODUCT((A4:A63=G3)*(A4:A63<=H3)*(BN4:BN63<" "))

Just use this as the divisor to obtain the average.

Hope this helps.

Pete


On Apr 30, 3:27 pm, Alden wrote:
I am trying to average cells based on cells on the same row, that fit within
two criteria (dates), from another colum.

Here is a less complicated version of what I have now, without crazy
references.

=SUMPRODUCT(A4:A63=G3)*(A4:A63<=H3)*(BN4:BN63))
Range A4:63 are dates, as are cells G3 and H3 that I use for the criteria.

How can I count the non blank cells, that also are on the same row as cells
that are within the criteria in G3 and H3? (Dates) Right now this formula
only sums.. and I need an average. I figured if I can get an accurate count
that matches the dates, I could just divide.

This is the actual formula... but could be quite confusing with the
referencing to another sheet. I input data into named cells and can change
the sheet, and workbook name at will, and ge tthe data as long as the correct
workbook is open.
=SUMPRODUCT(((INDIRECT("'["&Scorecard&"]"&$B10&"'!"&Dates))=G3)*(((INDIRECÂ*T("'["&Scorecard&"]"&$B10&"'!"&Dates))<=H3)*((INDIRECT("'["&Scorecard&"]"&$Â*B10&"'!"&AHT)))))

Thank you for taking the time to check this out for me!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default COUNTIF - Three criteria?

You're welcome - thanks for feeding back.

Pete

On Apr 30, 6:01*pm, Alden wrote:
That did the trick, thank you!!!

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
Using Countif two criteria Mifty Excel Discussion (Misc queries) 5 November 19th 07 11:35 AM
Countif with more than one criteria Joco Excel Discussion (Misc queries) 2 June 14th 07 11:38 AM
countif but have two criteria Ani63 New Users to Excel 14 September 18th 06 09:28 PM
Countif using format criteria not number criteria? Rumbla76 Excel Worksheet Functions 1 April 20th 05 05:38 AM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM


All times are GMT +1. The time now is 10:32 PM.

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"