Тёмный

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

Leila Gharani
Подписаться 2,7 млн
Просмотров 720 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 585   
@LeilaGharani
@LeilaGharani 8 месяцев назад
Grab the file I used in the video from here 👉 pages.xelplus.com/if-wildcard-file
@abubakarshehuabubakar1082
@abubakarshehuabubakar1082 5 лет назад
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.
@WaqqasAzeem
@WaqqasAzeem 4 года назад
Thank you... I searched everywhere but no solution... You're a life saver.
@LeilaGharani
@LeilaGharani 4 года назад
Glad to help :)
@mach489i
@mach489i 5 лет назад
This does the job as well: =IF(COUNTIF(A5,"*AT*")>0,"AT","")
@Lunatyk001
@Lunatyk001 5 лет назад
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 лет назад
I LIKE this! Thank you for sharing : )
@luisparra2740
@luisparra2740 5 лет назад
Nice. It works like this as well: =IF(COUNTIF(A5,"*AT*"),"AT","")
@merbouni
@merbouni 5 лет назад
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
@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.👍
@cajatinaswani609
@cajatinaswani609 3 года назад
Every time I learn something new on this channel. Great work 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!
@blankmedia01
@blankmedia01 3 года назад
You have some of my favourite content in the world. Thank you
@jdpalm1981
@jdpalm1981 4 года назад
Holy crap!!! That was way more informative than searching through stackoverflow!
@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.
@elzar760
@elzar760 3 года назад
Been looking for something like this. This is awesome. Thank you!
@LeilaGharani
@LeilaGharani 3 года назад
You're very welcome!
@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 :)
@jansentanguilan1739
@jansentanguilan1739 5 лет назад
I never tought to use the isnumber function. Awesome Leila. Thank you.
@LeilaGharani
@LeilaGharani 5 лет назад
You're very welcome. Glad you like it!
@hafeezAhmed001
@hafeezAhmed001 2 года назад
Thankyou, I was looking for this formula.
@Softwaretrain
@Softwaretrain 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
@edwilliamkidayan6773
@edwilliamkidayan6773 Год назад
This is Awesome! Thank you Leila!
@carlosmariopinzon1439
@carlosmariopinzon1439 Год назад
Always you save my projects, Leila ❤
@LeilaGharani
@LeilaGharani Год назад
😊
@jays9591
@jays9591 Год назад
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.
@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
@samanthadaroga4811
@samanthadaroga4811 Год назад
Really nice video. Quite helpful.
@behnamebrahimi1625
@behnamebrahimi1625 5 лет назад
Thanks Leila👍👌👏. Love you from Iran 😊
@BrianMegilligan
@BrianMegilligan 5 лет назад
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 лет назад
You're very welcome Brian. I'm really glad if I can provide some useful alternatives.
@andrew3amb
@andrew3amb Год назад
@@LeilaGharani THANKS! But there is other variant how to say "contains" : =IF(COUNTIF(A5;"*at*"); ... ; ... ) - BEST CHOICE FOR THIS TYPE OF TASKS!
@sarfarajkureshi6569
@sarfarajkureshi6569 5 лет назад
Nice mam good teaching god bless you...
@LeilaGharani
@LeilaGharani 5 лет назад
I'm glad you like it.
@willgreen2284
@willgreen2284 5 лет назад
Very clever. Nice work Leila.
@LeilaGharani
@LeilaGharani 5 лет назад
Glad you like it Will.
@tristanchisholm5857
@tristanchisholm5857 2 года назад
Perfection, thank you!
@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!
@carolyng332
@carolyng332 2 года назад
Thank you for sharing.
@eseosauhunmwangho9805
@eseosauhunmwangho9805 5 лет назад
Hi Leila. Thanks Alot for your videos. They are really helpful.
@LeilaGharani
@LeilaGharani 5 лет назад
You're very welcome Eseosa!
@美愛-w6j
@美愛-w6j 3 года назад
This is very useful to me although need some thinking to understand
@ravingagunawardana178
@ravingagunawardana178 3 года назад
Great One!
@Simlaoui
@Simlaoui 5 лет назад
nice video leila. very inspiring video thank you. my humble solution would be this =IF(SUBSTITUTE(A5,"AT","")=A5,"","AT"). in french version of excel ► =SI(SUBSTITUE(A5;"AT";"")=A5;"";"AT") . i used IF but without *. thank you .
@LeilaGharani
@LeilaGharani 5 лет назад
Many thanks for your contribution!
@Taxcentricals
@Taxcentricals Год назад
It's a great function
@rahulshukla2085
@rahulshukla2085 4 года назад
Really its great to know thanks for the video . Its very useful .........
@vacilando86
@vacilando86 4 года назад
I'm a fan of you.
@MissingSIRENS
@MissingSIRENS 5 лет назад
Valuable as usual ... thanks Leila
@LeilaGharani
@LeilaGharani 5 лет назад
Glad you like it!
@PasangLepcha
@PasangLepcha 4 года назад
Thank you this is very helfful and well explained
@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?
@kalpeshpanchal7411
@kalpeshpanchal7411 Год назад
Really new for me
@michaelcarman5521
@michaelcarman5521 3 года назад
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.
@andrew3amb
@andrew3amb Год назад
=IF(COUNTIF(A5;"*at*"); ... ; ... ) - BEST CHOICE FOR THIS TYPE OF TASKS!
@sanjayabandara2679
@sanjayabandara2679 4 года назад
Hi Leila, your lessons really helpful for me always since i was limited knowledge with excel and but now having more and more knowledge with spreadsheet sheets that i can do my job more easily than previous. if you have any web or page please share that. Thank you very much!!! greeting from Sri lanka
@kvast13
@kvast13 4 года назад
I remember using the search function like this, but i instead wrote a >0 in my ifs logical test. Will give same result :-)
@durgeshrai8938
@durgeshrai8938 3 года назад
Superb 👍
@raeaustin
@raeaustin 4 месяца назад
What if you have two columns of data and you want to determine a partial match for each column by row?
@peteringvorsen890
@peteringvorsen890 5 лет назад
Thanks Leila😊 Once again, you show a learning video that's easy to understand for everyone👍
@LeilaGharani
@LeilaGharani 5 лет назад
You're very welcome Peter! Glad it comes across like that.
@Pv488
@Pv488 5 лет назад
Will you do a PowerPivot series as well? These are terrific videos
@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?
@corazondejesus5648
@corazondejesus5648 5 лет назад
nice and simple
@LeilaGharani
@LeilaGharani 5 лет назад
Glad you like it.
@727.ashish
@727.ashish 5 лет назад
Hi, let me just thank first for how helpful your videos have been for quiet some time now, I have recently came across a complex problem which takes a lot of time to do, If I could contact you and share this maybe you can take it on, it'll be a great help to others too. Hope we talk soon.
@mirzafarhan7883
@mirzafarhan7883 Год назад
Hi I am a regular follower of your VDOs and learnt a lot from them. I want to ask a question that How to extract Alphanumeric if and only if i put numbers . For example I Xlookup a cell with a value of ABC1234 and if I type only 1234 the result should search and give me ABC1234? Is there any way to do such? Please advice.
@iamcharith
@iamcharith Год назад
Thanks for the wonderful video. A quick question, how to multiple search results using this formula? For example, if "AT" or "DE", it should be Europe, if "US" return value should be "USA", if "IN" return value should be "India"? Please share a like if you have a video for this? Thank you as always.
@agustin47
@agustin47 2 года назад
I feel it is easier to use a countif as a workaround, for example =IF(COUNTIF(A1,”*AT*”)>0,”yeah”,”nope”)
@ExcelHubPro
@ExcelHubPro 5 месяцев назад
How can we do if value find DE should return DE if At Should return AT?
@LuisFernando-yd3mx
@LuisFernando-yd3mx 3 года назад
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.
@tunneloflight
@tunneloflight Год назад
Also - Even though Conditional Formatting will NOT allow wildcards, lambda .... - as it turns out you can use name manager to define a function, or conceal a lambda function. Then Conditional Formatting WILL allow all of these things.
@geneticist1980
@geneticist1980 Год назад
Hi, it is very helpful and I want to find if it is possible if that specific text in a cell is found, then can we return the whole word? Thanks
@syedfaraz1903
@syedfaraz1903 Месяц назад
Good madam ❤
@Asifasadkhan
@Asifasadkhan 2 года назад
Thank you
@664196wassouf
@664196wassouf 4 года назад
You have saved my life in excel so many times. Thank you
@babakkakavand1437
@babakkakavand1437 5 лет назад
was excellent Leila, Thanks for sharing
@LeilaGharani
@LeilaGharani 5 лет назад
You're very welcome. Glad you like it.
@brendensong8000
@brendensong8000 5 лет назад
Wow! thank you for the helpful tip! this is great! I learned a lot!
@LeilaGharani
@LeilaGharani 5 лет назад
You're very welcome. Glad it is useful.
@scarlet5322
@scarlet5322 2 года назад
Hello your videos are helpful the video only shoes for 2 criteria how more than 2? hope youll notice.
@faheem2186
@faheem2186 4 года назад
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",""))
@johnborg6005
@johnborg6005 5 лет назад
That's great leila. Thanks.
@LeilaGharani
@LeilaGharani 5 лет назад
You're welcome. Glad you like it John.
@taizoondean689
@taizoondean689 3 года назад
Thanks 🙏👍
@dilsherbalouch
@dilsherbalouch 3 года назад
You are awesome
@ahjwille
@ahjwille 5 лет назад
I have to setup a bonus worksheet. If gross profit per deal is less than or equal to $1000 then it's 2% of total gross, $1001-1099 is 3% and if it's greater than or equal $1100 then 5%. How do I do that on excel? Thank you.
@yulinliu850
@yulinliu850 5 лет назад
Good job! Thanks Leila!
@LeilaGharani
@LeilaGharani 5 лет назад
You're very welcome!
@christinelowery2415
@christinelowery2415 Год назад
Have you got an answer for doing this from a list and returning corresponding categories?
@nazarkamal8831
@nazarkamal8831 Год назад
Informative
@ifirexx5673
@ifirexx5673 5 лет назад
Really really awesome!!!
@LeilaGharani
@LeilaGharani 5 лет назад
Glad you like it!
@alexrosen8762
@alexrosen8762 4 года назад
Great stuff! Thanks Leila :-)
@prateekkalia8839
@prateekkalia8839 3 года назад
Hi Lelia, I checked most of your videos and couldn't find how to highlight cells with specific text in excel. In my case, I have a pool of 13 words and I want to write just one rule that consists of all the 13 words so that if the cells have any of those 13 words is highlighted. I'm sharing a sample of what I wrote for two words (but it is not working) =or($A$2:$D$896=“service”, $A$2:$D$896=“quality”)
@babarqureshi5043
@babarqureshi5043 5 лет назад
Nice and helpful 👍
@LeilaGharani
@LeilaGharani 5 лет назад
Glad to hear that! Thanks for the feedback.
@richardbroadhurst2541
@richardbroadhurst2541 4 года назад
What if I have a list of words (like AT and DE but more, maybe 10) and I want to search a column and every time it finds one of those words in the list it will return that word (like AT or DE) Also your videos are great, very clear. Thank you :)
@gulshantipstricksexceltall2343
@gulshantipstricksexceltall2343 4 года назад
nice video
@mswordexpert
@mswordexpert 5 лет назад
Thanks a lot, I have a none Excel question: You are showing your face in many portions of this video, you didn't do this before, is it a new RU-vid constraint in order to get channel monetized?
@LeilaGharani
@LeilaGharani 5 лет назад
No, not really. Just trying to change things up a bit so it doesn't become too boring :)
@mswordexpert
@mswordexpert 5 лет назад
@@LeilaGharani you are great. keep it up.
@dhiren527
@dhiren527 4 года назад
Is it possible to do this with a range/array of strings, As in, instead of 2 (De or At), could we have excel search through hundreds of cells in a column, and return a value if isnumber returns true?
@lilyfullery4779
@lilyfullery4779 Год назад
Thanks
@maricvta
@maricvta Год назад
Hello. Is there any formula on how to match data as in the following example. First sheet: In one column are data (A, B, C...), in another column are data (1, 2, 3...). Those colums should be related: A=1, B=2, C=3...). Second sheet: There is third column, and I want data to be shown automaticaly, when I chose "A" (from a drop down list using Data Validation) in fourth column as "1".
@banwarifageriaexcelclasses1447
very helpful video
@moejoe7905
@moejoe7905 4 года назад
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.
@jonmezzadri9407
@jonmezzadri9407 4 года назад
Hi Leila! Thanks for the video. Was wondering if you can do a text match with a range of cells instead of having to reference each one individually (lets say you have 20 words instead of just DE and AT). Is there a formula for that? Thanks in advance.
@lifecocktail4890
@lifecocktail4890 2 года назад
I was struggling with this myself. Try the following =IF(SUMPRODUCT(--ISNUMBER(SEARCH($A$1:A$20,B1)))>0,"YES","NO"), where $A$1:A$20 is the range with the words and B1 is the cell you are checking against. If there is a partial match, then the formula should return YES.
@andrewmoss6449
@andrewmoss6449 5 лет назад
Very useful!
@LeilaGharani
@LeilaGharani 5 лет назад
Glad you like it Andrew.
@Luth1us
@Luth1us 5 лет назад
Thanks for your tips. How about an array of values instead a single cell? I mean, sometimes we need to find the nth position of such value (criteria) and we we use the array formula SMALL(IF(RANGE=CRITERIA,ROW(RANGE)-MIN(ROW(RANGE))+1,NTH_POSITION) . How to make wild card work in this particular use of IF formula once is a range to search the value instead a single cell???
@LeilaGharani
@LeilaGharani 5 лет назад
I'm not sure I fully understand - but maybe the aggregate function with search function included in the criteria could filter out the matches?
@Luth1us
@Luth1us 5 лет назад
@@LeilaGharani There are situations that require to get the Nth position of a value based a list of repeatable values. Unfortunately the MATCH function only provides the first position. The formula I wrote uses the IF function, but when I use the wild card it doesn't work. I hope I explained it. Thanks anyway
@mhim4345
@mhim4345 4 года назад
Hi, great teacher, I need to know how to get different return, like, if AT get Europe, or if DE get France ? Get different returns with different values.
@happydmand6345
@happydmand6345 4 года назад
=IF(ISNUMBER(SEARCH($C$4,A7)),"Europe",IF(ISNUMBER(SEARCH($C$3,A7)),"France",""))
@ajinatphnomsampov
@ajinatphnomsampov 5 лет назад
Hi Leila can you share about To do list in excel? Thanks for all your explanations
@cristianocr7174
@cristianocr7174 3 года назад
Thanks, beautiful 😍😚
@excelkiclass3424
@excelkiclass3424 Год назад
350P,351P 319SP,320SP 1521SP,1523SP 350GP,351GP IF WE HAVE THESE TEXT(P ,SP,GP) MENTION IN 4 ROW WISE IN EXCEL THEN HOW TO FIND THE TEXT
@mohamedelhageen2514
@mohamedelhageen2514 2 года назад
What if same example but with numbers only?! I have a list of random numbers in a column and i want pick for example 4 different matching-criteria numbers (with starting with *) and placed them in another sheet onto 4 rows ? hope it is clear
@lutubanget
@lutubanget 4 года назад
Thank you.
@sZenji
@sZenji 5 лет назад
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!
@kennethbatilo1624
@kennethbatilo1624 2 года назад
If I have a table of company codes, and on another cell, I want a drop down, with data validation, only the codes with the letters "IL" in them. Do you have a video for that kind of thing? I normally use INDIRECT to make my drop down list from a table, but I want it to list only cells with "IL" in them. Not sure how else to describe it on here, wish I could post a picture to show what I mean lol
@TracyOsimowicz
@TracyOsimowicz Год назад
What if you want to identify multiple instances of the text within the same cell? So, finding cells that have multiple URLs containing "" for example?
@NaijaBarbieDoll
@NaijaBarbieDoll 4 года назад
Hi Leila! Needing some help :) I’m trying to get a cell in cell C2 with text to change purple if the word “dog” is in cell A2 and going all the way down the entire spreadsheet. The word “dog” may be imbedded within another word such as frenchbulldog set up as one word or bulldogpuppy again one word but “dog is now in the middle or even bulldog is this possible? Awesome videos really learning a lot of your channel!
@bpkingcobra
@bpkingcobra 5 лет назад
Great stuff as always! Will you be doing a scrolling chart off of a dynamic table?
@zaighamuddinfarooqui1705
@zaighamuddinfarooqui1705 5 лет назад
Awesome.
@AlphizzleMusic
@AlphizzleMusic 5 лет назад
If I have a single cell that contains a lot of info that is squished together (no spaces between the words or commas), such as "coat,hat,shoes" ....what is the easiest formula I can use to get a return yes result, if the cell contains the word "hat"? Nothing I try seems to work and I don't want to have to reformat the entire sheet that my friend made 😭
@JamesAnderson-yp5vo
@JamesAnderson-yp5vo 5 лет назад
The suggestion that Alpha Slate made in his comment should get you the desired result. Here it is modified for your request. Tested it myself and it works! =IF(COUNTIF(A5,"*hat*")>0,"yes","")
@mubasshir149
@mubasshir149 3 года назад
Hi Laila, how are you, for wildcard if formula like you use separately alfa to pick from other cell but i dont mention separately alfa can i pick from other cell.
Далее
When You Should Use the New Excel LET Function
17:18
Просмотров 764 тыс.
Say Goodbye to IF Statements in Excel with SWITCH
7:45
Vlookup on Partial Matches in Excel
14:40
Просмотров 61 тыс.
Master the IF Formula in Excel (Beginner to Pro)
11:16
Просмотров 475 тыс.