+ Reply to Thread
Results 1 to 4 of 4

Coding for comparing sections of columns for greater than/less than conditions

  1. #1
    Registered User
    Join Date
    09-05-2006
    Posts
    14

    Coding for comparing sections of columns for greater than/less than conditions

    Anyone know how to program the following

    I need to see if any of the values in C are greater than any of the values of B and any of the values of C are less than any of the values of A.

    Example

    A B C
    3 3 8
    4 5 6
    2 6 7
    1 7 4

    As long as all the values in C dont exceed any value in B and dont fall below any value of A the condition is true. If there was a 9 in any of the B's, this would be false. If there was a 0 in any of the A's this would be false.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Coding for comparing sections of columns for greater than/less than conditions

    I think you might have gotten the conditions the other way round.

    If so, you could a formula something along the lines of...

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-05-2006
    Posts
    14

    Re: Coding for comparing sections of columns for greater than/less than conditions

    Thanks for the help. I had tried that but I was looking for a condition that makes sure none of the values in C are greater than any of the values in B or less than any of the values in A. If I'm reading what you put below correctly, that covers just the conditions of single cells.

    Quote Originally Posted by quekbc View Post
    I think you might have gotten the conditions the other way round.

    If so, you could a formula something along the lines of...

    Please Login or Register  to view this content.

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Coding for comparing sections of columns for greater than/less than conditions

    As quekbc noted, your conditions sound confusing, but this approach might help:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ 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