Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Suzanne
 
Posts: n/a
Default Inconsistent Array Count results

In my CY 2005 timekeeping workbook I have a count function that works fine.
In my identical CY 2006 workbook, the count function is not working fine.

The result I'm trying to get is:
1. If Other!C9 has something in it, count it +
2. If cells in Other!A16:A21 = "MAR" count instances of entries in range
C16:C21

{=(COUNT('Other'!C9))+(IF('Other'!A16:A21="MAR",CO UNT('Other'!C16:C21)))}

I've checked formatting on both sheets ('Other' and the sheet with the
formula) -- everything is identical from one book to the next. And no, I
can't copy the working worksheet over.

These worksheets contain inspection dates for numerous facilities and the
number I'm trying to get is if more than one inspection was conducted during
a given month (in this case, March).
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Suzanne
 
Posts: n/a
Default Inconsistent Array Count results

New discovery...
I'm now sure that the formula stops looking for "MAR" if it encounters
anything else in the list first (e.g., Other!A16="FEB")

So, perhaps the better question is how do I fix this so the data results
are obtained from the entire range of Other!A16:A21?


"Suzanne" wrote:

In my CY 2005 timekeeping workbook I have a count function that works fine.
In my identical CY 2006 workbook, the count function is not working fine.

The result I'm trying to get is:
1. If Other!C9 has something in it, count it +
2. If cells in Other!A16:A21 = "MAR" count instances of entries in range
C16:C21

{=(COUNT('Other'!C9))+(IF('Other'!A16:A21="MAR",CO UNT('Other'!C16:C21)))}

I've checked formatting on both sheets ('Other' and the sheet with the
formula) -- everything is identical from one book to the next. And no, I
can't copy the working worksheet over.

These worksheets contain inspection dates for numerous facilities and the
number I'm trying to get is if more than one inspection was conducted during
a given month (in this case, March).

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Inconsistent Array Count results

Maybe

=COUNT('Other'!C9)+SUMPRODUCT(--(A16:A21="MAR")*ISNUMBER(C16:C21))

"Suzanne" wrote:

In my CY 2005 timekeeping workbook I have a count function that works fine.
In my identical CY 2006 workbook, the count function is not working fine.

The result I'm trying to get is:
1. If Other!C9 has something in it, count it +
2. If cells in Other!A16:A21 = "MAR" count instances of entries in range
C16:C21

{=(COUNT('Other'!C9))+(IF('Other'!A16:A21="MAR",CO UNT('Other'!C16:C21)))}

I've checked formatting on both sheets ('Other' and the sheet with the
formula) -- everything is identical from one book to the next. And no, I
can't copy the working worksheet over.

These worksheets contain inspection dates for numerous facilities and the
number I'm trying to get is if more than one inspection was conducted during
a given month (in this case, March).

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Suzanne
 
Posts: n/a
Default Inconsistent Array Count results

Thanks very much... Now I have to figure out how this formula came up with
the right response (I've not used sumproduct or isnumber before).

"Duke Carey" wrote:

Maybe

=COUNT('Other'!C9)+SUMPRODUCT(--(A16:A21="MAR")*ISNUMBER(C16:C21))

"Suzanne" wrote:

In my CY 2005 timekeeping workbook I have a count function that works fine.
In my identical CY 2006 workbook, the count function is not working fine.

The result I'm trying to get is:
1. If Other!C9 has something in it, count it +
2. If cells in Other!A16:A21 = "MAR" count instances of entries in range
C16:C21

{=(COUNT('Other'!C9))+(IF('Other'!A16:A21="MAR",CO UNT('Other'!C16:C21)))}

I've checked formatting on both sheets ('Other' and the sheet with the
formula) -- everything is identical from one book to the next. And no, I
can't copy the working worksheet over.

These worksheets contain inspection dates for numerous facilities and the
number I'm trying to get is if more than one inspection was conducted during
a given month (in this case, March).

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Inconsistent Array Count results

Try

=--('Other'!C9<"")+SUMPRODUCT(--('Other'!A16:A21,"MAR"),--('Other'!C16:C21)
)

not an array formula


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Suzanne" wrote in message
...
In my CY 2005 timekeeping workbook I have a count function that works

fine.
In my identical CY 2006 workbook, the count function is not working fine.

The result I'm trying to get is:
1. If Other!C9 has something in it, count it +
2. If cells in Other!A16:A21 = "MAR" count instances of entries in range
C16:C21

{=(COUNT('Other'!C9))+(IF('Other'!A16:A21="MAR",CO UNT('Other'!C16:C21)))}

I've checked formatting on both sheets ('Other' and the sheet with the
formula) -- everything is identical from one book to the next. And no, I
can't copy the working worksheet over.

These worksheets contain inspection dates for numerous facilities and the
number I'm trying to get is if more than one inspection was conducted

during
a given month (in this case, March).





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Suzanne
 
Posts: n/a
Default Inconsistent Array Count results

This formula didn't work.

"Bob Phillips" wrote:

Try

=--('Other'!C9<"")+SUMPRODUCT(--('Other'!A16:A21,"MAR"),--('Other'!C16:C21)
)

not an array formula


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Suzanne" wrote in message
...
In my CY 2005 timekeeping workbook I have a count function that works

fine.
In my identical CY 2006 workbook, the count function is not working fine.

The result I'm trying to get is:
1. If Other!C9 has something in it, count it +
2. If cells in Other!A16:A21 = "MAR" count instances of entries in range
C16:C21

{=(COUNT('Other'!C9))+(IF('Other'!A16:A21="MAR",CO UNT('Other'!C16:C21)))}

I've checked formatting on both sheets ('Other' and the sheet with the
formula) -- everything is identical from one book to the next. And no, I
can't copy the working worksheet over.

These worksheets contain inspection dates for numerous facilities and the
number I'm trying to get is if more than one inspection was conducted

during
a given month (in this case, March).




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
Return Array with Array Brad Excel Worksheet Functions 10 November 17th 05 06:45 PM
customise array formula output TUNGANA KURMA RAJU Excel Discussion (Misc queries) 0 October 25th 05 05:15 AM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 12 September 24th 05 10:58 PM
How can you use count with an array formula similar to using sum PhilH Excel Worksheet Functions 3 June 27th 05 08:00 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 01:30 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"