Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Help needed - seriously (looping? macros? formulas?)

Help on this one would really make my day - I am a total novice on
macros / programming but I have this monster of a data in my hands that
needs to be clarified.. so please - the simpler the solution the
better.

Ok, here is the scenario:
Column A has a list of numeric values. The list is very long and the
values are on every row ie there is a value on every row way down the
sheet.

On column B I need to select the biggest value from every set of three
values on the column A. In other words, in cell B1 I need the biggest
value of A1:A3, in B4 the biggest value of A4:A6 etc.

Now, this could simply be done by copying the formula MAX in the proper
cells in column B, but the list of values is too long, so a macro is
probably needed.

THANK YOU!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Help needed - seriously (looping? macros? formulas?)

Use column C (or any other one contiguous)
paste the following formula in every row in column C

=INT((ROW()-0.1)/3)

This will make groups of 3 rows... 1-3 will be 0, 4-6 will be 1, etc..

Once these groupings are in place, go to the Data menu, select subtotals..
At every change in column C, choose to get the max of column B...

Simple, and best of all, no code!!

"jarski" wrote:

Help on this one would really make my day - I am a total novice on
macros / programming but I have this monster of a data in my hands that
needs to be clarified.. so please - the simpler the solution the
better.

Ok, here is the scenario:
Column A has a list of numeric values. The list is very long and the
values are on every row ie there is a value on every row way down the
sheet.

On column B I need to select the biggest value from every set of three
values on the column A. In other words, in cell B1 I need the biggest
value of A1:A3, in B4 the biggest value of A4:A6 etc.

Now, this could simply be done by copying the formula MAX in the proper
cells in column B, but the list of values is too long, so a macro is
probably needed.

THANK YOU!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Help needed - seriously (looping? macros? formulas?)

No macro, use this formula in B1 and copy down:
=IF(MOD(ROW()-1,3)=0,MAX(A1:A3),"")

"jarski" wrote:

Help on this one would really make my day - I am a total novice on
macros / programming but I have this monster of a data in my hands that
needs to be clarified.. so please - the simpler the solution the
better.

Ok, here is the scenario:
Column A has a list of numeric values. The list is very long and the
values are on every row ie there is a value on every row way down the
sheet.

On column B I need to select the biggest value from every set of three
values on the column A. In other words, in cell B1 I need the biggest
value of A1:A3, in B4 the biggest value of A4:A6 etc.

Now, this could simply be done by copying the formula MAX in the proper
cells in column B, but the list of values is too long, so a macro is
probably needed.

THANK YOU!


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Help needed - seriously (looping? macros? formulas?)

Thanks Tom,
that seems to work. Still, I'm only half way - the method you provided
leaves the max values where they are, although identifying them. I need
those max values to step out more, preferably to be copied into a
separate column. Is there a neat way to do that?

K Dales,
I didn't get your formula to work, too few arguments it says..

thanks again,
jarski

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Help needed - seriously (looping? macros? formulas?)

Wait wait
K DAle
NOW it works, my excel 97 wanted semicolons instead of commas... your
formula is perfect. thanks!

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
Help with Looping Macros Chaitanya Excel Worksheet Functions 0 December 24th 10 06:01 AM
Looping Macros that change Dar Excel Discussion (Misc queries) 1 February 25th 10 10:09 PM
Event Macros Help Needed edo Excel Discussion (Misc queries) 6 February 26th 09 09:55 PM
looping formulas Chas Excel Worksheet Functions 2 March 15th 08 01:42 PM
Looping macros using VB code accessuser1308 Excel Discussion (Misc queries) 2 March 9th 05 11:11 PM


All times are GMT +1. The time now is 04:15 AM.

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"