+ Reply to Thread
Results 1 to 6 of 6

use wildcard in if formula

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    texas usa
    MS-Off Ver
    Excel 2010
    Posts
    70

    use wildcard in if formula

    have been trying to use this formula in the attached spreadsheet =IF(B7=K$5&"*",C7,"NOMATCH")
    i want to return the number in column c when column b matches k5 (using * wildcard)
    formula doesn't work

    help would be appreciated
    Thanks Carroll
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: use wildcard in if formula

    Try:

    =IF(ISNUMBER(SEARCH($K$5,B6)),C6,"Not Found")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: use wildcard in if formula

    with the file this time...
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: use wildcard in if formula

    If you are now using O365, you can use:

    =IF(ISNUMBER(SEARCH(K5,B6:B20)),C6:C20,"Not Found")

    and do the calculation in a single cell

  5. #5
    Registered User
    Join Date
    09-10-2012
    Location
    texas usa
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: use wildcard in if formula

    Quote Originally Posted by Glenn Kennedy View Post
    with the file this time...
    Glenn Thanks much your formula works fine
    Do you know why the formula i used didn't work.
    Carroll

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: use wildcard in if formula

    The syntax was incorrect. You need to use isnumber-search.

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Need to add Wildcard in formula
    By VeeramanoKaran in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-30-2020, 08:49 AM
  2. Wildcard in formula
    By drewberts in forum Excel General
    Replies: 2
    Last Post: 03-02-2020, 05:38 AM
  3. [SOLVED] If then formula using a wildcard?
    By Ron Purpura in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2018, 10:55 AM
  4. 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
  5. [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
  6. Wildcard Formula
    By HVanCamp in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-01-2010, 04:28 PM
  7. Formula Wildcard
    By sandy.beach in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2009, 08:22 PM

Tags for this Thread

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