Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default writing an formulae with variable parameters

I want to find the maximum (in each week) but along the years the first and
last position changes.

For that i use

"=MAX(D124:D1345)"

Now imagine that I want to use
"=MAX(D125:D1346)" and that i have that numbers in some colums

Can i change the formulae going to the numbers (it self)?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default writing an formulae with variable parameters

You could do it this way...

=MAX(INDIRECT("D125:D"&A1))

where I assumed the row number was in cell A1.

--
Rick (MVP - Excel)


"Formulas with variable parameters" <Formulas with variable
wrote in message
...
I want to find the maximum (in each week) but along the years the first and
last position changes.

For that i use

"=MAX(D124:D1345)"

Now imagine that I want to use
"=MAX(D125:D1346)" and that i have that numbers in some colums

Can i change the formulae going to the numbers (it self)?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default writing an formulae with variable parameters

If you just use

=MAX(D:D)

then it doesn't matter where the rows with values are within the column.

HTH,
Bernie
MS Excel MVP


"Formulas with variable parameters" <Formulas with variable
wrote in message ...
I want to find the maximum (in each week) but along the years the first and
last position changes.

For that i use

"=MAX(D124:D1345)"

Now imagine that I want to use
"=MAX(D125:D1346)" and that i have that numbers in some colums

Can i change the formulae going to the numbers (it self)?



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
Formulae: Paste value formulae after doing an average operation Lim Excel Discussion (Misc queries) 4 April 20th 08 07:31 PM
Using list values as variable in secondary formulae... best way? [email protected] Excel Worksheet Functions 1 March 15th 07 10:50 PM
SUBSTITUTE formula -- variable spacing between parameters?? The Moose Excel Worksheet Functions 6 December 2nd 06 07:00 PM
OnAction of Menu Bar with variable parameters chris Excel Discussion (Misc queries) 1 August 7th 06 04:03 PM
Set up OnAction of a Menu Bar button to a function with variable in the parameters chris Excel Discussion (Misc queries) 0 July 17th 06 05:05 PM


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

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

About Us

"It's about Microsoft Excel"