+ Reply to Thread
Results 1 to 5 of 5

Help needed - seriously (looping? macros? formulas?)

  1. #1
    jarski
    Guest

    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. #2
    TomHinkle
    Guest

    RE: 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. #3
    K Dales
    Guest

    RE: 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. #4
    jarski
    Guest

    Re: 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. #5
    jarski
    Guest

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1