Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
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
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
Need Formula For Data Summary tb Excel Worksheet Functions 7 September 25th 09 03:21 PM
Problems with Array Formula - 2 data criteria lisann Excel Discussion (Misc queries) 2 May 2nd 09 03:53 AM
Help! Array formula for data that uses words instead of numbers cecij22 Excel Discussion (Misc queries) 4 September 8th 08 07:22 PM
How to generate formula from two dimensional array of data KROATA Excel Worksheet Functions 1 December 2nd 05 12:39 PM
Summing up data with an array formula Kofi Excel Worksheet Functions 3 May 10th 05 09:50 PM


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