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

Поделиться
HTML-код
  • Опубликовано: 26 сен 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!

  • @jdpalm1981
    @jdpalm1981 4 года назад +27

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

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

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

  • @664196wassouf
    @664196wassouf 4 года назад +19

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

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

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

  • @francodoshe6408
    @francodoshe6408 2 года назад

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

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

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

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

  • @prashant333kumar
    @prashant333kumar 4 года назад

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

  • @taymaateyah1757
    @taymaateyah1757 2 года назад

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

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

  • @hanifsanatkhani4587
    @hanifsanatkhani4587 2 года назад

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

  • @SteveGoebler
    @SteveGoebler 2 года назад

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

  • @RoseAnnRabe
    @RoseAnnRabe 4 месяца назад

    Thank you so much for this!

  • @beardpower8670
    @beardpower8670 2 года назад

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

  • @hafeezAhmed001
    @hafeezAhmed001 2 года назад

    Thankyou, I was looking for this formula.

  • @AntonyGugenberger
    @AntonyGugenberger 2 года назад

    Fantastic - elegant solution.

  • @cajatinaswani609
    @cajatinaswani609 3 года назад

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

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

  • @edwilliamkidayan6773
    @edwilliamkidayan6773 Год назад

    This is Awesome! Thank you Leila!

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

  • @mysarababekir569
    @mysarababekir569 3 года назад

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

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

  • @Titina7183
    @Titina7183 4 года назад +1

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

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

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

  • @blankmedia01
    @blankmedia01 3 года назад

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

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

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

  • @kadhumalasadi5861
    @kadhumalasadi5861 4 года назад

    Thanks Leila from Iraq

  • @AkshayKadam94
    @AkshayKadam94 3 года назад +1

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

  • @j.fabricioelias227
    @j.fabricioelias227 7 месяцев назад

    Thanks for the trick!

  • @samanthadaroga4811
    @samanthadaroga4811 Год назад

    Really nice video. Quite helpful.

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

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

  • @shootbaaz1754
    @shootbaaz1754 2 года назад

    Awesome Ma'am, Thank you so much.

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

  • @gtitman2
    @gtitman2 Год назад

    This was an incredibly helpful video. Thank you!

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

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

  • @carlosmariopinzon1439
    @carlosmariopinzon1439 Год назад

    Always you save my projects, Leila ❤

  • @peternganga9371
    @peternganga9371 5 лет назад +6

    Thanks Leila. Another great one.

  • @JoaoSantos-jb7ul
    @JoaoSantos-jb7ul 11 месяцев назад

    Another excellent video, Leila! Thank you!

  • @tica5791
    @tica5791 5 лет назад +1

    You are a life saver Leila

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

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

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

  • @smoreiram
    @smoreiram 2 года назад

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

  • @waiyantun8629
    @waiyantun8629 2 года назад

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

  • @economia-apoio300
    @economia-apoio300 2 года назад

    Thanks, it helped me a lot!

  • @tristanchisholm5857
    @tristanchisholm5857 2 года назад

    Perfection, thank you!

  • @lorimiller623
    @lorimiller623 2 года назад

    Thank you, thank you, thank you!

  • @akhibadak
    @akhibadak 5 лет назад

    Wonderful tips.

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

  • @satviksatvik3033
    @satviksatvik3033 3 года назад

    Thank you. You made my task really easy.

  • @allforedandtech
    @allforedandtech 4 года назад

    Amazing Video and also replies from viewers

  • @sarfarajkureshi6569
    @sarfarajkureshi6569 5 лет назад +1

    Nice mam good teaching god bless you...

  • @carolyng332
    @carolyng332 2 года назад

    Thank you for sharing.

  • @soranhusain2958
    @soranhusain2958 4 года назад

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

  • @alexoliveira9710
    @alexoliveira9710 3 года назад

    Very nice. Thank you!

  • @MedStudentMedhat
    @MedStudentMedhat 5 лет назад

    Liked this lesson

  • @mariatomova9379
    @mariatomova9379 4 года назад

    You are an absolute magician!!!!!

  • @美愛-w6j
    @美愛-w6j 3 года назад

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

  • @muralidharmaraj3613
    @muralidharmaraj3613 5 лет назад

    Super Highly help ful
    Thanks

  • @coogs9335
    @coogs9335 4 года назад

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

  • @andrew3amb
    @andrew3amb Год назад

    =IF(COUNTIF(A5;"*at*"); ... ; ... ) - BEST CHOICE FOR THIS TYPE OF TASKS!

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

  • @willgreen2284
    @willgreen2284 5 лет назад

    Very clever. Nice work Leila.

  • @ravingagunawardana178
    @ravingagunawardana178 3 года назад

    Great One!

  • @shrikantbadge3978
    @shrikantbadge3978 4 года назад

    insanely helpful

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

  • @AbhinavKumar-pd1jl
    @AbhinavKumar-pd1jl 3 года назад

    you are the best 👍

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

  • @MrBhopinderkumar
    @MrBhopinderkumar 5 лет назад

    Nice explain

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

  • @MakedaBenjamin
    @MakedaBenjamin 4 года назад +3

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

  • @kalpeshpanchal7411
    @kalpeshpanchal7411 Год назад

    Really new for me

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

  • @PasangLepcha
    @PasangLepcha 4 года назад

    Thank you this is very helfful and well explained

  • @ckokse
    @ckokse 5 лет назад +1

    I was wondering about that for some time. Thanks for the informative video!

  • @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 11 месяцев назад

    It's a great function

  • @mkklindhardt
    @mkklindhardt 2 года назад

    Thank you!

  • @Not_so_whimsical
    @Not_so_whimsical 4 года назад

    This is awesome, it helped with my current assignment

  • @markparry1922
    @markparry1922 5 лет назад

    Nice technique, Leila. That will be very useful.

  • @dkkatwa
    @dkkatwa 5 лет назад

    A complex subject very well explained 😊

  • @rahulshukla2085
    @rahulshukla2085 4 года назад

    Really its great to know thanks for the video . Its very useful .........

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

  • @corazondejesus5648
    @corazondejesus5648 5 лет назад

    nice and simple