Quick Excel Trick to Unstack Data from one Column to Multiple Columns

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 885

  • @LeilaGharani
    @LeilaGharani  7 месяцев назад +1

    Grab the file I used in the video from here 👉 pages.xelplus.com/unstack-file

  • @allisonbell8721
    @allisonbell8721 2 года назад +6

    This might be the most brilliant video ever posted on RUclips. If the Nobel Prize people had a prize for software use advice, you should get that Nobel prize.

  • @tennesseemashed
    @tennesseemashed 5 лет назад +67

    One of the simplest and smartest things I’ve seen in excel. Wow

  • @niyanaknowledgecave3277
    @niyanaknowledgecave3277 5 лет назад +19

    Best excel tutor I have ever seen in my life...!! Thank you!!

  • @Amr-Ibrahim-AI
    @Amr-Ibrahim-AI 5 лет назад +34

    Wow! Simplicity is the mother of beauty! This is an awesome trick

  • @mauriciomolinahn
    @mauriciomolinahn 5 лет назад +7

    Leila is one the most wonderful and gifted teacher of all times! It's so awesome to watch her videos!!!

  • @dbookmarker9524
    @dbookmarker9524 5 лет назад +4

    This is not Excel, this is Magic! TY!

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

    Brilliant! Another, similar trick I learned was to disguise formulae if you want to copy a large block of cells with formulae that don't have absolute references, but where you *don't* want the references to change when you copy. Select the range, do +H to Find "=" and Replace with "%%"; copy the range to where you want it, then reverse the Find and Replace to put them back to formulae preceded by "=". I need to do this so often, that I've put the two stages into macros, triggered by buttons on my customised ribbon.

  • @debbiegaydos
    @debbiegaydos 5 лет назад +4

    I needed to put a single column of 300 values into a 10x30 grid. Googled and googled and tried to figure out a simple way to do it. So glad I found this, what a great (and simple) trick! Thanks!

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

    This is immense, and do simple. It was taking me hours to manually move cells around, your tips had me finished inside of 10 minutes.
    Thank you thank you thank you!

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

    Thank You. I have my tricks to unstack, but what you show here will work for so many other applications. I totally overlooked the custom formatting to hide 0's. That tip alone is worth a whole lot for so many things I do. I owe you a drink if you're ever in the San Diego area.

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

      That's great! I'm glad to hear that. I've been to San Diego ....beautiful place...but that was 20 years ago :)

  • @mikoajkomorowski1290
    @mikoajkomorowski1290 5 лет назад +46

    You could also use the OFFSET formula:
    =OFFSET($A$4,(ROWS($A$1:A1)-1)*3+(COLUMNS($A$1:A1)-1),0)
    this would make it more automatic and easier to extend in case you have to get more data input

    • @AbuTalha-eo7pr
      @AbuTalha-eo7pr 5 лет назад

      Super; thanks

    • @BondiMacF
      @BondiMacF 4 года назад +2

      Great thanks. I was just going to try to work on something similar.
      Instead of ROWS($A$1:A1), how about simply ROW(A1)?
      Now you have =OFFSET($A$4,(ROW(A1)-1)*3+(COLUMN(A1)-1),0) which works out as the same thing but less typing

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

    Hi,Im working in a call center where I use excel a lot.I just want to let you know that your tutorials are very helpful and easy to understand.Thank you so much for your videos.

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

      I'm very happy to hear that Richard!

    • @01chippe
      @01chippe 11 месяцев назад

      Kudos for making scammer’s jobs easier.

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

    I am speechless. I know almost same as you know. I also have good logic. But you are far ahead in terms of great ideas. Hats off.

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

      I'm glad you find the tutorial useful.

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

    What an awesome way to unstack data! I got your notification on this when I was about 10% through unstacking over 1000 rows of imported text. I saw the other ways but I was spending too much time configuring and not getting work done. Your way ISN'T the lazy way but the most productive way that I've seen. 1574 rows done in under a minute. Thank you, thank you and thank you.

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

      That's GREAT! I'm really happy to hear that! I'm glad you saw this at 10% and not right after 100% :)

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

      So true. That wouldn't have been a good thing. Thanks again.

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

    So glad I found your channel, Leila. As an IT professional constantly working in excel, your videos are extremely useful. Question: what if your stack of data has no clear pattern? In your example, you had a new title every 3 rows from the previous title. What if you're working in a sheet, where the title appears randomly? Thanks in advance!

  • @anshuiway
    @anshuiway 5 лет назад +2

    Really mind blowing trick for stuck data converted to proper format
    Thanks for sharing this video

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

    No matter which topic you post on excell learning.it is always best and well received.

  • @sjn7220
    @sjn7220 5 лет назад +3

    Cool trick! I have to do this quite often but have always used =index(array, column(A1)+(row(A1)-1)*3). Column and row can be switched whether you're destacking vertically or horizontally (and 3 would change depending on the group size). At first I had to always think it out but now it is so ingrained in my head it comes out somewhat naturally.

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

    Saved my hours! Thanks a ton. Wish you good health and prosperity

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

    I never thought about this way, but this is those sort of things that surprise people for its simplicity and learnability... It is not about using a tool.. it is about using your brain....

  • @zedzpan
    @zedzpan 5 лет назад +7

    This blew my mind. What a great tip!

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

    Every time! If I'm stuck, you come through. You're awesome. Thank you!!

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

    Oh.My.Gosh! You are my hero. I have used a few of your videos when i needed to learn something quickly. I discovered this one by accident and I can't wait to watch them all. Thank you for all of your hard work.

  • @mattias5063
    @mattias5063 5 лет назад +3

    As always with your examples and tutorials; straight to the point in an easy to understand way and quite simply (no doubt) the best solution. As I´ve said before, never a dull moment watching your tutorials. You rock! :)

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

    One of the simplest and smartest things I’ve seen in excel. Excellent

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

    I stumbled across your RUclips channel by accident and I have to say that I've learned more in the last week then from all of the Excel courses I've attended. Great tips and tricks!! Well done!

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

      Thanks for the kind feedback James. I'm happy the tutorials are useful for you.

  • @1gopalakrishnarao
    @1gopalakrishnarao 5 лет назад

    Excellent. Every video you make us to learn, learn & learn. God only knows your brilliance. Thank God. We are very lucky to get a teacher like you. Saluatations to my beloved Teacher.

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

      Thank you Gopala for always commenting and liking the videos. I am very blessed to have a wonderful audience. Thank you!

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

    This is brilliant. I had exactly this problem, my usual spreadsheet jockey was running an errand out of the office, and I needed this done asap. Found you with Google and said to myself: "Really? That simple?" I tried it and BAM! A total of 3,976 rows (copied and pasted from a table on a website) transformed into a 497x8 array just like that. G.E.N.I.U.S.

  • @tombic6373
    @tombic6373 3 месяца назад

    Clear, clever solution to a frequently difficult and time consuming problem. Awesome.

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

    The LG idea replecment , just saved me a ton of time ... thank you veeery much :)

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

    Wow.. Very simple, smart, and non-obvious workaround

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

    Thanks leila, i found this in 2020, aftert these years. U make my life easier

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

    Wow. I have been using Excel since 1997, and am pretty proficient. But I have never seen this *most excellent* hack! Kudos to you! I have subscribed to your vids because your explanations are spot on, simple and your voice is measured and quite pleasant. Yay Leila!

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

      Oh. and I will use YOUR initials too :)

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

    Girl, you rock. Thanks for all you do.

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

    O.M.G. The simplicity of this is pure genius!

  • @DavidPerez-bf4cp
    @DavidPerez-bf4cp 3 года назад

    i've been trying to figure this out for the last 2 days to solve a problem i had and boom! thank you

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

    A great and very smart way of doing it. Thanks, you are a treasure.

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

    unbelievable shortcut you created Ms Leila..... Hats off !!!

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

    Leila,
    This is perfect timing! I was just discussing FILL/SERIES and FIND/REPLACE with an employee this morning and how powerful they both are...now to combine them, even more so. Thank you!

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

    Ha....ha... I remember when I faced this problem, when working as accountant. And how happy am I to found unpivot features in power query. And now you show the very simpla-easy way without Power Query. Nice.....

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

      :) Sorry this came a bit late....but unpivoting with Power Query is great too.

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

    To me Leila is excellent teacher, Thank you for many things i learnt from you

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

    Thank you dear Leila, it's so simple

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

    When you used your initials and cell reference I knew where this was going! That was sooooo crafty!! I literally was putting together dynamic chart for a dashboard last night and could have used this tip lol. You're the best Mrs Gharani !!!!

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

    Excellent solution. I have not thought of the replacement technique as a workable solution. It is an eye opener. Many many thanks

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

    Your channel is a life saver!

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

    Very nice! Wow, I'm still learning simple tricks after 20 years of Excel.
    Tried and it works with other patterns as well (restacking, rearranging data).
    Thank You!

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

      Welcome to the club. I’m also learning new stuff every day :) let me count how may years I’ve had ---18 years!

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

    Smart and easy method to follow. Thank you very much!

  • @fenderdaw
    @fenderdaw 6 месяцев назад

    Thank you! I was working through it knowing there had to be a better way. I’ll take a quick hack over M code any day!

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

    Wow!! I'm just getting addicted to your tutorial. May Allah give you the better return and solve your problems like you do for us!

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

      I'm happy to hear the tutorials are helpful!

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

    Such a clever way to unstack. So simple but never came into my mind. Thanks for the trick Leila.. you are great.

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

    One of the best shortcuts I have seen!

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

    This EXTREMELY valuable for me! I have data pulls in the tens of thousands that this fixes an issue we have.
    What would be further value that I can figure out is; how to do the same thing but with the twist that the stacked data can have variable amounts of entry, not just the set of 3 like you have in the example. So Record A might be 3, Record B might be 6, Record C might be 2, etc, etc.

  • @MelMario
    @MelMario 9 месяцев назад

    Genius. Yet so simple.

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

    Sorcery!!! You continue to amaze Leila!

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

    Genius! Thanks for all your excel help

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

    You are my favorite teacher for excel......

  • @GhulamAli-ge8gi
    @GhulamAli-ge8gi 5 лет назад

    I am taking your courses on udemy but beside course, i dont know what you eat in your breakfast, I learn something new everytime i visit course and youtube video as well. Thanks teacher

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

      You're very welcome. I'm glad to hear that!

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

    Wooow! How simple and how Fan-tas-tic! at the same time! Amazing job!

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

    That's extremely useful... I thank you

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

    Thank you for a great tip. I bump into the need to unstack periodically - sometimes with much larger data sets. This way is the best!

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

      Thank you! Glad you can make use of this trick.

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

    You just saved me, probably, hours of work. I absolutely LOVE Excel for situations like this!

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

    Just what i need... Very simple... Thanks LG

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

    So simple. Thank you.
    I love Excel, but after watching your videos i love it even more.

  • @96seya
    @96seya 8 месяцев назад

    This is Gold! You've saved me a whole load of time 👏👏👏

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

    A BRILLIANT resolution to my exact problem. I am now a new subscriber and I will be back soon to probe your brain some more. Thanks so much.!!

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

    Absolutely brilliant! This is exactly what I was looking for.

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

    Leila your are really smart. Your simple solutions to very hard issues are really amazing.

  • @musicsang4882
    @musicsang4882 5 месяцев назад

    Thanks a lot..you saved my tons of hours and efforts..I will be indebted to you.

  • @niuean22kid
    @niuean22kid 5 лет назад +3

    Amazing ! I would normally just use power query but this is even quicker

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

    I was struggling with this and was so frustrated, thinking "how can this NOT be so easy to do?". Well, now it is. Thank you so much! :)

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

    I use excel a lot specially dashboard creation and I really find your videos very helpful
    Thank you

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

    Simply BRILLIANT!

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

    Wow! This is the first video I have seen recently where there are no dislikes. Kudos.

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

      Thank you! The dislikes have arrived. Not everyone likes the lazy approach :)

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

    Simply brilliant. Thank you.

  • @LobanRahman
    @LobanRahman 5 лет назад +2

    Love your hacks. Love your instructional style!

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

    One of the finest things I've leaned today.

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

    Answering the questions i have when others are answering the opposite from the same search query. Thank you.

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

    THANK YOU!!!!! Leila, I can't tell you how many times I have tried to figure this out!!! WOW!! I am already thinking of other ways to use this trick. You are the Best.
    P.S You and Mike Gavin need to have an Excel battle like he does with the Excel Guy. You two would make a great team!!

  • @ToddBeck
    @ToddBeck Месяц назад

    Brilliant. Saved me a ton of time.

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

    I did use a few easy tricks, but this one is away wave more easy and efficient than anything I have ever used, I watch your videos everytime to get amazed and definitely improve my teaching skills !!

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

      I'm glad to hear you find the tutorial helpful.

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

    I kinda like the indirect formula for something like this. There are three variables so it would be something like =indirect("A"&3×c4+1) where c4 would be the iteration number, 1 would be the variables after the original and 3 would be the number of new columns being created.

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

    So Easy to follow all your course

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

    This is ridiculously easy and useful. Best video I have seen in RUclips

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

    OMGoodness! I would've used offsets and rows and columns to do achieve this, but this trick is badass!!! I'm a fan. Subscribed!

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

      Glad you like it. It's great to have you here :)

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

    I've only recently come across your videos in the last couple of weeks and abolsutely love them. Your succinct and easy to following teaching style is great. Thank you.

  • @vetman98
    @vetman98 Год назад +1

    Thank you I have been looking for solving this problem for a long time. Your videos are amazing

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

    Very nice trick!!! it's only about being creative and using the right tools.

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

    thank you leila like this simple method .

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

    I'm so glad that I saw this video, it saved me hours of work. Many thanks Leila

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

      My pleasure Karim. I'm glad the tutorial is helpful.

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

    Very good trick.
    I actually have to unstack a large amount of data that looks exactly like this on a regular basis.
    I created a simple piece of vba code in order to do it, however on large data sets it takes a about 10 seconds to complete.
    Using this nice and easy formula method would take no time at all!! That's for the video

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

      That's great! I'm glad you can make use of this :)

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

    This can also be done without the need to find and replace. Just build the formulas for the first 2 rows then select them both and drag to fill just as you did after adding the "lg". Same results and eliminates a step.

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

    Extremely useful. I actually had a database like this and I had no clue on how to proceed.

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

    Thanks for the tips. Pls keep them coming.

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

    Getting back into Excel from older version and I love this method. I usually write VBA macro.

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

    This is really helpful for me. Thanks a lot for this shortcut method

  • @hudsville
    @hudsville Месяц назад

    This was great! Thanks so much.

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

    Perfect! Thanks daily I come across this kind of separation and since I am unaware I was doing all these days manually or via other formula..

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

    Hi Leila - as this is my first ever comment, I first just want to say how impressed I have been with the quality of these videos. Not only do you explain things clearly and concisely, you always choose practical and innovative ways to solve real-life problems. I wanted to get your thoughts on an alternate approach that I thought you might try for this example to see if you saw any downside to it.
    Using your data, I propose starting with the following formula in cell C3:
    =OFFSET($A$4,3*(ROW(D4)-ROW($D$4))+COLUMN(D4)-COLUMN($D$4),0)
    You can then drag this formula down as far as you need. As with your example, users may want to format zeroes not to display within the relevant area. You could make this even more dynamic and generic by parameterizing the 3 after the first comma, which represents the number of columns of output data you want to produce.
    What do you think?

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

      Thank you David for your first wonderful comment. Your OFFSET method looks great! Love it! Thanks for sharing :)

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

    Now why didn’t I think of that! Thank you Leila! Loving this channel.