+ Reply to Thread
Results 1 to 2 of 2

IF and OR - adding additional criteria

  1. #1
    Registered User
    Join Date
    07-26-2017
    Location
    Sydney
    MS-Off Ver
    2013
    Posts
    7

    IF and OR - adding additional criteria

    Hi, I'm stumped with my formula, I'm trying to add another criteria to the below, so basically if the value added together is less than 5 but NOT 0, then show as 'L/N', any help will be greatly appreciated.
    the text in red is OK, it's just the text in black, currently it shows 'L/N', if the value added together is 0.

    =IF(IFERROR(GETPIVOTDATA("Student Id",'Other Criteria'!$A$7,"Campus Name",C30,"Course Code",A30),0)+IFERROR(GETPIVOTDATA("Student Id",'Other Criteria 2'!$A$7,"Campus Name",C30,"Course Code",A30),0)<5,"L/N",IFERROR(GETPIVOTDATA("Student Id",'Other Criteria'!$A$7,"Campus Name",C30,"Course Code",A30),0)+IFERROR(GETPIVOTDATA("Student Id",'Other Criteria 2'!$A$7,"Campus Name",C30,"Course Code",A30),0))

  2. #2
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: IF and OR - adding additional criteria

    Did you mind to reset the formula from GETPIVOTDATA to the location of the cell? (ie A1,B1....) it let the formula look shorter.

    PS: if it is different sheet, put the sheet name in front (a), if the sheet name got space look for (b).
    (a) Sheet1 = Sheet1!A1
    (b) Sheet 1 = 'Sheet 1'!A1

    Basically, it should be use AND function. but it too long for the formula, below just the logic, hope you understand.

    your error is the bracket ,
    =IF(A1+A2>5,"L/N",B1+C1) become =IF((A1+A2)>5,"L/N",B1+C1)


    add in the AND function
    =IF(AND(A1+A2>5,A1+A2<>0),"L/N",B1+C1)
    Last edited by BoredWorker; 08-13-2017 at 10:46 PM.
    Hope you can learn every time you visit here.

    If you still confuse on how it work, kindly ask or go to
    i) Formula - Formula (Ribbon) > Formula Auditing (Section) > Evaluate Formula > Evaluate; or
    ii) VBA/Code - Click F8 to see how it work step by step.

    It it take care of your question, Please:
    Mark tread as [Solved] [Thread Tools->Mark thread as Solved]
    ;and
    Click *Add Reputation to thank anyone solved your question.

+ 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. [SOLVED] Adding additional criteria to Max(IF... Formula
    By Terry-J in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-23-2017, 04:57 AM
  2. Weighted Average, Multiple Criteria, Adding additional columns.
    By JeffN1234 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2016, 11:05 AM
  3. Adding additional criteria points
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2015, 08:53 AM
  4. [SOLVED] Adding additional selection criteria to existing Macro
    By Mogpot1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2013, 10:29 AM
  5. Replies: 4
    Last Post: 04-22-2012, 07:55 AM
  6. Adding additional criteria to MATCH
    By erumhyder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-26-2011, 09:59 AM
  7. sumproduct additional information for adding another criteria
    By Darlo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2007, 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