+ Reply to Thread
Results 1 to 3 of 3

If any of 3 cells is in any one of 3 ranges, then

  1. #1
    Registered User
    Join Date
    10-27-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    If any of 3 cells is in any one of 3 ranges, then

    Hello All. Hope you can help. I'd like to express something like this:

    If 0<B4 or C4 or D4 <=24, then output 14. If 24<B4 or C4 or D4 <=36, then output 12. If B4 or C4 or D4 > 36, then output 10.

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: If any of 3 cells is in any one of 3 ranges, then

    If 0<B4 or C4 or D4 <=24 ?????
    does that mean
    and b4 is greater than 0 and either c4 or d4 is less than or equal to 24
    or does it mean
    or b4 is greater than 0, or c4 less than or equal to 24 or d4 is less than or equal to 24
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Cameron, Mo
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: If any of 3 cells is in any one of 3 ranges, then

    try

    ---if(or(B4>0,C4>0,D4>0),14,if(or(B4>24,C4<=36,D4<=36),12,if(or(B4>36,C4>36,D4>36),10,"")))---

    This assuming you want the answer in one cell!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 08-06-2013, 02:13 PM
  2. fomatting cells based on difference between values of cells two ranges.
    By KATIEexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2013, 04:08 AM
  3. MIN of Summed ranges, excluding any ranges with blank cells)
    By Melvinrobb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2013, 12:02 PM
  4. Replies: 0
    Last Post: 10-15-2012, 07:24 AM
  5. Excel Cells to PPT Cells- Two Variable Ranges
    By mlexcelhelpforum in forum Excel Programming / VBA / Macros
    Replies: 40
    Last Post: 06-19-2011, 06:37 AM

Tags for this Thread

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