Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John Dwyer
 
Posts: n/a
Default Using the MAX function with "constant increment" cell references

I'd like to return the maximum value for every 12th cell
in a very long column of values. i.e. MAX
(BC2,BC14,BC26,BC38,BC50....) Can I do this using the MAX
function without listing each individual cell reference in
the function argument? If not, is there another way to do
this?

Thanks much,
John
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=MAX(IF(MOD(ROW(B1:B1000),12)=2,B1:B1000,""))




In article ,
"John Dwyer" wrote:

I'd like to return the maximum value for every 12th cell
in a very long column of values. i.e. MAX
(BC2,BC14,BC26,BC38,BC50....) Can I do this using the MAX
function without listing each individual cell reference in
the function argument? If not, is there another way to do
this?

Thanks much,
John

  #3   Report Post  
Ben McBen
 
Posts: n/a
Default

How about the below. BTW I have a tendency to do
things "by hand" there may be an easier way another
memeber can suggest


Public Function MaxRange(RangeToParse As Range, JumpSize
As Integer)

Dim aCell As Range
Dim MaxVal
Dim i

For Each aCell In RangeToParse

If i Mod JumpSize = 0 Then

If aCell MaxVal Then
MaxVal = aCell
End If

End If

i = i + 1

Next aCell

MaxRange = MaxVal

End Function

  #4   Report Post  
Max
 
Posts: n/a
Default

One way is to strip the values of all the 12th cells
into say, another sheet ..

Assuming the data is in Sheet1, col BC

In Sheet2
-------------
Put in A1: =INDIRECT("'Sheet1'!BC"&ROW(A1)*12-10)

Copy down

This'll extract contents of Sheet1's
BC2,BC14,BC26,BC38,BC50 ..
into col A

Then just put in B1: =MAX(A:A)
should do it
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"John Dwyer" wrote in message
...
I'd like to return the maximum value for every 12th cell
in a very long column of values. i.e. MAX
(BC2,BC14,BC26,BC38,BC50....) Can I do this using the MAX
function without listing each individual cell reference in
the function argument? If not, is there another way to do
this?

Thanks much,
John



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
copy a cell value not its function KC Mao Excel Discussion (Misc queries) 2 December 4th 04 04:30 AM
Transferring cell content between workbooks using cell references Kiwi Mike Excel Discussion (Misc queries) 2 November 27th 04 11:31 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
Function to operate on ink linked to cell Alan T Excel Worksheet Functions 0 November 20th 04 10:03 PM
Function to return colour of formatted cell ExcelMonkey Excel Worksheet Functions 3 November 1st 04 05:54 PM


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