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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Summary of data using array formula



 
 
Thread Tools Display Modes
  #1  
Old November 17th, 2009, 11:35 PM posted to microsoft.public.excel.misc
Smitee2006
external usenet poster
 
Posts: 6
Default Summary of data using array formula

I have a spreadsheet where there are several columns with data using
validation picklists as well as free-entry columns. I would like to create a
summary of the data in the form of counts based on the existence of specific
values in these columns with the ability to change the date range. I've
created the array formula and have set up a 'startdate' and 'enddate' cells
where the user can enter the range they're looking for. No matter what I do
the value always reports a zero.

I have used these types of array formulas before, however, not using date
ranges. Could there be something I'm missing?

DOI = Date of Incident

{=COUNT(IF(ROU_Stat="CE",IF(IncType="Near
Miss",IF(DOI=$C$1,IF(DOI=$D$1,IF(Region_Stat="qc ",1,0))))))}
  #2  
Old November 17th, 2009, 11:55 PM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Summary of data using array formula

I'd try:

=sumproduct(--(rou_stat="CE"),
--(inctype="near miss"),
--(doi=$c$1),
--(dou=$d$1),
--(region_stat="qc"))

This assumes that all the ranges contain single columns (or rows) and each have
the same number of elements. And that DOI, DOU and C1, D1 are all real
dates--not just text that look like dates.

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Smitee2006 wrote:

I have a spreadsheet where there are several columns with data using
validation picklists as well as free-entry columns. I would like to create a
summary of the data in the form of counts based on the existence of specific
values in these columns with the ability to change the date range. I've
created the array formula and have set up a 'startdate' and 'enddate' cells
where the user can enter the range they're looking for. No matter what I do
the value always reports a zero.

I have used these types of array formulas before, however, not using date
ranges. Could there be something I'm missing?

DOI = Date of Incident

{=COUNT(IF(ROU_Stat="CE",IF(IncType="Near
Miss",IF(DOI=$C$1,IF(DOI=$D$1,IF(Region_Stat="qc ",1,0))))))}


--

Dave Peterson
 




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 12:48 AM.


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