+ Reply to Thread
Results 1 to 3 of 3

Maybe an IF with wildcard, but not sure how

  1. #1
    Forum Contributor
    Join Date
    11-04-2015
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2010
    Posts
    114

    Maybe an IF with wildcard, but not sure how

    I want to use an IF statement that looks at the first 4th and 5th character to determine either Outcome A or B.

    A1: DTR 09123

    09=Outcome A
    if not 09=Outcome B

    This is not working:
    =IF(A1="DTR 09*","Ferry","Live")

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Maybe an IF with wildcard, but not sure how

    Try:

    =IF(LEFT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),2)="09","Ferry","Live")

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Maybe an IF with wildcard, but not sure how

    Is that actually the 5th and 6th caracters? (Spaces count)...

    Try

    =IF(MID(A1,5,2)="09","Outcome A","Outcome B")

+ 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. VBA wildcard help
    By tfagan1978 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2017, 10:43 AM
  2. Find Wildcard, return that Wildcard value?
    By help_me_im_lost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2014, 01:20 PM
  3. [SOLVED] Find: Using wildcard, but don't replace with wildcard
    By JimDandy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2013, 05:39 PM
  4. use of wildcard
    By amartino44 in forum Excel General
    Replies: 1
    Last Post: 03-28-2013, 06:07 PM
  5. Wildcard
    By shrooms in forum Excel General
    Replies: 2
    Last Post: 12-13-2007, 08:51 PM
  6. VBA Wildcard
    By SamuelT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2006, 08:47 AM
  7. wildcard help
    By RX7ED in forum Excel General
    Replies: 1
    Last Post: 10-06-2006, 09:45 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