+ Reply to Thread
Results 1 to 7 of 7

max of non adjacent columns

Hybrid View

pytelium max of non adjacent columns 12-29-2005, 04:19 PM
Guest Re: max of non adjacent... 12-29-2005, 04:35 PM
Guest Re: max of non adjacent... 12-29-2005, 04:35 PM
pytelium Yes,both these solutions... 12-29-2005, 06:40 PM
Guest Re: max of non adjacent... 12-30-2005, 10:15 AM
Guest Re: max of non adjacent... 12-30-2005, 10:45 AM
pytelium Thanks Dave and Bernard 12-30-2005, 06:31 PM
  1. #1
    Registered User
    Join Date
    07-23-2005
    Posts
    51

    max of non adjacent columns

    I have 12 columns with numbers,these numbers change very rapidly as they are fed into the sheet from a website.
    I need a formula to calculate the max of the numbers in every second column,for the first row this would be the numbers in cells B1,d1,f1,h1,j1,l1.
    The answer will be stored in another cell,and of course will be constantly changing as the contents of these cells change.

  2. #2
    Bernard Liengme
    Guest

    Re: max of non adjacent columns

    What is wrong with MAX(B1,D1,F1,H1,J1,I1) ?
    As you copy it down the column it will adjust to (on row 2)
    MAX(B2,D2,F2,H2,J2,I2)
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "pytelium" <pytelium.20tiva_1135887601.0161@excelforum-nospam.com> wrote in
    message news:pytelium.20tiva_1135887601.0161@excelforum-nospam.com...
    >
    > I have 12 columns with numbers,these numbers change very rapidly as they
    > are fed into the sheet from a website.
    > I need a formula to calculate the max of the numbers in every second
    > column,for the first row this would be the numbers in cells
    > B1,d1,f1,h1,j1,l1.
    > The answer will be stored in another cell,and of course will be
    > constantly changing as the contents of these cells change.
    >
    >
    > --
    > pytelium
    > ------------------------------------------------------------------------
    > pytelium's Profile:
    > http://www.excelforum.com/member.php...o&userid=25521
    > View this thread: http://www.excelforum.com/showthread...hreadid=496773
    >




  3. #3
    Peo Sjoblom
    Guest

    Re: max of non adjacent columns

    =MAX((MOD(COLUMN(B1:L1),2)=0)*(B1:L1))

    entered with ctrl + shift & enter


    --

    Regards,

    Peo Sjoblom

    "pytelium" <pytelium.20tiva_1135887601.0161@excelforum-nospam.com> wrote in
    message news:pytelium.20tiva_1135887601.0161@excelforum-nospam.com...
    >
    > I have 12 columns with numbers,these numbers change very rapidly as they
    > are fed into the sheet from a website.
    > I need a formula to calculate the max of the numbers in every second
    > column,for the first row this would be the numbers in cells
    > B1,d1,f1,h1,j1,l1.
    > The answer will be stored in another cell,and of course will be
    > constantly changing as the contents of these cells change.
    >
    >
    > --
    > pytelium
    > ------------------------------------------------------------------------
    > pytelium's Profile:

    http://www.excelforum.com/member.php...o&userid=25521
    > View this thread: http://www.excelforum.com/showthread...hreadid=496773
    >




  4. #4
    Registered User
    Join Date
    07-23-2005
    Posts
    51
    Yes,both these solutions work.Thank you. I have a related question. I want to create an IF statement to print True if the largest of the six cells is more than 5 times the second largest,otherwise print false.

  5. #5
    Bernard Liengme
    Guest

    Re: max of non adjacent columns

    Always better to start a new thread when you have a new question.
    Either =IF(MAX(A1:A6)>5*LARGE(A1:A6,2),"True","False")
    or =MAX(A1:A6)>5*LARGE(A1:A6,2)
    The first gives a text result, the second a Boolean TRUE/FALSE result
    BTW: formulas "return" or "display" results; not "print"
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "pytelium" <pytelium.20tpky_1135896300.5506@excelforum-nospam.com> wrote in
    message news:pytelium.20tpky_1135896300.5506@excelforum-nospam.com...
    >
    > Yes,both these solutions work.Thank you. I have a related question. I
    > want to create an IF statement to print True if the largest of the six
    > cells is more than 5 times the second largest,otherwise print false.
    >
    >
    > --
    > pytelium
    > ------------------------------------------------------------------------
    > pytelium's Profile:
    > http://www.excelforum.com/member.php...o&userid=25521
    > View this thread: http://www.excelforum.com/showthread...hreadid=496773
    >




  6. #6
    Dave Peterson
    Guest

    Re: max of non adjacent columns

    =large() can return the largest (max), second largest, ... value from a range.

    But since your range is discontiguous, you have to be careful when you use it:

    =MAX(B1,D1,F1,H1,I1,J1)>(5*LARGE((B1,D1,F1,H1,I1,J1),2))

    watch those parentheses inside the large function.

    pytelium wrote:
    >
    > Yes,both these solutions work.Thank you. I have a related question. I
    > want to create an IF statement to print True if the largest of the six
    > cells is more than 5 times the second largest,otherwise print false.
    >
    > --
    > pytelium
    > ------------------------------------------------------------------------
    > pytelium's Profile: http://www.excelforum.com/member.php...o&userid=25521
    > View this thread: http://www.excelforum.com/showthread...hreadid=496773


    --

    Dave Peterson

  7. #7
    Registered User
    Join Date
    07-23-2005
    Posts
    51
    Thanks Dave and Bernard

+ 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