+ Reply to Thread
Results 1 to 3 of 3

formula to lookup formatting and return true false

  1. #1
    Registered User
    Join Date
    06-14-2010
    Location
    Iowa
    MS-Off Ver
    Excel 2010
    Posts
    22

    formula to lookup formatting and return true false

    I apologize if this subject is already a thread out there. I searched, but didn't find anything similar, so I started this one. What I'm looking to do is enter a formula that will look at a cell and determine if it's true or false, based off of the format of the cell rather than the actual entry in the cell. Column C is what I want to evaluate for correct format and the criteria for being true is that the entry needs to be a letter followed by 5 numbers. So on the attached spreadsheet, rows 2-11, 22 and 25 would be false and return and "I" and rows 12-21, 23-24 would be true and return no results (the results would show up in column H). Any help would be greatly appreciated.CB.XLS
    Last edited by paintballlovr; 05-17-2012 at 09:34 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: formula to lookup formatting and return true false

    Try:

    =IF(AND(LEN(C2)=6,ISERR(LEFT(C2,1)+0),ISNUMBER(RIGHT(C2,5)+0)),"","I")

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-14-2010
    Location
    Iowa
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: formula to lookup formatting and return true false

    Thank you for the quick reply and the accurate answer. It is working perfectly and will save me a ton of time in the future!

+ 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