+ Reply to Thread
Results 1 to 2 of 2

IF formula

  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    Wakefield
    Posts
    1

    IF formula

    I need to identify cells with postal codes starting with K1... or K0...
    I tried this formula: =IF(OR(N2="K1*",N2="K0*"),"ADD","")
    So i am trying to use * as a wildcard but i'm not getting results.
    Tried also with ~ and ? as wildcards... no success.

    Postal codes are K1C 2B7 for example... i need to identify all the postal codes in a row that start with either K1... or K0...
    I even tried ex: N2="K1?????"... no use.

    Any help would be greatly appreciated!!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    You can't use wildcards with a comparison operator like "=". Try using LEFT function, e.g.

    =IF(OR(LEFT(N2,2)={"K1","K0"}),"ADD","")

+ 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. Formula for bond price
    By Dracan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-15-2014, 11:17 AM
  2. A formula template
    By ajaysehgal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2013, 06:12 AM
  3. Reset Formula without Editing Formula?
    By Ogey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2007, 08:44 PM
  4. Conditional formula question
    By odditie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2007, 09:47 PM
  5. use cell content as cell address in formula
    By nnsc in forum Excel General
    Replies: 4
    Last Post: 11-05-2006, 03:12 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