Unique List of Case Sensitive Items? Expandable Range in Spilled Array Formula? EMT 1792

  Рет қаралды 6,688

excelisfun

excelisfun

Күн бұрын

Пікірлер: 66
@mattschoular8844
@mattschoular8844 2 жыл бұрын
So after pondering for a minute, I think I will go with the PQ option. Thanks Mike...
@excelisfun
@excelisfun 2 жыл бұрын
It took you that long? lol : ) : ) : ) : ) You are welcome, Matt!!!
@michaelbrown8821
@michaelbrown8821 2 жыл бұрын
I agree with the rest that PQ is the easier option, but just knowing that there is a formula to do this is indeed..epic. Nicely done, Mike.
@excelisfun
@excelisfun 2 жыл бұрын
PQ wins : ) Glad you like the fun, Michael!!!!
@HusseinKorish
@HusseinKorish 2 жыл бұрын
OMG .... i didn't know that INDEX function can do that .....Thanks Mike
@excelisfun
@excelisfun 2 жыл бұрын
O, Yes!!!!! INDEX has been able to create dynamic ranges since it first came out many decades ago : ) : ) : ) : )
@ivanmamchych5802
@ivanmamchych5802 2 жыл бұрын
Thank you, Mike, for interesting lesson. If Power Query option is clear and obvious, the second scenario requires "mental acceptance and brain digestion" 🙂. I could hardly believe it can be done, but after all - I am taking my hat off, sir... Awesome!
@excelisfun
@excelisfun 2 жыл бұрын
I am so glad that you enjoy the videos. Thanks for the hats off, Ivan!!!!!
@darrylmorgan
@darrylmorgan 2 жыл бұрын
Boom!2 Awesome Solutions,Power Query A Lot Easier If You Don't Mind Refreshing...Thank You Mike :)
@excelisfun
@excelisfun 2 жыл бұрын
Yes, indeed, PQ Simplicity is well worth the price of a refresh : )
@lmk001
@lmk001 2 жыл бұрын
Amazing. I don't understand a lot of it but if I ever needed the formula to do it outside of power query I have it.
@excelisfun
@excelisfun 2 жыл бұрын
Glad you like it : ) But the PQ easy way is the way to go!!
@SyedMuzammilMahasanShahi
@SyedMuzammilMahasanShahi 2 жыл бұрын
Thanks Mike for this EXCELlent video.
@excelisfun
@excelisfun 2 жыл бұрын
You are welcome, Fellow Teacher : ) : ) : )
@chrism9037
@chrism9037 2 жыл бұрын
1st! Excellent Mike! I like the simpler solution of PQ
@excelisfun
@excelisfun 2 жыл бұрын
First Place Tie: Syed Hassan and Chris M!!!! That is OK, I got 1st trophies for both of you!!! : ) : ) : ) Nooooo doubt, PQ is so simple. Thankfully, Microsoft created M Code in Power Query to be case sensitive : )
@ricos1497
@ricos1497 2 жыл бұрын
Nice video Mike. My first thought was to use CHAR() and CODE() to get the UNIQUE list. Thus: =BYROW(IFERROR(CHAR(UNIQUE(CODE(MID(fProd[Product],SEQUENCE(,MAX(LEN(fProd[Product]))),1)))),""),LAMBDA(a,TEXTJOIN("",TRUE,a))) will return the unique product list, which you can then do the count, headers etc on. You can also use EXACT too, but rather than compare to the table, just total the upper or lower case count for each product name, which would always be different if the names are the same but with different case: =LET(p,fProd[Product], m,MAX(LEN(p)), t,MID(p,SEQUENCE(,m),1), r,BYROW(--EXACT(t,UPPER(t)),LAMBDA(a,SUM(a))), u,CHOOSECOLS(UNIQUE(HSTACK(p,r)),1), h,HSTACK(u,COUNTIF(p,u)), h) I'm guessing that the above would be marginally quicker on a large table due to not having to reference the above rows in each row. Probably!
@excelisfun
@excelisfun 2 жыл бұрын
Awesome, Rico S!!! Very Clever : ) I have added the formulas to the download workbook so the Team can have even more fun : )
@johnborg5419
@johnborg5419 2 жыл бұрын
Thanks Mike. The Formula is Fantastic!!!! :) :)
@excelisfun
@excelisfun 2 жыл бұрын
You are welcome, Formula Guy John!!!!
@Softwaretrain
@Softwaretrain Жыл бұрын
Thanks for the great solution. Power query shine in this example but for the alternative formula my solution is: =LET( data,fProd[Product], product,REDUCE(,data,LAMBDA(a,r,IF(SUM(--EXACT(a,r)),a,VSTACK(a,r)))), count,BYROW(product,LAMBDA(r,SUM(EXACT(r,data)))), tbl,HSTACK(product,count), result,VSTACK({"Product","Count"},tbl),result)
@mohamedchakroun4973
@mohamedchakroun4973 2 жыл бұрын
Great mike :-) we can't believe that excel could do that. Always i like excel formulas than pq because it make us learn and discover many things:-)
@excelisfun
@excelisfun 2 жыл бұрын
Formulas are fun!!!! Glad you like it, Mohamed : )
@BhavyaGupta
@BhavyaGupta 2 жыл бұрын
Great solution Mike sir, especially the part where you used Dynamic reference with Index 😀 This is what I tried with some of the new functions - =LET(rng, Table1[Column1], rng_1, SCAN("",SEQUENCE(ROWS(rng)), LAMBDA(x,y,LET(a,TAKE(rng,y),b, INDEX(rng,y,1),IF(SUM(--EXACT(b,a))>1,"",b)))), rng_2, FILTER(rng_1, rng_1""), rng_3, MAP(rng_2, LAMBDA(z, SUM(--EXACT(z,rng)))), HSTACK(rng_2,rng_3))
@excelisfun
@excelisfun 2 жыл бұрын
Great Spilled Formula, Bhavya!!! I have added your solution to the download Excel file so that the rest of the Team can see it also : ) Go Team!!!!
@BhavyaGupta
@BhavyaGupta 2 жыл бұрын
@@excelisfun Glad it found place there😃
@excelisfun
@excelisfun 2 жыл бұрын
@@BhavyaGupta Me too : ) : ) : )
@nadermounir8228
@nadermounir8228 2 жыл бұрын
Thanks Mike for this great video. The thing that confuses is what the value of r is here ? The count is a bit difficult to understand how it was done ?
@excelisfun
@excelisfun 2 жыл бұрын
r represents each row in the array inside of BYROW. It is difficult to understand at firts becasue it is a whole new way of building worksheet formulas. 100% conceptually different than how we did it for last 40 years.
@nadermounir8228
@nadermounir8228 2 жыл бұрын
@@excelisfun I got it now. Thank u so much Mike.
@excelisfun
@excelisfun 2 жыл бұрын
@@nadermounir8228 You are welcome so much!
@KevinPGA
@KevinPGA 2 жыл бұрын
Continually AMAZING!!! 👍👍👍
@excelisfun
@excelisfun 2 жыл бұрын
Glad it continually amazes, Kevin!!! I like the new Fred Finstone icon : )
@B1897forzajuve
@B1897forzajuve 2 жыл бұрын
Hi Mike. I was missing these videos. Not saying that the statistical analysis playlist is not amazing, but I don't have a lot of time to start the playlist from the very beginning. Hopefully this summer I will finish it. Do you have any update on when the new functions will be available in Excel?
@excelisfun
@excelisfun 2 жыл бұрын
No worries, I cover such a broad range of topics in Excel and Power BI that you can always pick and choose just what you want : )
@excelisfun
@excelisfun 2 жыл бұрын
I do not have an update. But for Microsoft 365, it really should be soon. Functions like VSTACK, HSTACK, BYROWS and so many more just change everything and makes it more fun.
@Excelambda
@Excelambda 2 жыл бұрын
Great video!! ✌😉 The main idea is to create expandable ranges. The INDEX(...):r is super ok for spreadsheet ranges, but can not work with arrays. As a simple experiment if you change =LET( p,fProdAn[Product]&"", ...(appending an empty string, is an array calculation) the formula will return an error. So only if we want larger spectrum for our formulas or to contain them with other formula constructions, or lambdas, they have to accept array calculations. =LET(a,fProdAn[Product], m,MAP(SEQUENCE(ROWS(a)),a,LAMBDA(x,y,SUM(--EXACT(INDEX(a,SEQUENCE(x)),y)))), f,FILTER(a,m=1),b,BYROW(f,LAMBDA(x,SUM(--(EXACT(x,a))))), VSTACK({"Product","Count"},HSTACK(f,b)))
@excelisfun
@excelisfun 2 жыл бұрын
Are you saying the above posted formula will not have this problem? You and I worked on this one a few months back, and both of our solutions did not work when there was a tie, like Carlota and CARLOTA. So this is why I switched to INDEX:r So you are prosing INDEX(a,SEQUENCE(x)) rather than INDEX:r, right? I will go and try it now. Thanks for your wise guidance, O Spilled Formula Master ExcelLambda : ) : ) : ) : )
@excelisfun
@excelisfun 2 жыл бұрын
I see - it works great. I have added it to download for the Team : ) : ) : ) : )
@Excelambda
@Excelambda 2 жыл бұрын
@@excelisfun INDEX(...):r works fine with ranges, it is short and elegant, is useful as last stage dashboard reports, INDEX(a,SEQUENCE(x)) creates expandable range anywhere. This is the only difference. ✌🙏 Anyway, for fun only, I took the challenge to write a formula with no expandable ranges and without EXACT ☺ =LET(a,fProdAn[Product], m,IFERROR(CODE(MID(a,SEQUENCE(,MAX(LEN(a))),1)),32), u,UNIQUE(m),p,TRIM(BYROW(u,LAMBDA(x,TEXTJOIN(,,CHAR(x))))), b,BYROW(u,LAMBDA(x,SUM(--BYROW(m=x,LAMBDA(y,AND(y)))))), VSTACK({"Product","Count"},HSTACK(p,b))) 😉
@yasertaherkhani3174
@yasertaherkhani3174 2 жыл бұрын
Very Nice❤
@excelisfun
@excelisfun 2 жыл бұрын
Glad you like it, Yaser!!!
@markpodesta4605
@markpodesta4605 2 жыл бұрын
Thank you Mike. Magic! 😀
@excelisfun
@excelisfun 2 жыл бұрын
You are welcome, Mark!!!!
@MalinaC
@MalinaC 2 жыл бұрын
Thanks for awesome video! 🙂👍
@excelisfun
@excelisfun 2 жыл бұрын
You are welcome, Teammate Malina C : ) : ) : )
@BaniMoniah
@BaniMoniah 2 жыл бұрын
We’ll take the power query option 😅
@excelisfun
@excelisfun 2 жыл бұрын
So far most of the votes are for PQ : )
@hermitcard4494
@hermitcard4494 2 жыл бұрын
Question: How much Office App(Android)'s Excel can be pushed to do this and other magic stuff?
@excelisfun
@excelisfun 2 жыл бұрын
You mean Excel on the phone? If you are asking about Phone Excel, that app does almost nothing as compared to a Windows PC Microsoft 365 Excel. Phone Excel is not a real analytical tool. It can do some quick and simple stuff, though : )
@hermitcard4494
@hermitcard4494 2 жыл бұрын
@@excelisfun Yeah, I guess it doesn't have the same capability as PC Excel, but the question is how much can mobile Excel be pushed? What are its limits?
@excelisfun
@excelisfun 2 жыл бұрын
@@hermitcard4494 Microsoft's plan is to have Excel the same on all devices. But they are not close to achieving this. I do not think that currently the phone version can be pushed too far. Here is a KZbin channel that shows phone Excel (lots of finance): kzbin.info/door/Umr9ElmdRotCIpcvA-3QRQ
@excel_along_the_way
@excel_along_the_way 2 жыл бұрын
Hi Mike, never used PQ, I think I will start now.😂
@excelisfun
@excelisfun 2 жыл бұрын
Really? You never used Power Query? It can do so many wonderful that that the other tools can not do as well!!! Today is a new begging for you: Power Query happiness : )
@excel_along_the_way
@excel_along_the_way 2 жыл бұрын
@@excelisfun , I started this week with PQ and managed to clean a messy data list out of Oracle. It is very intuitive but there are things that work differently to excel like the TRIM feature. When I got my head around that I managed to solve the query. Keep well.
@murat.hasanoglu
@murat.hasanoglu 2 жыл бұрын
Epic
@excelisfun
@excelisfun 2 жыл бұрын
Glad it is epic for you, Murat!!!!
@ExcelWizard
@ExcelWizard 2 жыл бұрын
Great video Another function with Case sensitive FILTERXML =LET(z,fProd[Product],p,FILTERXML(""&TEXTJOIN("",,z)&"","//m[not(preceding::*=.)]"),IF({1,0},p,MMULT(--EXACT(p,TRANSPOSE(z)),ROW(z)^0)))
@excelisfun
@excelisfun 2 жыл бұрын
FILTERXML beautiful, Excel Wizard!!!!! I have added it to download file to all Team can see : ) Go Team!!!!!!!!!
@ogwalfrancis
@ogwalfrancis 2 жыл бұрын
For Dynamic Array method, very many times of watching this video is required to understand it😂😂😂, I go with Power Query but what if you don't want a case sensitive count but you want to use power query where there are same items of different cases
@excelisfun
@excelisfun 2 жыл бұрын
Very true. PQ easy, Spilled Array Formula hard ; )
@Al-Ahdal
@Al-Ahdal 2 жыл бұрын
1st comment
@excelisfun
@excelisfun 2 жыл бұрын
First Place Tie: Syed Hassan and Chris M!!!! That is OK, I got 1st trophies for both of you!!! : ) : ) : )
@Excelambda
@Excelambda 2 жыл бұрын
For fun , no expandable range : =LET(p,fProdAn[Product], t,TOROW(p),a,EXACT(p,t),u,--UNIQUE(a), b,BYROW(u,LAMBDA(x,UNIQUE(FILTER(t,x),1))), s,BYROW(u,LAMBDA(x,SUM(x))), VSTACK({"Product","Count"},HSTACK(b,s)))
@Excelambda
@Excelambda 2 жыл бұрын
Or this one, still no expandable , embeds a lambda b(i), for b() calculates product, for b(1) counts: =LET(p,fProdAn[Product], t,TOROW(p),a,EXACT(p,t),u,--UNIQUE(a), b,LAMBDA([i],BYROW(u,LAMBDA(x,LET(y,XLOOKUP(1,x,t),z,SUM(x),IF(i,z,y))))), VSTACK({"Product","Count"},HSTACK(b(),b(1))))
@nileshshah7728
@nileshshah7728 3 ай бұрын
=TEXTAFTER(UNIQUE(BYROW(EXACT(fProdAn[Products],TRANSPOSE(fProdAn[Products]))*1,LAMBDA(a,TEXTJOIN("-",TRUE,a)))&"|"&fProdAn[Products]),"|") This will give UNIQUE case sensitive list of Products
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 60 МЛН
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 30 МЛН
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 38 МЛН
Try This Instead of the XLOOKUP
10:06
Kenji Explains
Рет қаралды 127 М.
You WON'T BELIEVE These 10 HIDDEN Features in Excel Power Query 🤯
12:17
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 790 М.
Try The DGET Function Instead of INDEXMATCH & XLOOKUP
12:29
Kenji Explains
Рет қаралды 64 М.
Learn Regression Analysis in Excel in Just 12 Minutes
12:34
Kenji Explains
Рет қаралды 10 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН