Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 145
Default Can't seem to get my Array formula to work................

The Design

I have the array formula below which is designed to capture all data entries
between a specific time period (2007), look only at entires entitled "CIC
(column c reference), and further look only at those 2007 CIC entires that
show an "improvement" score (scores greater than 0). The improvement scores
are identified in column k.

The Formula

=SUMPRODUCT(--('Q 3 + 7'!A4:A500=DATE(2007,1,1)),--('Q 3 +
7'!A4:A500<=DATE(2007,12,31)),--('Q 3 + 7'!C4:C500="CIC"),--('Q 3 +
7'!K4:K5000))

The Problem

I keep getting an outcome from this formula of "0", and I know that isn't
accurate. On my sheet entitled "Q3+7" I have 112 clients who show improvement
on column K, so I know that "0" isn't the accurate answer. That means I've
made a formula error I suspect.

Thanks in advance for any suggestions. I'm sure it is a minor "tweak", but I
just can't figure it out....Dan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Can't seem to get my Array formula to work................

Are you sure all of the dates you are testing really are dates? Try this

Enter
ISTEXT(A1) where A1 is a cell reference for a date field. If you get TRUE,
they are text, not dates. You can fix that by using TEXT TO COLUMNS and
formatting the column as a date. If you need more assistance, come back and
someone should be able to help.
--
HTH,
Barb Reinhardt



"Dan the Man" wrote:

The Design

I have the array formula below which is designed to capture all data entries
between a specific time period (2007), look only at entires entitled "CIC
(column c reference), and further look only at those 2007 CIC entires that
show an "improvement" score (scores greater than 0). The improvement scores
are identified in column k.

The Formula

=SUMPRODUCT(--('Q 3 + 7'!A4:A500=DATE(2007,1,1)),--('Q 3 +
7'!A4:A500<=DATE(2007,12,31)),--('Q 3 + 7'!C4:C500="CIC"),--('Q 3 +
7'!K4:K5000))

The Problem

I keep getting an outcome from this formula of "0", and I know that isn't
accurate. On my sheet entitled "Q3+7" I have 112 clients who show improvement
on column K, so I know that "0" isn't the accurate answer. That means I've
made a formula error I suspect.

Thanks in advance for any suggestions. I'm sure it is a minor "tweak", but I
just can't figure it out....Dan

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Can't seem to get my Array formula to work................

Hi,

While Sumproduct is an array it doesn't have to be array enter. having said
that your formula works fine for me so be suspicious of your dates, are they
really dates or text that look like dates. Likewise your numbers in Column K

with CIC check for rogue spaces

Mike

"Dan the Man" wrote:

The Design

I have the array formula below which is designed to capture all data entries
between a specific time period (2007), look only at entires entitled "CIC
(column c reference), and further look only at those 2007 CIC entires that
show an "improvement" score (scores greater than 0). The improvement scores
are identified in column k.

The Formula

=SUMPRODUCT(--('Q 3 + 7'!A4:A500=DATE(2007,1,1)),--('Q 3 +
7'!A4:A500<=DATE(2007,12,31)),--('Q 3 + 7'!C4:C500="CIC"),--('Q 3 +
7'!K4:K5000))

The Problem

I keep getting an outcome from this formula of "0", and I know that isn't
accurate. On my sheet entitled "Q3+7" I have 112 clients who show improvement
on column K, so I know that "0" isn't the accurate answer. That means I've
made a formula error I suspect.

Thanks in advance for any suggestions. I'm sure it is a minor "tweak", but I
just can't figure it out....Dan

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 793
Default Can't seem to get my Array formula to work................

I think you need to put an IF around all comparisons like ('Q 3 +
7'!A4:A500=DATE(2007,1,1)) like given below;
IF('Q 3 + 7'!A4:A500=DATE(2007,1,1),1,0)

I checked with the following;
=SUMPRODUCT(IF((A23:A26=DATE(2007,1,1)),1,0),IF(( B23:B26=DATE(2007,1,1)),1,0))

where I put From dates in A23:26, To dates in B23:26...

I did that and got the expected result.

The way you have written multiplies TRUE with TRUE or FALSE. I am not sure
how Excel handles this.

"Dan the Man" wrote:

The Design

I have the array formula below which is designed to capture all data entries
between a specific time period (2007), look only at entires entitled "CIC
(column c reference), and further look only at those 2007 CIC entires that
show an "improvement" score (scores greater than 0). The improvement scores
are identified in column k.

The Formula

=SUMPRODUCT(--('Q 3 + 7'!A4:A500=DATE(2007,1,1)),--('Q 3 +
7'!A4:A500<=DATE(2007,12,31)),--('Q 3 + 7'!C4:C500="CIC"),--('Q 3 +
7'!K4:K5000))

The Problem

I keep getting an outcome from this formula of "0", and I know that isn't
accurate. On my sheet entitled "Q3+7" I have 112 clients who show improvement
on column K, so I know that "0" isn't the accurate answer. That means I've
made a formula error I suspect.

Thanks in advance for any suggestions. I'm sure it is a minor "tweak", but I
just can't figure it out....Dan

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
Can't get array formula to work in MATCH function Chas Grad Excel Worksheet Functions 5 May 12th 08 09:19 PM
VLOOKUP does not work with array formula axb Excel Worksheet Functions 1 February 6th 08 08:09 PM
array formula does not work Sergio Excel Worksheet Functions 5 October 1st 06 06:48 PM
Will an Array Formula work here? Rob Gould Excel Discussion (Misc queries) 2 February 1st 05 01:25 PM
Array If statement doesn't work Suzanne Excel Worksheet Functions 5 December 3rd 04 09:19 AM


All times are GMT +1. The time now is 07:33 PM.

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"