+ Reply to Thread
Results 1 to 6 of 6

IF Not Working

  1. #1
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    IF Not Working

    I am using Excel 2010. For some reason the attached file example does not work. Can someone far more brighter than I resolve my issue. Bottom line, if I enter one of 17 possible characters X,0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F I would like to get a 4 character string back. Why do I get the #VALUE error? I spent the better part of a day trying to figure this out. I even used the Hex2Bin function within the IF statement and that created other problems. Any assistance would help an over worked engineer out. Thanks.

    Tony
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF Not Working

    You're trying to add (sum) text values.

    See if this helps:

    http://contextures.com/xlFunctions02.html
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: IF Not Working

    Be careful with 1 vs. "1"... one is a number, the other is text. Plus, I think you have too many IFs... I think Excel has a limit...

    Anyway, I suggest you use a vlookup instead. See my attachment...

    Hope this helps...
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Re: IF Not Working

    Thank you gentlemen for making a simple problem into a simple answer. I will use the lookup table as suggested. Thanks to you both.

    Tony
    Last edited by ajocius; 10-09-2013 at 03:47 PM. Reason: Want to make it SOLVED

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF Not Working

    You're welcome. We appreciate the feedback!

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: IF Not Working

    Or this:

    =IF(A1="X","XXXX",IFERROR(LOOKUP(A1,{1,2,3,4,5,6,7,8,9},{1,10,100,101,110,111,1000,1001}),IFERROR(LOOKUP(A1,{7,8,9},{111,1000,1001}),IFERROR(LOOKUP(A1,{"A","B","C"},{1010,1011,1100}),IFERROR(LOOKUP(A1,{"D","E","F"},{1101,1110,1111}),"")))))
    Last edited by AlKey; 10-09-2013 at 04:35 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  2. Replies: 4
    Last Post: 09-03-2013, 02:52 AM
  3. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  4. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  5. Replies: 1
    Last Post: 01-26-2005, 04:20 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