Array Formula - List All Suppliers by Material in Single Cell with Line Feed, Excel Magic Trick 1579

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

КОМЕНТАРІ • 104

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

    Be sure to check out the Bonus Formula at 05:08 : )

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

      @Edy F I have NO idea how to do that. Try this great Excel Question site with 100s of Excel masters: mrexcel.com/forum

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

      @Edy F Can you explain again with example for me ?
      I hope i can help...

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

    Brilliant Mike!

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

      Glad it is brilliant for you, Roberto!!!! Thank you for your support!

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

    Wow! I don't know i ever missed this. The countifs at the beginning was the first eye opener for me.

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

    Great Excel trick once again.
    For anyone looking to create a single column or row array use the following dynamic array formula (can be entered with CSE or modified to do so):
    =TRIM(MID(SUBSTITUTE(A1, Delimiter, REPT(" ", LEN(A1))), (SEQUENCE(1, (LEN(A1) - LEN(SUBSTITUTE(A1, Delimiter, ""))) / (LEN(Delimiter)) + 1, 1, 1) - 1)*LEN(A1) + 1, LEN(A1)))
    A1 is the cell with the delimited list and Delimiter is the separator used (in Name Manager so it can be easily changed).
    SUBSTITUTE(A1, Delimiter, REPT(" ", LEN(A1))) --> delimited list (with delimiter replaced with spaces) (used for MID() formula text argument)
    (LEN(A1) - LEN(SUBSTITUTE(A1, Delimiter, ""))) / (LEN(Delimiter)) + 1 --> finds total number of items in list
    SEQUENCE(1, (LEN(A1) - LEN(SUBSTITUTE(A1, Delimiter, ""))) / (LEN(Delimiter)) + 1, 1, 1) --> finds item position in string (used for MID() formula start_num argument)
    LEN(A1) --> finds total number of characters in list string (used for MID() formula num_chars argument)
    MID() --> creates array of items with extra spaces given text string, item start position, number of characters to return
    TRIM() --> removes extra spaces
    Thanks to Extended Office for the original formula to find the total number of items in a delimited list
    www.extendoffice.com/documents/excel/3134-excel-count-comma-separated-values-in-a-single-cell.html
    =LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1), "," ,""))+1
    This formula only works for single character delimiters. I modified it slightly by dividing the above formula by the length of the delimiter.
    Also thanks to Extended Office for the original formula to extract text between commas, other delimiters
    www.extendoffice.com/documents/excel/4862-excel-extract-text-between-second-and-third-comma.html
    =TRIM(MID(SUBSTITUTE(A1, ",", REPT(" ", 100)), 200, 100))
    This formula returns text between the second and third commas of a list. I modified it slightly by finding the total number of items in the list.
    My formula creates a column array. To make a row array wrap the formula in the TRANSPOSE() formula or switch the rows and columns arguments of the SEQUENCE() formula. Can also be used in conjunction with the TEXTJOIN() formula to combine multiple arrays into one array.

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

      Nice... but little too complicated for me to understand - ExcelsFun can you please make a video on this

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

      Deepak Chopra I can try to explain it in better detail. I have a spread sheet that I can upload somehow. ExcelIsFun please do make a video if you want of my List to Array formula

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

      I’ll upload it to my google drive or OneDrive and share the website address. I broke the formula down step by step in the spreadsheet

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

      This could also be done using the single item method by finding the position of each item in the list and returning that item. Then copying the formula down would increment through the nth item

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

      @@patrickschardt7724 Thanks

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

    Bonus formulas are back by very popular demand!! In this case the bonus formula is the way to go!

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

      I still like CHAR(10)... It is so explicit... Thanks for your support, Richard Hay!!!

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

    Thanks for bonus. It's useful to know that ALT+Enter can be used in formula

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

      Alt + Enter in formula or in cell : )

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

    Thank you for another magical video Mike, checking the last cell is also something very important that you emphasise. 🤗

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

      Yes, we all avoid errors by following this helpful rule: F2!!!!

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

    Is it possible to give more than 1 thumb up? The new dynamic formulas are really wonderful... what a pity they are not yet available to the general public...

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

      Not available to the general public, yet. But they will. And since, in the long run, Microsoft says that Office 365 will be the ONLY version that they sell, eventually everyone will have them. It will be a huge shirt, because I have shown in earlier videos, even simple budget problems offer a choice of the old way where you create formulas and copy to other cells, or the new dynamic array way, like in this video: ua-cam.com/video/patDv_7z0Q4/v-deo.html

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

    From the preview I was thinking this was going to be a freakish formula. Excel is making it easier, but I would never have been able to figure out how to join all those items in a cell without your teaching. Thank you Mike.

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

      You are welcome, N Sanch01!!!

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

    First to comment
    Awesome video bro
    Very informative

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

      I give you the First Place Trophy!!!!!!!

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

    Great sir👌👌🙏🙏🙏🙏

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

    That ALT+ENTER bonus formula trick is awesome. Haven’t used it like that before. I will now.
    These Excel Quickies really are fun to watch: they are like a quick snack on the go, always with a cherry on top...
    Love it!
    (I like your video accelerator tricks, too, BTW)

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

      I am not sure what you mean by "video accelerator tricks". What is that?

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

      Mike, the small ‘jump cuts’ that speed up the flow of your videos.

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

      @@GeertDelmulle , yes, most humans don't like long videos...

  • @AweshBhornya-ExcelforNewbies
    @AweshBhornya-ExcelforNewbies 5 років тому

    Mike you happen to have that great way and style of teaching. Thanks for all your training material shared

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

      You are welcome, Awesh!!! Thanks for your kind words and thank you for your support with your comment, thumbs up and your Sub : )

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

    Hi Mike.. very cool use of new Dynamic Array functions and TEXTJOIN. Inspired by your solution and just for the nerdy EXCEL fun of it, I took a stab at solving it with traditional CSE array formulas. This is what I came up with:
    Cell I5 (copy down): ={INDEX(B$5:B$16,MATCH(0,COUNTIF(I$4:I4,B$5:B$16),0))}
    Cell J5 (copy down): ={INDEX(C$5:C$16,MATCH(0,COUNTIF(J$4:J4,C$5:C$16),0))}
    Cell K5 (copy down): ={SUBSTITUTE(SUBSTITUTE(TEXTJOIN(CHAR(10),FALSE,IF($B$5:$B$16&$C$5:$C$16=I5&J5,$G$5:$G$16)),CHAR(10)&"FALSE",""),"FALSE"&CHAR(10),"")}
    Remember to enable Wrap Text and size row height, as needed for K5:K8.. as you did in the video.
    I got the same results.. so.. there you go. Credit to you, your great channel, videos, PDF notes, etc. as well as your CTRL+SHIFT+ENTER book. Six months ago, I would not have had a clue where to begin. With your great instructional resources.. I was able to put it together : )) Thumbs up ExcelIsFun!!

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

      Wow!!!!! That is amazing how far you have come in 6 months!!!!! The slope on that line is HUGE, near infinity : )

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

      @@excelisfun Thanks Mike.. all due to your great channel and resources, books, etc. You truly make learning Excel fun.. and rewarding.. as I can take new skills and immediately put them to use in my work. Go Team ExcelIsFun!!

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

      @@wayneedmondson1065 Go Team : ) : )

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

    Thank you

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

      You are welcome, MrsCyImsofly
      !!! Thank you for your support with your comment, thumbs up and Sub : )

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

    Thanks Mike. Over the Top!!!! Bonus formula.....Alt+Enter....I use it all the time, thanks to you from previous videos. Well, all i know is from previous videos :) :) .....Char(10) i stopped using it after you showed the Alt+Enter. Great Great Great!!!!

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

      That is so funny, I still prefer CAHR(10)...

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

    Great text joining tricks, thanks Mike

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

      Glad you you like the joining text tricks, Ogwal!

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

    Thank you for the video :-)

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

    Epic Mike. I don’t yet have the new dynamic array formulas in my Office 365. Can’t wait to get them. Thanks.

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

      Another commenter said he got them and does not have the Insider Edition. That would be big news. I have not heard about this release yet. I asked him what build he has...

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

    Office 365 MAGIC Dynamic Arrays :). Thanks for video :)

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

      You are welcome for the Dynamic Magic!!!!

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

    This one is awesome mike.... Loved it

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

      Glad you loved it, RRR! Thank you for your consistent support of the excelisfun channel, even when you can not watch the video on the day that it comes out : ) : ) : ) : )

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

    Very helpful. Thank You Mike

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

      You are welcome for the helpful trick, nimrodzik1!!!!

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

    Hi Mike, really helpful

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

      Glad it helps. Tomorrows video should be good too! Thanks for your support on each video you watch, VIPUL!!!!

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

    Wow...Thank you. This is AWESOME. Unfortunately I am not an insider and can’t wait until it is available in the pro version.

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

      Yes, the Dynamic Arrays and the new Calc Engine make most all of our solutions sorter and easier to understand : ) Can't wait for you to get it!

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

    Fantastic thank you for sharing!

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

      You are welcome for the share, Roman! Thanks for your support : )

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

    Hi, Can you help me? I need to send out open orders and forecasts to suppliers on a monthly bases. Is there an easier way for me to have the suppliers separated from each other and pulled into a new worksheet per supplier?

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

    How do we put as list in dropdown list, and returning value one word [column] only of texts joined onto cell?

  • @AbdurRahim-ot5gp
    @AbdurRahim-ot5gp 5 років тому

    I highly requested you. Please make tutorial video for material inventory software and hotel booking software

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

    Amezing .. Thank you

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

      You are welcome, Bindhyesh! Thanks for your support with your comment, thumbs up and Sub : )

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

    Thanks Mike

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

      You are welcome, Dave, and as always i appreciate your consistent support : )

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

    Cool as ever ... Can we reverse this process some how? I have data as in Column L and I want it in different rows as in Column G

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

      So you have a delimited list that you want to make an array of? See my other comment

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

    oh very Nice.I don't have office 365 yet so I will go with count if.

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

    Now Im gonna fire on team group
    Thanks a lot

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

      You are welcome, a lot!!!!

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

    I have O365 but not the Insider Edition and I have the dynamic array formulas going about a month now.

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

      Really!?!?!? Are you sre? When you go to the File menu and then to Account, does it really NOT say Insider? Do you know what build number you have?

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

      @@excelisfun Hi Mike, yes I'm certain. I'm on O365 ProPlus version 1907 (Build 11901.20176)

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

      @@roderickmose4691 Thanks, roderick!!!! I sent an e-mail to Microsoft asking for clarification. Hopefully Joe will answer soon. I will post back soon.

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

      @@excelisfun I'm surprised no one else had commented here that they have the non-Insider edition with DAF as well. Certainly, there must be others.

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

      @@roderickmose4691 I am surprised too. But strange things happen sometimes. That is why I e-mailed the head of the Dynamic Array Project and asked... We will see what he says.

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

    Same work how to do in office 2013, because text join formula not available

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

    When it will be generally available. It's almost one year now :((((

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

      Yes, it is almost a year... : ( Microsoft has not said what the delay is. It must be big, since they know that when it is released, so many people will have to switch to Office 365.

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

      @@excelisfun I think the delay has more to do with the calculation engine than it does dynamic arrays. They said last fall that they did a partial rewrite of the calculation engine. As far as I know charts don't appear to update if they're based on dynamic arrays. Maybe the charting engine needs to be updated as well.

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

      @@brianxyz I think you are right. I also think there was some issues with the engine interpreting array formulas and how it mistakenly used the SINGLE functions in many single cell array formula solutions.

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

    What about Off 2013? is it possible?

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

      Yes, it is, but it is a huge difficult array formula. I have not worked it out yet, though... : (

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

      Possible with helper column
      H5
      =IF((B5=B6)*(C5=C6),COUNTIFS(B$5:B5,B5,C$5:C5,C5)&" :"&D5&"|"&E5&"|"&F5&CHAR(10)&H6,COUNTIFS(B$5:B5,B5,C$5:C5,C5)&" : "&D5&"|"&E5&"|"&F5)
      copy down
      K5
      =INDEX($H$5:$H$16,MATCH(1,INDEX(($B$5:$B$16=I5)*($C$5:$C$16=J5),),))
      copy down

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

    Might you have wanted to note that 'multiply' is doing a Boolean AND not an actual multiply?

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

      Ya, I guess. I usually do. But even if we don't call it Boolean, multiplying does an AND logical test. Many of the textbooks I use in my statistics class do not call it Boolean. But I guess we Excel People do like that word Boolean ; )

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

      Correct but to react specifically to your phrase "not an actual multiplication": The "*" operator both converts the Boolean T/F (text) to 1/0 (numbers) AND "actually multiplies" the resulting ones and zeros to performing the AND Test. Mike shows this clearly in countless other excellent videos. (This excel algorithm also permits SUMPRODUCT to do calculations with conditions (Boolean) similar to SUMIFS.)

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

    There is not unique, sequence, filter, textjoe formula in my excel 2007.

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

      No there is not. It is ONLY in Office 365 Insider.

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

    Thanks that was gr8, Dear I have a problem in my excel sheet to solve, multiple persons each person have multiple ticket no. ticket price and ticket date in JAN, FEB, MAR, to DEC columns, Can you please help me in this, Please share your email so I can send you my excel sheet.