How to repeat values X times in excel | LAMBDA

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

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

  • @Al-hi6vb
    @Al-hi6vb Год назад +5

    Really helpful! I needed to repeat more than one column. I couldn't have done this without your step-by-step:
    LAMBDA(value,repeat,
    CHOOSEROWS(value,XMATCH(SEQUENCE(SUM(repeat)), SCAN(, repeat, LAMBDA(a,b, a+b)),1)))

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

      Whoever you are, thank you! You've just fixed a problem I've spent the past 2 weeks on. The formula in the video doesn't work if you have any blank cells but yours does!

  • @maxcrombach1
    @maxcrombach1 2 месяца назад +1

    This video should get an award! Thank you for helping me out!

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

    Wow.. this went beyond what I expected and needed. Thank you for making this video.

  • @DarienThayne
    @DarienThayne 2 месяца назад +1

    This was incredibly useful and well put together. You are a true wizard. :D

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

    Ma'am, you have made an amazing video, really really helpful: saved my life at 5 in the morning!

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

    You just blew my mind when you when you made this it's own formula 🤯 bravo

  • @mikedam6119
    @mikedam6119 2 года назад +1

    For some reason I don't have Vstack... so the following worked for me:
    (Note : I didn't put it into a named lambda function)
    =XLOOKUP(SEQUENCE(sum(num_repeat),1,1,1),SCAN(0,num_repeat,lambda(a,b,a+b)),values,"error",1)

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

    Astounding mastery of excel! Thank you! Was looking for exactly this! But received a lot more!

  • @MbusoThabethe
    @MbusoThabethe Год назад +4

    Thank you, exactly what I needed. Brilliant tutorial.

  • @EricHartwigExcelConsulting
    @EricHartwigExcelConsulting 2 года назад +1

    This is awesome! Thank you Karina for creating/sharing this video!

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

    Thank you so much for this fantastic video you single handedly saved my sanity!

  • @stevenfraser
    @stevenfraser 2 года назад +2

    Exactly what I needed, great explanation!

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

    really simple, just what I'm looking for.

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

    Excellent explanation, thank you very much!

  • @corradoagnoletto905
    @corradoagnoletto905 2 месяца назад

    Hello. Interesting procedure. This could be done also with the following formula:
    =LAMBDA(value, repeat, TEXTSPLIT(TEXTJOIN("/", TRUE, MAP(value, repeat, LAMBDA(a, b, REPT(a & "/", b)))),, "/", TRUE))

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

    Wow! This is brilliant! 👏👏👏

  • @thekeyboardguy815
    @thekeyboardguy815 10 месяцев назад

    Really helpful Video !!!
    Keep Going ✨

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

    Wow, that is crazy, saves tons of my work!

  • @ErickFarfan-w8b
    @ErickFarfan-w8b Год назад

    You rock! this worked perfectly for me working with dates! subscribed!

  • @seyedmohammadhosseinjafari7941

    WOW..... you are the best

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

    Simply amazing!!

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

    Hi there! Great video. But my "=repeat" formula doesn't show. Seems like I don't have it. What could be the problem.

  • @heecan
    @heecan Год назад +2

    this is really great job. but I have a problem when the repeat count is 0. While the value with 0 next to it is repeated as the number of repetitions of the lower value, and the lower value does not appear.

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

      @heecan , you can remedy that with the inclusion of several 'Filter' function calls
      Here's what Karina provided:
      =LAMBDA(values,num_repeat,
      XLOOKUP(SEQUENCE(SUM(num_repeat)),VSTACK(1,SCAN(1,num_repeat,LAMBDA(a,b,a+b))),VSTACK(values,""),,-1))
      Here's a version that will also account for values less than 1 (i.e. 0 & negative numbers)
      =LAMBDA(values,num_repeat,
      XLOOKUP(SEQUENCE(SUM(FILTER(num_repeat,num_repeat>0))),VSTACK(1,SCAN(1,FILTER(num_repeat,num_repeat>0),LAMBDA(a,b,a+b))),VSTACK(FILTER(values,num_repeat>0),""),,-1))

    • @qwaaackrs
      @qwaaackrs 9 месяцев назад +1

      @@branmoxley Just what I was looking for, thank you!

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

      @@qwaaackrs You're welcome!

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

    Simply brilliant!

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

    Great! You should have 272.000 subscribers instead of 27.200.

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

    Hey! How do you include ''calling number'' in the formula? By exemple:
    Terry: (repeat 30 times the name but must have number 7 and 11 at least)
    Bob: call number, 1 and 10 (repeat 10 times the name but must have number 1 and 10 at least) ?
    Those ''calling number, could be chosen from another cell: 7,11) by name.
    Thanks you.

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

    Is there a blanket way of getting a range of values to repeat a set number of times?

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

    Wow! I needed this! :D thanks!

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

    Very helpful! Thanks for the video!!!!

  • @andrel-jx9db
    @andrel-jx9db 6 месяцев назад

    Thank you!!! Very helpfull!!!

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

    Thanks !!!! This helped me a lot !!

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

    Absolutely genius!

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

    Awesome 🎉

  • @prashantvijay8436
    @prashantvijay8436 7 месяцев назад

    hi thats great!! Thankyou so much. can anyone suggest how to do it in power query

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

    How could we solve this problem for Google sheet , Please help

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

    Can you do this in reverse? Condense a full array of words and add how many times it is set? Without knowing the words in advance

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

    Great video

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

    Your explanation nailded it

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

    Very clever solution

  • @jeanmatadi-cdle145
    @jeanmatadi-cdle145 Месяц назад

    This is WOW!!!

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

    I'm trying to use this custom formula in Google Sheets. However, error that says "Function LAMBDA should be followed by a call containing the actual values." although I followede every step shown. Maybe I missed something?

    • @mohamed.montaser
      @mohamed.montaser Год назад

      =LAMBDA(values,num_repeat,
      XLOOKUP(SEQUENCE(SUM(num_repeat)),VSTACK(1,SCAN(1,num_repeat,LAMBDA(a,b,a+b))),VSTACK(values,""),,-1))(values,num_repeat
      )

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

      facing same problem , could you help me to solve this problem actually I am in a project ,where I've daily go through with this problem , help me

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

    Brilliant!

  • @neerajgupta93
    @neerajgupta93 7 месяцев назад

    How to count a Specific repeated word array in excel Example
    PPPPPPWWPPPPPP = 2 means P is repeated 2 times with an array of 6.
    I need formula for the same.

  • @ozgure.albayrak4393
    @ozgure.albayrak4393 Год назад

    Many thanks

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

    Impressive

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

    How can we do this when data is filtered

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

    Vstack formula not working in my excel :(

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

    It is not processing bulk data

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

    god bless you

  • @Pradeep-mh9ui
    @Pradeep-mh9ui Год назад

    Thank you!

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

    супер )

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

    not working

  • @romulusmilea2747
    @romulusmilea2747 2 года назад +1

    SEQUENCE, or XLOOKUP, etc. are definitely not formulas, they are Excel functions. I simply do not understand why so many Excel experts make this confusion.

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

      Relax, excel nazi

  • @captainvlog
    @captainvlog 7 месяцев назад

    OMG

  • @anhtudam6607
    @anhtudam6607 2 месяца назад

    When i try you menthod, i see 1 problem. That's is the Source for the XLOOKUP must be exact to the value. In Order to apply automatic on dynamic range, i change your fomula a bit:
    - Put the Fomula in E5
    - Value in B5:B10000
    - Repeat time in C5:C10000
    =XLOOKUP(SEQUENCE(SUM($C$5:$C$10000)),
    VSTACK(1,SCAN(1,FILTER($C$5:$C$10000,($C$5:$C$10000"")*($C$5:$C$100000)),LAMBDA(a,b,a+b))),
    IF(ISERROR(MATCH(0,$C$5:$C$10000,0))=TRUE,
    VSTACK(FILTER($B$5:$B$10000,$B$5:$B$10000""),0),
    VSTACK(FILTER($B$5:$B$10000,($C$5:$C$10000"")*($C$5:$C$100000)),0)),,-1)
    I assume the Number of Row can extend much much more, in exchange of slower calculation. Anyway, this still the fastest method ever to repeat a value x times. Thank you so much!