+ Reply to Thread
Results 1 to 5 of 5

Greater Than/Less Than Multiple Numbers

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Greater Than/Less Than Multiple Numbers

    Happy New Year,
    I need a formula that would do the following.
    The value in A1 is equal to 15 from, greater than 15 from, or less than 15 from the values in B1:D1. If it's at least 15 away from all three it's TRUE, if not FALSE.
    Example:
    A1: 135
    B1: 150
    C1: 120
    D1: 100

    Thank you for any and all help.
    Last edited by artiststevens; 01-01-2011 at 08:46 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Greater Than/Less Than Multiple Numbers

    I imagine there is a better solution to this, but this is what I came up with.

    =IF(AND(ABS(B1-A1)>=15,ABS(C1-A1)>=15,ABS(D1-A1)>=15),TRUE,FALSE)
    HTH
    Regards, Jeff

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Greater Than/Less Than Multiple Numbers

    Try

    =SUMPRODUCT((ABS(A1-B1:D1)<15)+0)=0
    Audere est facere

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Greater Than/Less Than Multiple Numbers

    Boy that Sumproduct sure is powerful, Thanks DLL

  5. #5
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Greater Than/Less Than Multiple Numbers

    Thanks for the help from both of you! I'll rep you both. Happy New Year!

+ 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