+ Reply to Thread
Results 1 to 3 of 3

nested IF formulas - need to resolve inconsistent error! (quick help needed if possible)

  1. #1
    Registered User
    Join Date
    08-12-2012
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    nested IF formulas - need to resolve inconsistent error! (quick help needed if possible)

    Ok... Here is what I've got:
    =IF(LEFT(D260)="O","Overhead",
    IF(AND(Sheet2!B8LEFT(D260)="E"),"Equipment",
    IF(LEFT(D260)="C","Crews",IF(LEFT(D260)="A","Aircraft",
    IF(LEFT(D260)="S","Supplies",
    IF(ISNUMBER(SEARCH("E-",D260)),"Personnel", ""))))))

    The last if is a discrepancy in the report I pull from the database. I need any E*-*.* (any cell with text that begins with E and has a "." as part of its text string) to Show as Overhead as well.

    I understand why it is inconsistent, but with limited Excel background and time crunch, I'm reaching out for help.

    I need something to say If [begins with E and does not contain ".", then "Equipment"] BUT if [beings with E and contains "." as part of text string, then "Overhead"].... along with all of the other IF statements of course.

    THANKS!!! in advance.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: nested IF formulas - need to resolve inconsistent error! (quick help needed if possibl

    checking your formula...
    your 1st and() does not have a 2nd part
    it seems that all that formula does, is return a "department" name, so it may be easier to use a table to lookup your data, instead of all those nested if()'s.

    something like
    a | Aircraft
    e | Equipment
    etc
    =vlookup(left(D260,1),range,2,false)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-26-2010
    Location
    Seattle Wa
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: nested IF formulas - need to resolve inconsistent error! (quick help needed if possibl

    =IF(AND(LEFT(D260,1)="E",NOT(ISERROR(FIND(".",D260)))),"Overhead",IF(LEFT(D260,1)="O","Overhead",IF(LEFT(D260,2)="E-","Personell",IF(LEFT(D260,1)="C","Crews",IF(LEFT(D260,1)="A","Aircraft",IF(LEFT(D260,1)="S","Supplies",IF(LEFT(D260,1)="E","Equipment", "")))))))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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