+ Reply to Thread
Results 1 to 3 of 3

IF= Function not recognizing defined name.

  1. #1
    Registered User
    Join Date
    01-21-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    40

    IF= Function not recognizing defined name.

    Ok, so I have a really easy problem here im sure someone can help with.

    Attached you will see an excel file with 6 columns.

    We enter data into all of these columns, but the ones im concerned with when using the formula is column C (SBU CODE) and column F (CONTACT)
    I created the following IF= function in column F.

    =IF(C2={"AAB","AAF","AAJ","AAL","AAS","AAX","LON","OFF"},BNYM EMEA Tax and Documentation,Enter Contact)

    What I want to happen, is when the user enters any of the following 3 combinations of letters into column C, it will show up with the contact BNYM EMEA Tax and Documentation, which the use will then know who the defined contact is. If it is any OTHER 3 letter combination, it will say ENTER CONTACT IN COLUMN G, or something like that.

    My problem is, im not entirely sure this code is correct. I have all 3 logic tests, and the true and false values, but it says NAME% when i press enter. I've went in and defined the names AAB, AFF etc, bu tstill does not work.

    Can someone help?
    Attached Files Attached Files
    Last edited by Ianseconds; 03-17-2011 at 04:30 PM. Reason: add file

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: IF= Function not recognizing defined name.

    You need to put quotes around the text you want to display.
    Without the quotes, Excel tries to find a defined name with that text and returns an error.

    Try this:
    Please Login or Register  to view this content.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-21-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: IF= Function not recognizing defined name.

    ugh. thank you. it took longer for me to type out than you to solve. ahah.

    Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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