Excel IF Function with PARTIAL Text Match (IF with Wildcards)

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 585

  • @LeilaGharani
    @LeilaGharani  8 місяців тому

    Grab the file I used in the video from here 👉 pages.xelplus.com/if-wildcard-file

  • @jays9591
    @jays9591 Рік тому +5

    I had to check 7,000 entries of comments (long'ish text) from customers, we were interested in finding a particular word in the comments. Your tutorial here just saved me days of boring 'eye-balling' work, Wonderful! Thank you. BTW, I prefer your style of teaching than many others - it's always clear, no rambling and intuitive. Many thanks again.

  • @BrianMegilligan
    @BrianMegilligan 5 років тому +14

    I appreciate that you take us through the steps of things that won't work and explain why. This makes it easy to follow and is useful for cases where those functions that don't work in this case might be useful for something else we encounter in the future. Thank you for your work on this!

    • @LeilaGharani
      @LeilaGharani  5 років тому +3

      You're very welcome Brian. I'm really glad if I can provide some useful alternatives.

    • @andrew3amb
      @andrew3amb Рік тому +1

      @@LeilaGharani THANKS! But there is other variant how to say "contains" : =IF(COUNTIF(A5;"*at*"); ... ; ... ) - BEST CHOICE FOR THIS TYPE OF TASKS!

  • @MeliPatoco
    @MeliPatoco 2 роки тому

    That awesome moment you come to see a Leila video because the title tells you this is going to be useful, and it is a formula that you use almost daily at your job. Feels amazing

    • @LeilaGharani
      @LeilaGharani  2 роки тому

      Happy to hear that! Thank you for your kind comment Meli.

  • @mach489i
    @mach489i 5 років тому +117

    This does the job as well:
    =IF(COUNTIF(A5,"*AT*")>0,"AT","")

    • @Lunatyk001
      @Lunatyk001 5 років тому +3

      This one is amazing, because it's works also with "?" wildcard.
      Thank you for this! :)

    • @sachinrv1
      @sachinrv1 5 років тому

      This is Good one 👍

    • @LeilaGharani
      @LeilaGharani  5 років тому +20

      I LIKE this! Thank you for sharing : )

    • @luisparra2740
      @luisparra2740 5 років тому +6

      Nice. It works like this as well: =IF(COUNTIF(A5,"*AT*"),"AT","")

    • @merbouni
      @merbouni 5 років тому +3

      Sincerely, the method of leila is better than your method...!! with your formula, you can not search for a number in a series of digits, unless the cell contains a combination of numbers and text

  • @sZenji
    @sZenji 5 років тому +2

    i was looking over 4 weeks for this formula in the internet and suddenly youtuve recomends me this video and you gave me the solution i finnaly needed thank you so much

    • @LeilaGharani
      @LeilaGharani  5 років тому

      Great, I'm glad I was able to help with that Sven!

  • @jdpalm1981
    @jdpalm1981 4 роки тому +27

    Holy crap!!! That was way more informative than searching through stackoverflow!

  • @664196wassouf
    @664196wassouf 4 роки тому +19

    You have saved my life in excel so many times. Thank you

  • @francodoshe6408
    @francodoshe6408 2 роки тому

    This is my online lecturer of all time...🙏
    Be blessed teacher.

  • @AnuroopBangalore
    @AnuroopBangalore 3 роки тому

    I had to display list of values based on partial match of text in the previous column cells. This helped me resolve an issue which I was struggling for days. You are awesome. Thanks ! For anyone who is new in Excel, this channel is good info here.

  • @abubakarshehuabubakar1082
    @abubakarshehuabubakar1082 5 років тому +1

    WOW! knowing this channel is like seeing water in the mids of the hot desert. Thank you, Laila. Much love!

    • @LeilaGharani
      @LeilaGharani  5 років тому

      Thank you very much for the kind words Abubakar! I'm glad you like the videos.

  • @z058261
    @z058261 4 роки тому

    I really get the excel formula thing here. Straight to the point not complicated and I understand it to express it in my own words. I have been to the the other guru sites as known - but here I have more satisfaction in learning, I should have come here first!

    • @LeilaGharani
      @LeilaGharani  4 роки тому

      Thank you for the kind feedback. I'm glad you like the style of the videos.

  • @brianfields7519
    @brianfields7519 Рік тому +1

    I find your explanations and applications to be the best. Even when I delve into some obscure situations you have answers that work. Thank you so much for your postings.

  • @alexkim7270
    @alexkim7270 4 роки тому +1

    When I saw this video few months ago, I didn't remember much of it. Until I had to do something similar in DAX.
    Now when I check your video out again, I just realized whatever I watched had entered my subconscious! Yay. Keep posting these great contents, Leila.

    • @LeilaGharani
      @LeilaGharani  4 роки тому

      Oh wow, I didn't know my videos had such an effect :) Glad you find the tutorials helpful Alex.

    • @Siddharth-pw8mz
      @Siddharth-pw8mz 4 роки тому

      @@LeilaGharani ma'am I'm from India and you

  • @rajasekharreddy2331
    @rajasekharreddy2331 4 роки тому

    Wow......I am very thankful to you Leila........I have applied the same to my worksheet and it really works........your tutorials save lot of man hours........thanks once again.........

  • @natraj5689
    @natraj5689 Рік тому

    Hey Leila have been following you regularly, your online classes made me look like a king before my colleagues at office, thanks a lot!

  • @prashant333kumar
    @prashant333kumar 4 роки тому

    Leila you are my best excel teacher that i have ever met

  • @peteringvorsen890
    @peteringvorsen890 5 років тому +7

    Thanks Leila😊
    Once again, you show a learning video that's easy to understand for everyone👍

    • @LeilaGharani
      @LeilaGharani  5 років тому +1

      You're very welcome Peter! Glad it comes across like that.

  • @TheVampireviolet
    @TheVampireviolet 6 місяців тому

    I have been looking for something like this for probably over an hour, and you managed to solve my problem within the first 11 seconds of this video. I literally cannot thank you enough TuT

  • @WaqqasAzeem
    @WaqqasAzeem 4 роки тому

    Thank you... I searched everywhere but no solution... You're a life saver.

  • @taymaateyah1757
    @taymaateyah1757 2 роки тому

    You saved my life.... THANK YOU!! I was looking for a formula like this for soooo long.

  • @LuisFernando-yd3mx
    @LuisFernando-yd3mx 3 роки тому +5

    Hey Leila. I've used the isnumber function for this too but I think you can also do this with the If function along with a match since the match allows for the asterisks wildcards. Then if the match works you can use the if conditionals.

  • @SteveGoebler
    @SteveGoebler 2 роки тому

    This is something I've been trying to work out for some time now. Thank you!!!

  • @beardpower8670
    @beardpower8670 2 роки тому

    I thought I was going crazy, and didn't understand wild cards in Excel. Thank you for the help.👍

  • @hanifsanatkhani4587
    @hanifsanatkhani4587 2 роки тому

    Every time I stuck why is it always your videos that is most useful? :)) thanks soo much.

  • @age_of_reason
    @age_of_reason Рік тому

    This was exactly what I was looking for and I was able to write my formula with IF + wildcards and it solved my problem. Thank you!

  • @blankmedia01
    @blankmedia01 3 роки тому

    You have some of my favourite content in the world. Thank you

  • @cajatinaswani609
    @cajatinaswani609 3 роки тому

    Every time I learn something new on this channel.
    Great work Leila 👍

  • @satyenpurohit3947
    @satyenpurohit3947 5 років тому

    I used search with wildcards and its results are magic... Good to see the same in your video...

    • @LeilaGharani
      @LeilaGharani  5 років тому +1

      Agreed, it can really be helpful sometimes.

    • @satyenpurohit3947
      @satyenpurohit3947 5 років тому

      @@LeilaGharani i used it creating reminders, will share with you once its done.

    • @LeilaGharani
      @LeilaGharani  5 років тому

      Great! Looking forward to it.

  • @Titina7183
    @Titina7183 4 роки тому +1

    Thank you Leila for these videos. Your explanations are so clear. 😊

  • @AkshayKadam94
    @AkshayKadam94 3 роки тому +1

    I used countif instead of using isnumber and search. Gave same results.

  • @shabbirkanchwala-abwaab6263
    @shabbirkanchwala-abwaab6263 5 років тому +1

    Gr8
    You are a SOLUTION to any issue in Excel.
    Tons of Permutation n c Combination can be worked with your this invention.
    Thnx

    • @LeilaGharani
      @LeilaGharani  5 років тому

      Thanks for the kind words Shabbir. Glad you like it!

  • @jervahnmorgan
    @jervahnmorgan 4 роки тому

    You do a phenomenal job at explaining how to use Excel Leila. Please keep up the good work!

    • @LeilaGharani
      @LeilaGharani  4 роки тому +1

      Thank you for the kind feedback. I'm glad the tutorials are helpful.

  • @michaelcarman5521
    @michaelcarman5521 3 роки тому +1

    Is there a way to use {…,…} in place of typing out the search function twice? The only thing that is really different is the criteria.

  • @georgewhite3379
    @georgewhite3379 2 роки тому +1

    I freaking love you!! I consider myself excel literate but sometimes I struggle trying to make an argument work. So its like 'Hey, I wonder if Leila knows.' BAM! There it is. I am subscribing to everything you do. :)

  • @jansentanguilan1739
    @jansentanguilan1739 5 років тому +1

    I never tought to use the isnumber function. Awesome Leila. Thank you.

    • @LeilaGharani
      @LeilaGharani  5 років тому

      You're very welcome. Glad you like it!

  • @AntonyGugenberger
    @AntonyGugenberger 2 роки тому

    Fantastic - elegant solution.

  • @rudi-gruber
    @rudi-gruber 5 років тому

    Never used wildcards before in a formula. Nice video again. Thank you

    • @LeilaGharani
      @LeilaGharani  5 років тому

      Can be quite helpful sometimes. Glad you like it Rudolf.

  • @RoseAnnRabe
    @RoseAnnRabe 4 місяці тому

    Thank you so much for this!

  • @mysarababekir569
    @mysarababekir569 3 роки тому

    I watch your video because you are very nice☺ keep going

  • @michaelthomashill
    @michaelthomashill 5 років тому

    I thoroughly enjoy watching your videos. Very informative and practical. This is stuff you can actually use in real-world applications. Thanks!

    • @LeilaGharani
      @LeilaGharani  5 років тому

      Really glad to hear that Mike. Thanks for the feedback.

  • @smoreiram
    @smoreiram 2 роки тому

    It was simple and exactly what I was looking for, even the control + enter was handy!

  • @kadhumalasadi5861
    @kadhumalasadi5861 4 роки тому

    Thanks Leila from Iraq

  • @terrymadeley
    @terrymadeley 5 років тому

    Very helpful, but so too was that little reminder about filling without formatting at 4:44 - I hadn't realised you could do that. So thanks twice!

    • @LeilaGharani
      @LeilaGharani  5 років тому

      You're very welcome Terry. I'm glad it was useful twice :)

  • @hafeezAhmed001
    @hafeezAhmed001 2 роки тому

    Thankyou, I was looking for this formula.

  • @wayneedmondson1065
    @wayneedmondson1065 5 років тому

    Hi Leila.. cool solution. First I used IF with SEARCH and then wrapped the IF with IFERROR which trapped for #VALUE! when no match was found by SEARCH. Your method using ISNUMBER is more logical and I prefer it. Thanks for the insights on how to do partial match with IF using ISNUMBER, SEARCH and OR.. great stuff! Thumbs up!!
    PS - I also like the COUNTIF solution below by Alpha State and others.. always nice to see multiple ways to solve the problem.

    • @LeilaGharani
      @LeilaGharani  5 років тому +1

      Exactly, that's why I really appreciate comments :) Thanks for the thumbs up!

  • @edwilliamkidayan6773
    @edwilliamkidayan6773 Рік тому

    This is Awesome! Thank you Leila!

  • @GrahamSchroder
    @GrahamSchroder 4 роки тому +3

    Saved me hours once again - thanks heaps!

  • @kaaa3485
    @kaaa3485 5 років тому +2

    Awesome video and a good tip of the IF function. Thanks Leila we appreciate you so much. please, keep up with the great work.

    • @LeilaGharani
      @LeilaGharani  5 років тому

      You're very welcome. It can come in quite handy sometimes.

  • @elzar760
    @elzar760 3 роки тому +1

    Been looking for something like this. This is awesome. Thank you!

  • @NeLzKieTV
    @NeLzKieTV Рік тому

    Thank you so much for your tutorials Leila❤

  • @soranhusain2958
    @soranhusain2958 4 роки тому

    this video was so useful and already I started to use it in my report.

  • @gtitman2
    @gtitman2 Рік тому

    This was an incredibly helpful video. Thank you!

  • @shootbaaz1754
    @shootbaaz1754 2 роки тому

    Awesome Ma'am, Thank you so much.

  • @sriesinger
    @sriesinger 2 роки тому

    Beautifully explained Long since I was wondering why the * function doesnt work to retrieve a particular letter while using IF Awesome piece of information

  • @amarnath_85
    @amarnath_85 3 роки тому

    Mam I had solved many Excel problems with your Excel tutoring, I had started to learn Excel formula with your Excel tutoring , Thank You for that
    Now I had a problem that I can not use the index and match function Merged cell please give me a solution to this
    Mam at first I was entertaining to the company I don't know anything about Excel Formulas, I had started learning Excel Formulas with your Excel tutoring and then I was shining in my company Thank You for that
    Mam I am expecting you may give me a very good solution to this problem
    Thank you Mam

  • @peternganga9371
    @peternganga9371 5 років тому +6

    Thanks Leila. Another great one.

  • @tica5791
    @tica5791 5 років тому +1

    You are a life saver Leila

    • @LeilaGharani
      @LeilaGharani  5 років тому +1

      I'm really glad to hear that :)

  • @Softwaretrain
    @Softwaretrain 5 років тому +5

    Last day someone ask me something like this, I gave her a way almost same as your solution but a little easier for two criteria.
    It will be smaller formula.
    =IF(OR(ISNUMBER(SEARCH({"DE","AT"},A5))),"Europe","")
    Thanks for your training.
    Mahmoud Baniasadi , from Iran

    • @kurapikanostrad4592
      @kurapikanostrad4592 5 років тому

      How do I carry over the exceeding value or the remaining one?
      For example
      I have to pay $10,000 but my salary is only $2,100
      January is 0 all used and going vacation on february.
      February is 0 because of vacation and will only receive after I come back (weird company policy)
      March is 2,100 + 2,100 (paid leave from previous month) + 2,600 (Paid ticket) - 500 (expenses) = $6,300
      April 2,100 so on and so forth
      so 5% of 2100 is 100 for savings.
      25% of 2,000 is 500 for daily expenses.
      1,500 is can Pay for remaning loan.
      if 10,000 - 6,300 = 3,700. How can I carry this remaining value to other cell. So that the next month which is 1,500 salary will be deducted.???
      Hope you get my explaination.

    • @Softwaretrain
      @Softwaretrain 5 років тому

      @@kurapikanostrad4592 put your input in an excel sheet and send it to me.
      N.baniasadi67@gmail.com

  • @ChriseanKim
    @ChriseanKim 2 роки тому

    This is really I was looking for. Thank you.

    • @LeilaGharani
      @LeilaGharani  2 роки тому +1

      Glad I could help!

    • @ChriseanKim
      @ChriseanKim 2 роки тому

      @@LeilaGharani Other you tube tutorials was difficult to understand or sounds was not clear to hear.
      Your lesson is easy to understand, very comfortable and very practical.
      I subscribed you and start watching every video.
      Really appreciate your effort and reply.

  • @salehmohammad5170
    @salehmohammad5170 4 роки тому

    Very useful.. But little bit difficult! love you Leila 😍

  • @tamekabailey405
    @tamekabailey405 2 роки тому

    Great video, what about if you had different kinds of fruits listed and want to know which fruit had a quantity sold is less than half of its initial quantity

  • @tiberiusiulius2088
    @tiberiusiulius2088 4 роки тому

    AH :D that last part is what i really needed. I kept getting the N/A error until i watched the video. Still can't figure out why, but i also tried with IFS and got N/A, so thanks for the lesson !

  • @lorimiller623
    @lorimiller623 2 роки тому

    Thank you, thank you, thank you!

  • @j.fabricioelias227
    @j.fabricioelias227 7 місяців тому

    Thanks for the trick!

  • @JoaoSantos-jb7ul
    @JoaoSantos-jb7ul Рік тому

    Another excellent video, Leila! Thank you!

  • @waiyantun8629
    @waiyantun8629 2 роки тому

    You just saved my day. Thank you so so much!!!!

  • @samanthadaroga4811
    @samanthadaroga4811 Рік тому

    Really nice video. Quite helpful.

  • @ranganathaswamy1392
    @ranganathaswamy1392 3 роки тому

    very useful,
    dont know, who r those losers disliking this informative video

  • @satviksatvik3033
    @satviksatvik3033 3 роки тому

    Thank you. You made my task really easy.

  • @tristanchisholm5857
    @tristanchisholm5857 2 роки тому

    Perfection, thank you!

  • @terrycline8689
    @terrycline8689 5 років тому

    and if you are doing the same basic thing but within VB, you can use InStr (and InStrRev), which also returns the location in the string if a match is found.

  • @美愛-w6j
    @美愛-w6j 3 роки тому

    This is very useful to me although need some thinking to understand

  • @coogs9335
    @coogs9335 4 роки тому

    Fantastic, thank you for posting Leila..another time saver..

  • @economia-apoio300
    @economia-apoio300 2 роки тому

    Thanks, it helped me a lot!

  • @DustinMedure
    @DustinMedure 5 років тому

    Leila - Thank you for all the Excel videos. They are all so helpful and I have enjoyed every one so far. Please don't stop.

    • @LeilaGharani
      @LeilaGharani  5 років тому

      I'm glad to hear that and don't worry Dustin. I'll keep them coming :)

  • @carlosmariopinzon1439
    @carlosmariopinzon1439 Рік тому

    Always you save my projects, Leila ❤

  • @carolyng332
    @carolyng332 2 роки тому

    Thank you for sharing.

  • @allforedandtech
    @allforedandtech 4 роки тому

    Amazing Video and also replies from viewers

  • @behnamebrahimi1625
    @behnamebrahimi1625 5 років тому +3

    Thanks Leila👍👌👏. Love you from Iran 😊

  • @MakedaBenjamin
    @MakedaBenjamin 4 роки тому +3

    Oh my gosh this is EXACTLY what I was looking for!!! THANK YOU!! God Bless!!!

  • @krn14242
    @krn14242 5 років тому

    Very smart. Thanks Leila

    • @LeilaGharani
      @LeilaGharani  5 років тому

      You're very welcome. Glad you like it.

  • @mariatomova9379
    @mariatomova9379 4 роки тому

    You are an absolute magician!!!!!

  • @alexoliveira9710
    @alexoliveira9710 3 роки тому

    Very nice. Thank you!

  • @faheem2186
    @faheem2186 4 роки тому +2

    Hi, how can I use this same formula for multiple returns, such as you mentioned AT or DE then "Europe", but in my case I need to get, if AT then "Europe" or DE then "USA"

    • @happydmand6345
      @happydmand6345 4 роки тому

      =IF(ISNUMBER(SEARCH($C$4,A8)),"Europe",IF(ISNUMBER(SEARCH($C$3,A8)),"USA",""))

  • @otienoluke5668
    @otienoluke5668 2 роки тому

    Thank you Leila. I have been stuck for more than a month now trying to configure how to handle this...can i get the formula version for power query?

  • @akhibadak
    @akhibadak 5 років тому

    Wonderful tips.

  • @PasangLepcha
    @PasangLepcha 4 роки тому

    Thank you this is very helfful and well explained

  • @sarfarajkureshi6569
    @sarfarajkureshi6569 5 років тому +1

    Nice mam good teaching god bless you...

  • @shrikantbadge3978
    @shrikantbadge3978 4 роки тому

    insanely helpful

  • @monifataylor.realestate
    @monifataylor.realestate Рік тому

    You are great at making complicated things simple. Thanks for this video . It is exactly what I'm
    looking for except I need it in Google Sheets. What tweaks should I make for it to work in Google Sheets?

  • @kemle
    @kemle 5 років тому

    I considered subscribing to this channel

    • @LeilaGharani
      @LeilaGharani  5 років тому

      I hope you do. We'd be happy to have you here.

  • @zahmed87
    @zahmed87 5 років тому

    Thanks Leila, You have excellence in Excel. Make a video on Pivot Table and how to make as good as report from it.

    • @LeilaGharani
      @LeilaGharani  5 років тому

      You're very welcome. I cover Pivot Tables in my Advanced Course. I will add more videos on UA-cam too. Thank you for your suggestion.

  • @alinaa3408
    @alinaa3408 2 роки тому

    Leila, thank you so much for all your tutorials. You explain it better than anyone else. Quick question-in your last example-on min 6:12, the formula that you have on top works for first part, but what if the statement is not true and I want to use again an "IF", so the logic can look for another "or" match. It does not seem to work for me. Thank you
    =IF(OR(ISNUMBER(SEARCH(122.5,C4)),ISNUMBER(SEARCH(150,C4))),"SMALL",IF(OR(ISNUMBER(SEARCH(150,C4)),ISNUMBER(SEARCH(224,C4)))),"MEDIUM",IF(ISNUMBER(SEARCH(315,C4))),"LARGE","")

  • @saeidlatifi9930
    @saeidlatifi9930 Рік тому

    Thank you, Leila 🙏
    What if is search for a date instead "AT"?

  • @USAF_Vet_
    @USAF_Vet_ 5 років тому

    I also like using this with a named range of values as an array formula as well when I want to search job titles within my dataset. For example, I would create a range list called "titles" and in it I would have things like CSR, Call Center, Customer Service, etc....so my formula would be {=if(isnumber(search([titles],[cell to search within])),1,0)} I put the 1 and 0 so I can quickly filter to just the "1's" and see all of those titles to ensure they were mapped to a specific division correctly.

    • @LeilaGharani
      @LeilaGharani  5 років тому

      That's a good use case! Thank you for sharing Nigel.

  • @Taxcentricals
    @Taxcentricals Рік тому

    It's a great function

  • @Not_so_whimsical
    @Not_so_whimsical 4 роки тому

    This is awesome, it helped with my current assignment

  • @moejoe7905
    @moejoe7905 4 роки тому +1

    I have an excel they I’ve done trims too; With personal information of people. I noticed at the end that some of the phone numbers don’t match up (most likely an error when I copied them over from the raw/original excels). I opened a new excel with the edited version and original side by side.
    Basically I would like to ask what the most efficient way to copy the accompanying phone numbers from the raw data to any exact match names in the edited version so that it mass swaps the numbers from raw to new for only names with exact matches.
    Thank you.

  • @dkkatwa
    @dkkatwa 5 років тому

    A complex subject very well explained 😊