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

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

ความคิดเห็น • 586

  • @LeilaGharani
    @LeilaGharani  11 หลายเดือนก่อน

    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!

  • @jdpalm1981
    @jdpalm1981 4 ปีที่แล้ว +27

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

  • @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!

  • @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.........

  • @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.

  • @keefrocker7490
    @keefrocker7490 7 หลายเดือนก่อน

    Thanks!

    • @LeilaGharani
      @LeilaGharani  7 หลายเดือนก่อน

      Thank you! Glad the video was helpful.

  • @prashant333kumar
    @prashant333kumar 4 ปีที่แล้ว

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

  • @francodoshe6408
    @francodoshe6408 2 ปีที่แล้ว

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

  • @natraj5689
    @natraj5689 2 ปีที่แล้ว

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

  • @664196wassouf
    @664196wassouf 5 ปีที่แล้ว +19

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

  • @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

  • @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.

  • @AnuroopBangalore
    @AnuroopBangalore 4 ปีที่แล้ว

    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.

  • @TheVampireviolet
    @TheVampireviolet 9 หลายเดือนก่อน

    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

    • @LeilaGharani
      @LeilaGharani  9 หลายเดือนก่อน

      Glad I could help

  • @WaqqasAzeem
    @WaqqasAzeem 4 ปีที่แล้ว

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

  • @mach489i
    @mach489i 5 ปีที่แล้ว +118

    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

  • @taymaateyah1757
    @taymaateyah1757 2 ปีที่แล้ว

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

  • @hanifsanatkhani4587
    @hanifsanatkhani4587 2 ปีที่แล้ว

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

  • @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.

  • @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.

  • @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.

  • @SteveGoebler
    @SteveGoebler 2 ปีที่แล้ว

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

  • @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. :)

  • @cajatinaswani609
    @cajatinaswani609 3 ปีที่แล้ว

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

  • @carlosmariopinzon1439
    @carlosmariopinzon1439 ปีที่แล้ว

    Always you save my projects, Leila ❤

  • @age_of_reason
    @age_of_reason 2 ปีที่แล้ว

    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!

  • @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.

  • @NeLzKieTV
    @NeLzKieTV ปีที่แล้ว

    Thank you so much for your tutorials Leila❤

  • @elzar760
    @elzar760 3 ปีที่แล้ว +1

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

  • @beardpower8670
    @beardpower8670 2 ปีที่แล้ว

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

  • @blankmedia01
    @blankmedia01 3 ปีที่แล้ว

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

  • @mysarababekir569
    @mysarababekir569 3 ปีที่แล้ว

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

  • @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.

  • @kemle
    @kemle 5 ปีที่แล้ว

    I considered subscribing to this channel

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

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

  • @AntonyGugenberger
    @AntonyGugenberger 2 ปีที่แล้ว

    Fantastic - elegant solution.

  • @willgreen2284
    @willgreen2284 5 ปีที่แล้ว

    Very clever. Nice work Leila.

  • @hafeezAhmed001
    @hafeezAhmed001 2 ปีที่แล้ว

    Thankyou, I was looking for this formula.

  • @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!

  • @salehmohammad5170
    @salehmohammad5170 4 ปีที่แล้ว

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

  • @GrahamSchroder
    @GrahamSchroder 4 ปีที่แล้ว +3

    Saved me hours once again - thanks heaps!

  • @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 :)

  • @tica5791
    @tica5791 5 ปีที่แล้ว +1

    You are a life saver Leila

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว +1

      I'm really glad to hear that :)

  • @mariatomova9379
    @mariatomova9379 5 ปีที่แล้ว

    You are an absolute magician!!!!!

  • @Titina7183
    @Titina7183 4 ปีที่แล้ว +1

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

  • @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.

  • @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.

  • @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.

  • @edwilliamkidayan6773
    @edwilliamkidayan6773 ปีที่แล้ว

    This is Awesome! Thank you Leila!

  • @waiyantun8629
    @waiyantun8629 2 ปีที่แล้ว

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

  • @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 :)

  • @peternganga9371
    @peternganga9371 5 ปีที่แล้ว +6

    Thanks Leila. Another great one.

  • @JoaoSantos-jb7ul
    @JoaoSantos-jb7ul ปีที่แล้ว

    Another excellent video, Leila! Thank you!

  • @RoseAnnRabe
    @RoseAnnRabe 7 หลายเดือนก่อน

    Thank you so much for this!

  • @satviksatvik3033
    @satviksatvik3033 3 ปีที่แล้ว

    Thank you. You made my task really easy.

  • @samanthadaroga4811
    @samanthadaroga4811 ปีที่แล้ว

    Really nice video. Quite helpful.

  • @hassanraza-vb5ss
    @hassanraza-vb5ss 4 ปีที่แล้ว

    I was looking for this formula 😍 thanks alot Leila :)

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว +1

      You're welcome 😊

    • @hassanraza-vb5ss
      @hassanraza-vb5ss 4 ปีที่แล้ว

      @@LeilaGharani I am facing an issue, if instead of Europe i want "AT" or "DE" to come how can i do that. Thank you in advance :)

    • @hassanraza-vb5ss
      @hassanraza-vb5ss 4 ปีที่แล้ว

      Hi Leila can you please guide me on this too :)

  • @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!

  • @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!

  • @merbouni
    @merbouni 5 ปีที่แล้ว +2

    We are always impressed by your great solutions

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว +2

      I'm glad I can still impress you Réda :)

  • @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

  • @kadhumalasadi5861
    @kadhumalasadi5861 4 ปีที่แล้ว

    Thanks Leila from Iraq

  • @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

  • @AkshayKadam94
    @AkshayKadam94 4 ปีที่แล้ว +1

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

  • @smoreiram
    @smoreiram 3 ปีที่แล้ว

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

  • @j.fabricioelias227
    @j.fabricioelias227 10 หลายเดือนก่อน

    Thanks for the trick!

    • @LeilaGharani
      @LeilaGharani  10 หลายเดือนก่อน

      Our pleasure!

  • @shootbaaz1754
    @shootbaaz1754 3 ปีที่แล้ว

    Awesome Ma'am, Thank you so much.

  • @sarfarajkureshi6569
    @sarfarajkureshi6569 5 ปีที่แล้ว +1

    Nice mam good teaching god bless you...

  • @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.

  • @CarlStreet
    @CarlStreet 5 ปีที่แล้ว

    Excellent Video -- informative, clear, concise script. Good camera work, good sound, well paced and edited. Very well done! Thank you!

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

      You're very welcome. I'm glad you like the quality of the video!

  • @allforedandtech
    @allforedandtech 4 ปีที่แล้ว

    Amazing Video and also replies from viewers

  • @goodgollywally
    @goodgollywally 5 ปีที่แล้ว

    Another great video.

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

      Glad you like it Walter.

  • @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.

  • @behnamebrahimi1625
    @behnamebrahimi1625 5 ปีที่แล้ว +3

    Thanks Leila👍👌👏. Love you from Iran 😊

  • @soranhusain2958
    @soranhusain2958 4 ปีที่แล้ว

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

  • @santosdiaspontocom
    @santosdiaspontocom 3 ปีที่แล้ว

    Thanks, it helped me a lot!

  • @mezianeremila454
    @mezianeremila454 5 ปีที่แล้ว +1

    I definitely want to be your stud Leila, thanks for the quality of content you put in your videos...

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

      You're very welcome. Glad you like the videos Remila.

    • @mezianeremila454
      @mezianeremila454 5 ปีที่แล้ว

      @@LeilaGharani absolutely in love I can't wait to get in office to put all that on a worksheet, thanks again and keep up...

  • @apriltwenty4945
    @apriltwenty4945 4 ปีที่แล้ว

    Hi Leila,
    Very good info, you are a combination of beauty and brains 😊

  • @Pankaj-Verma-
    @Pankaj-Verma- 5 ปีที่แล้ว +1

    Useful and exceptionally explained! Great thanks for your kind help!

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว +1

      You're very welcome Pankaj! Glad you find the video useful.

  • @eseosauhunmwangho9805
    @eseosauhunmwangho9805 5 ปีที่แล้ว +3

    Hi Leila. Thanks Alot for your videos. They are really helpful.

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

      You're very welcome Eseosa!

  • @markparry1922
    @markparry1922 5 ปีที่แล้ว

    Nice technique, Leila. That will be very useful.

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

      Glad you find it useful Mark!

  • @AbhinavKumar-pd1jl
    @AbhinavKumar-pd1jl 3 ปีที่แล้ว

    you are the best 👍

  • @saeidlatifi9930
    @saeidlatifi9930 ปีที่แล้ว

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

  • @akhibadak
    @akhibadak 5 ปีที่แล้ว

    Wonderful tips.

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว +1

      Glad you like it Muhammad.

  • @MedStudentMedhat
    @MedStudentMedhat 5 ปีที่แล้ว

    Liked this lesson

  • @tristanchisholm5857
    @tristanchisholm5857 3 ปีที่แล้ว

    Perfection, thank you!

  • @lorimiller623
    @lorimiller623 2 ปีที่แล้ว

    Thank you, thank you, thank you!

  • @krn14242
    @krn14242 5 ปีที่แล้ว

    Very smart. Thanks Leila

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

      You're very welcome. Glad you like it.

  • @dkkatwa
    @dkkatwa 5 ปีที่แล้ว

    A complex subject very well explained 😊

  • @MissingSIRENS
    @MissingSIRENS 5 ปีที่แล้ว

    Valuable as usual ... thanks Leila

  • @mmincredible1451
    @mmincredible1451 5 ปีที่แล้ว +1

    Very useful, Thanks Lelia as always u Rock...😍

  • @美愛-w6j
    @美愛-w6j 4 ปีที่แล้ว

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

  • @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?

  • @coogs9335
    @coogs9335 4 ปีที่แล้ว

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

  • @kevinkirschten599
    @kevinkirschten599 4 ปีที่แล้ว

    Absolutely awesome!!!! Saved me time!!!!

  • @pratyushnigam8956
    @pratyushnigam8956 ปีที่แล้ว

    Thanks mam you have just made it simple.....I wasn't having answer to this question why wildcard isn't working after if.....now I can die peacefully...😆.... thank you so much mam.

  • @saugata2
    @saugata2 5 ปีที่แล้ว

    Thank you for sharing this very useful formula.

  • @ismailismaili0071
    @ismailismaili0071 5 ปีที่แล้ว

    Thank u so much Ms. Leila it is really useful video

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

      It can come in handy. Glad you like it Ismail!