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  dBforums > PC based Database Applications > Microsoft Excel > Complex counting of rows?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-26-07, 11:18
ronh ronh is offline
Registered User
 
Join Date: Nov 2007
Posts: 35
Complex counting of rows?

Hello!
Would like some suggestions please.

I need a mechanism to count rows based on several kinds of filters -
Every row represents one test I do in my labs.
There are several columns that represent the following:
Test serial number(number), date(date), name(string), lab name(string), result(number), test type(dropdown list), and several more of this kind.
This makes data entry easy.
Eventually I want to be able to count my tests based on filters I apply. For example, if I wanted to count every test that was done between 01/01/07 and 14/01/07 I can just type in the range and have it filter the counting.
The kind of filtering I need can even be complex, say a date range AND name AND result, sometimes downright random selection of filters.

My current mechanism is basically put array functions into cells along this line:
Code:
{=SUM( (B2:B40000 >= begindate)*(B2:B40000 < enddate)*...  )}
and keep multiplying by more filters as needed.

This mechanism had me create many array functions to be put in cells to have a clear page of statistics to print out, which means things got very slow to update, and very hard to manage.

So please, if anyone knows of a better way to deal with such a task I'd love to hear!

Thanks,
Ronh
Reply With Quote
  #2 (permalink)  
Old 12-26-07, 15:24
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy. The only other way (with formulas) is to use SUMPRODUCT, but you may not gain much in terms of speed. I changed a workbook that used array formulas like yours to SUMPRODUCT and it dropped the size of the workbook considerably and reduced cal time by 10 times. In your case it might prove helpful to at least try it.

Failing that, you might want to consider using VBA with array solutions, and then PASTE-SPECIAL. It might be worth considering in your case.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 12-27-07, 08:36
ronh ronh is offline
Registered User
 
Join Date: Nov 2007
Posts: 35
Thank you, I will try it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On