Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pomalley
 
Posts: n/a
Default Adjust Range in Function

I'm using the following formula to query a worksheet where rows are
added/deleted daily. Is there a way to change the formula so that the range
will auto adjust rather than using $A$1:$A$5001. I just picked this range at
random because I'm already at 3000 rows but I'm thinking that this may be
what's slowing down the calculation process. Thanks.

=SUMPRODUCT(--(masterlist.xls!$A$2:$A$5001-DAY(masterlist.xls!$A$2:$A$5001)+1=DATE(YEAR(J$1), MONTH(J$1),1)),--((RIGHT(masterlist.xls!$B$2:$B$5001,3)=$J$3)+(RIGH T(masterlist.xls!$B$2:$B$5001,4)=$K$3)),--(LEFT(masterlist.xls!$T$2:$T$5001,1)=$J$2),--(ISNUMBER(SEARCH($N$2,masterlist.xls!$AL$2:$AL$500 1))))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kleev
 
Posts: n/a
Default Adjust Range in Function

Here's something I use in one of my spreadsheets, you should be able to
modify for your purposes:
Named Formulas:
JobTitle =OFFSET(Applicants!$P$3,,,COUNTA(Applicants!$P:$P)-1)
sort_area =OFFSET(Applicants!$A$2,,,COUNTA(Applicants!$A:$A) ,COUNTA(Applicants!$2:$2))
Store =OFFSET(Applicants!$L$3,,,COUNTA(Applicants!$L:$L)-1)
UpdDate =OFFSET(Applicants!$A$3,,,COUNTA(Applicants!$A:$A)-1)

Never mind sort_area, it is not used in the formula:
=SUMPRODUCT(--(Store=$A6),--(JobTitle=H$2), --(UpdDate=$J$4))


"pomalley" wrote:

I'm using the following formula to query a worksheet where rows are
added/deleted daily. Is there a way to change the formula so that the range
will auto adjust rather than using $A$1:$A$5001. I just picked this range at
random because I'm already at 3000 rows but I'm thinking that this may be
what's slowing down the calculation process. Thanks.

=SUMPRODUCT(--(masterlist.xls!$A$2:$A$5001-DAY(masterlist.xls!$A$2:$A$5001)+1=DATE(YEAR(J$1), MONTH(J$1),1)),--((RIGHT(masterlist.xls!$B$2:$B$5001,3)=$J$3)+(RIGH T(masterlist.xls!$B$2:$B$5001,4)=$K$3)),--(LEFT(masterlist.xls!$T$2:$T$5001,1)=$J$2),--(ISNUMBER(SEARCH($N$2,masterlist.xls!$AL$2:$AL$500 1))))

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
"COUNTU" function in Excel to count unique entries in a range WayneL Excel Worksheet Functions 20 September 19th 08 03:50 AM
ExceL Options: Add a chart for Box-plot type and Range function sebafishman Excel Discussion (Misc queries) 1 December 21st 05 08:37 PM
Offset Function works in cell, not in named range DragonslayerApps Excel Worksheet Functions 0 July 25th 05 04:39 PM
Number range function Sonya T Excel Discussion (Misc queries) 2 July 19th 05 01:19 AM
Function that filters a list (Database) for criteria in a range a. FirstVette52 Excel Worksheet Functions 0 February 8th 05 04:37 PM


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