+ Reply to Thread
Results 1 to 3 of 3

Assistance

  1. #1
    Registered User
    Join Date
    08-23-2006
    Posts
    1

    Assistance

    Hi there,

    I was wondering if anyone out there would be happy to help me with the following formula.

    Basically I want the calculation to firstly return the value "C" if
    the value in D8 is outwith the range <700 >2700. If the value is within the range I would like the formula to assign the value "T" is the G8 is + or - 15 and "F", if not.

    The second part of the formula works however the first element is ignored so only "T" or "F" are reported.

    Thanks in advance.

    Excel Amateur


    =IF(AND(D8<700,D8>2700),"C",(IF(AND(D8>700,D8<2700,G8<=15,G8>=-15),"T","F")))

  2. #2
    Registered User
    Join Date
    07-07-2006
    Posts
    28
    I think this is what you want

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Instead of AND you need OR because a number can NEVER be both Less than 700 and Greater than 2700 at the same time that part of the formula ALWAYS evaluates to False with AND.


    =IF(OR(D8<700,D8>2700),"C",(IF(AND(D8>700,D8<2700,G8<=15,G8>=-15),"T","F")))
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

+ 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