Results 1 to 9 of 9

Problem with Multiple OR Statements in Formula

Threaded View

  1. #1
    Registered User
    Join Date
    04-30-2008
    Posts
    67

    Question Problem with Multiple OR Statements in Formula

    Hey All,

    I'm having issues with a formula. I've narrowed it down to the 3rd IF statement in the VLOOKUP section, specifically the OR statement.

    Here is the formula:
    =IF(ISERROR(VLOOKUP(O8,$L$35:$P$45,IF(N8="R",3,IF(N8="M",4,IF(N8=OR("A","B","C","D","E","F","G","H","J"),5,"UNKNOWN"))))),"-",VLOOKUP(O8,$L$35:$P$45,IF(N8="R",3,IF(N8="M",4,IF(N8=OR("A","B","C","D","E","F","G","H","J"),5,"UNKNOWN")))))
    The problem lies with N8, which is a letter grabbed from another string. If I change this to "R" or "M", it works fine. If I use any of the other letters ("A"-"J"), it resolves to "-", which is the ISERROR resolution.

    Can someone take a look and tell me what I'm doing wrong? AFAIK, I can nest a bunch of variable in an OR statement, so I'm not sure what's wrong.

    Thanks
    Last edited by stusic; 10-04-2013 at 10:58 AM. Reason: Title Nazi

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2013, 06:25 PM
  2. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  3. Problem reading formula with ActiveCell.Formula
    By Matija in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 06:10 AM
  4. [SOLVED] Formula Problem
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] Formula problem
    By Di in forum Excel General
    Replies: 1
    Last Post: 04-26-2005, 12:06 PM

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