+ Reply to Thread
Results 1 to 5 of 5

Problem with nested If OR functions

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    Problem with nested If OR functions

    Hi guys,

    hopefully a simple one for you. (Oh if only they were all simple!)

    Please Login or Register  to view this content.
    .

    This formula is entered into *E13* and from my understanding, this formula should do something like this:

    Check E9, is it a match for E12?
    If yes, Enter OIC in E13
    If no, run nested IF/OR Function

    Check E12, is it a match for any value in defined name Leave_Types?
    If yes, duplicate data found in E12 into cell E13
    If no, leave cell E13 blank

    The problem? It always leaves E13 blank, unless the first value is True, in which case it enters OIC.

    Help please?

  2. #2
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    Re: Problem with nested If OR functions

    So I've figured out the problem, but don't know the solution.

    Its only checking the row in the Defined Name Leave_Types as the formula (i.e. row13). It doesn't find a match, and so enters blank data.

    How do I make it check the entire defined name list?

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Problem with nested If OR functions

    hi there again, Christopher. it looks like you don't need OR. according to your assumptions, maybe:
    =IF(E$9=E12,"OIC",IF(COUNTIF(Leave_Types,E$12),E12,""))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    Re: Problem with nested If OR functions

    Ah Benishiryo. If I was in charge of HR at my organisation, we'd be putting you on retainer as Excel Consultant. So much help from one person. Thank you so much

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Problem with nested If OR functions

    *grins*
    if there's ever a day, i'm counting on you then. you're very welcome

+ 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. 7 Nested IF Functions problem
    By shahan in forum Excel General
    Replies: 2
    Last Post: 07-12-2011, 10:40 AM
  2. Nested IF and MID functions
    By Jan Buckley in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  3. [SOLVED] nested if(and) functions
    By Rohan in forum Excel General
    Replies: 3
    Last Post: 08-11-2005, 09:05 PM
  4. Problem with nested IF+something else functions
    By Arjan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-26-2005, 05:35 PM
  5. Nested Functions
    By Doyle Brunson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-02-2005, 08:23 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