Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 86
Default Worksheet function that duplicates End(xlUp)?

Hello, Excelsperts!

I have a SUMPRODUCT function applied to a huge range, some 14000 rows big.
This makes calculations a tedious and timely chore. But really, I only need
that kind of size for one of my worksheets. The other sheets are all much
smaller.

Is there some way to say SUMPRODUCT($B$4 to Last row with data in B) rather
than $B$4:$B$14200? In a worksheet function, not a macro?

Thank you for your time and your brainpower.

Arlen


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Worksheet function that duplicates End(xlUp)?

One way you could represent the range of $b$2:$b$14000 with just the
'occupied' cells would be:
OFFSET($B$2,0,0,COUNTA($B$2:$B$14000),1)
This would mean that there is nothing in the blank cells, including not
having formulas. If you have formulas all the way down, you could consider
the following:
OFFSET($B$2,0,0,13999-COUNTBLANK($B$2:$B$14000),1)
--
John C


"Arlen" wrote:

Hello, Excelsperts!

I have a SUMPRODUCT function applied to a huge range, some 14000 rows big.
This makes calculations a tedious and timely chore. But really, I only need
that kind of size for one of my worksheets. The other sheets are all much
smaller.

Is there some way to say SUMPRODUCT($B$4 to Last row with data in B) rather
than $B$4:$B$14200? In a worksheet function, not a macro?

Thank you for your time and your brainpower.

Arlen


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Worksheet function that duplicates End(xlUp)?

OFFSET($B$2,0,0,COUNTA($B$2:$B$14000),1)

Using a volatile function will just make it worse.

This does the same thing and is not volatile:

B2:INDEX(B2:B14000,COUNTA(B2:B14000))


--
Biff
Microsoft Excel MVP


"John C" <johnc@stateofdenial wrote in message
...
One way you could represent the range of $b$2:$b$14000 with just the
'occupied' cells would be:
OFFSET($B$2,0,0,COUNTA($B$2:$B$14000),1)
This would mean that there is nothing in the blank cells, including not
having formulas. If you have formulas all the way down, you could consider
the following:
OFFSET($B$2,0,0,13999-COUNTBLANK($B$2:$B$14000),1)
--
John C


"Arlen" wrote:

Hello, Excelsperts!

I have a SUMPRODUCT function applied to a huge range, some 14000 rows
big.
This makes calculations a tedious and timely chore. But really, I only
need
that kind of size for one of my worksheets. The other sheets are all
much
smaller.

Is there some way to say SUMPRODUCT($B$4 to Last row with data in B)
rather
than $B$4:$B$14200? In a worksheet function, not a macro?

Thank you for your time and your brainpower.

Arlen




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
Understanding .End(xlUp) (1,1) Dennis Excel Discussion (Misc queries) 4 April 4th 23 02:13 PM
Find Duplicates and Move to New Worksheet Adurr Excel Worksheet Functions 9 June 28th 07 02:48 AM
problem with .end(xlUp).row [email protected] Excel Discussion (Misc queries) 4 December 29th 06 01:24 PM
When I open a an existing excel worksheet, it duplicates itself a. Gotoperson Excel Discussion (Misc queries) 4 July 16th 06 11:35 AM
ADD Macro - xlup plus xlto right Danny Excel Worksheet Functions 5 March 28th 06 12:08 AM


All times are GMT +1. The time now is 06:10 PM.

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"