Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Complex Multi-condition, multi-workbook count

Okay I hate to ask this, but I'm desperate. I need a macro to replace a long
function which, when placed into as many cells as it needs to go, makes the
workbook extremely slow to open and update.

First, I have a huge (65536 rows) spreadsheet (sheet1 of notes.xls) with
data in columns A:Q. Column B has dates, column F has Place Names, and
column J has People.

A second worksheet (sheet2 of counts.xls) has Place Names in column A,
People in column E, and a column for each week in a year starting with column
H. In each cell (row) of those month columns, I'm calculating how many times
the Person specified in column E of that row was matched with the Place in
column A of that row, during the week whose ending date is specified in the
column header, on the other worksheet (i.e. how many times the specified
person was matched with the specified place, during the given week, on sheet1
of notes.xls).

Here's the formula:

=IF(TODAY()<H$5-6,"",SUM(IF(ISBLANK($A7)=FALSE,IF([notes.xls]sheet1!$F$2:$F$65536=$A7,IF([notes.xls]sheet1!$J$2:$J$65536=$E7,IF([notes.xls]sheet1!$B$2:$B$65536=H$5-6,IF([notes.xls]sheet1!$B$2:$B$65536<=H$5,1,0)))))))

H$5 contains a week-ending date--it's the header of a week column. This
formula appears in 52 columns and over 1000 rows of the workbook counts.xls.
As you might imagine, it bogs down.

I know it's asking a lot, but what should I do? Is there a macro to save me?

Thanks,
Mike

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
Rank by Multi Condition Ananth Excel Discussion (Misc queries) 4 June 26th 07 06:01 AM
Help with Multi-Condition Formula VB Excel Worksheet Functions 2 February 28th 07 08:58 PM
Multi-condition vlookup Hobbeson Excel Worksheet Functions 4 July 19th 05 02:57 AM
how can I paste multi-line/multi-paragraph data into ONE cell? Theano Excel Discussion (Misc queries) 3 June 7th 05 01:10 PM


All times are GMT +1. The time now is 03:30 AM.

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

About Us

"It's about Microsoft Excel"