Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nsv nsv is offline
external usenet poster
 
Posts: 1
Default Variable range in MAX-function


I need to use the largest figure in a part of column D. The part is
defined with the lowest value of the range always being D2 and the
highest being determined by the number of used cells in column B, eg.
if column B contains 32 used cells then the range is (D2:D31)

I tried this formula:
=MAX(D2:ADDRESS(COUNT(B:B)-1;4;4))+1
but I cannot enter it. I get a message that it contains an error, just
as if I've forgotten a parenthesis or something like that.

I have tested the formula =ADDRESS(COUNT(B:B)-1;4;4) in spare cell in
the sheet where it works fine and writes D31 when there are 32 used
cells in column B.
Why doesn't it work in the MAX formual?

NSV


--
nsv
------------------------------------------------------------------------
nsv's Profile: http://www.excelforum.com/member.php...o&userid=26500
View this thread: http://www.excelforum.com/showthread...hreadid=563195

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Variable range in MAX-function


Well the first thing I'd say is that the second part doesn't have a
column reference:

=MAX(D2: 'need some reference to D here' ADDRESS(COUNT(B:B)-1;4;4))+1

Not quite sure how you do that though.


--
coa01gsb
------------------------------------------------------------------------
coa01gsb's Profile: http://www.excelforum.com/member.php...o&userid=31214
View this thread: http://www.excelforum.com/showthread...hreadid=563195

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Variable range in MAX-function


This will work

=MAX(INDIRECT(CONCATENATE("D1:D",COUNTA(B1:B1000)) ))

unless you have blank cells in column D

More info here

http://www.grbps.com/Excel7.pdf


--
Special-K


------------------------------------------------------------------------
Special-K's Profile: http://www.excelforum.com/member.php...fo&userid=7470
View this thread: http://www.excelforum.com/showthread...hreadid=563195

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nsv nsv is offline
external usenet poster
 
Posts: 1
Default Variable range in MAX-function


I do have blank cells in D and it does not work.

Is there perhaps a VBA solution?


--
nsv
------------------------------------------------------------------------
nsv's Profile: http://www.excelforum.com/member.php...o&userid=26500
View this thread: http://www.excelforum.com/showthread...hreadid=563195

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
Variable Range sep1280 Excel Worksheet Functions 3 March 6th 06 07:17 AM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM


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