+ Reply to Thread
Results 1 to 5 of 5

Nested AND statement Error

  1. #1
    Registered User
    Join Date
    10-09-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    78

    Nested AND statement Error

    I am attempting to create a nested AND statement but it is being flagged up due to an apparent error. I am trying to create a statement that decides what value cell Q7 should be subtracted from. Unfortunatly i am unable to locate or recognise the error in my statement here is my code.

    Please Login or Register  to view this content.
    Last edited by mdovey; 10-25-2013 at 08:37 PM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Nested AND statement Error

    Maybe this:

    =IF(AND(Q7>=40,Q7<50),50-Q7,IF(AND(Q7>=50,Q7<60),60-Q7,IF(AND(Q7>=60,Q7<70),70-Q7,IF(AND(Q7>=70,Q7<80),80-Q7,"0"))))
    Last edited by AlKey; 10-25-2013 at 08:26 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Nested AND statement Error

    This should fix it:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    But you could re-write this formula as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You may even be able to use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    - Moo

    [Edited formula...]
    Last edited by Moo the Dog; 10-25-2013 at 08:36 PM.

  4. #4
    Registered User
    Join Date
    10-09-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: Nested AND statement Error

    Thank you much appriciated

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Nested AND statement Error

    You're welcome. Don't forget to thank those who helped by clicking on Add Reputation *

+ 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. Nested IF Statement comparing Dates, getting #VALUE error
    By jrace in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2013, 10:01 AM
  2. [SOLVED] Prevent #VALUE error while using SEARCH nested within an IF statement
    By rfernandes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2012, 09:56 AM
  3. [SOLVED] IS ERROR with nested if statement
    By renden in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2012, 05:46 AM
  4. Error on Nested If Statement
    By ValentineNicole in forum Excel General
    Replies: 5
    Last Post: 02-18-2011, 03:29 PM
  5. Replies: 3
    Last Post: 08-10-2006, 11:30 AM

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