Excel VBA: How to Sort Data with VBA Macro

Sdílet
Vložit
  • čas přidán 8. 02. 2017
  • To get the code in this video visit www.bluepecantraining.com/port...
    This video explains how to write a macro that will sort data. The examples given explain how to sort on one column and multiple columns - including sorting by more than three columns.
    ------------------------
  • Jak na to + styl

Komentáře • 45

  • @PFunk-kt9gc
    @PFunk-kt9gc Před 2 měsíci

    You are one of my favorite tutors. No long intro, just to the point with easy to understand examples. Perhaps my pet peeve is when someone says I'm just going to give you a quick video then follows with a long fancy intro.

    • @ChesterTugwell
      @ChesterTugwell  Před 2 měsíci

      I agree, I am not a fan of time consuming intros and graphics. I try and be as straight-to-the-point as possible, for you busy people.

  • @stanleyroot9622
    @stanleyroot9622 Před 2 lety +2

    Perfect tutorial. Brief. Clear. Precise. Logical. A diamond in the coal mine of VBA tutorial videos.

  • @BluePaperUmbrella
    @BluePaperUmbrella Před 7 lety +7

    This is really useful tutorial, thank you. Clear and to the point; without any waffle. My one suggestion for improvement would be some sort of zoom functionality for future videos - the actual code can be a bit hard to read at that distance depending on screen resolution. Again great job.

  • @deejayohdumb
    @deejayohdumb Před 5 lety +1

    I have been getting an error in creating my sort code. After searching for along while I found your video and you solved my problem at 1:26! The key is only the top cell in the range, not the entire range. Much appreciated!

  • @mattirons4909
    @mattirons4909 Před rokem

    FINALLY! I've been looking for this exact type of tutorial for hours (weeks? lol). Thank you!

  • @johnbielick2700
    @johnbielick2700 Před 7 lety +1

    Nice job explaining the sorting!

  • @pralhadshetye8863
    @pralhadshetye8863 Před 4 lety

    You are a Saviour!! Thanks. Simple and effective codes.

  • @carlosmujicanunez200
    @carlosmujicanunez200 Před 3 lety +1

    Great Tutorial. I look for a lot of other tutorials and this was the easiest and best of all

  • @pclighting4
    @pclighting4 Před 6 lety +2

    Awesome tutorial. Cheers.

  • @junlargo11
    @junlargo11 Před 5 lety +1

    Exactly what I need. Thanks 😊

  • @gzimrama1994
    @gzimrama1994 Před 5 lety +1

    Hello. Thanks for a very helpful video. If I wanted to sum up the tran_value for every pay_type in another sheet, would that be possible? Without using a pivot table.

  • @faelrodrigues21
    @faelrodrigues21 Před 4 lety +1

    Thank you very much! You've helped me bunch!!

  • @idaliaojeda5348
    @idaliaojeda5348 Před 3 lety +2

    Just what I needed!

  • @manishudeshi9840
    @manishudeshi9840 Před 4 lety

    thanz was trying to find the command, you explained it in a simple way

  • @stevennye5075
    @stevennye5075 Před 4 lety

    excellent information, well presented!

  • @pralhadshetye8863
    @pralhadshetye8863 Před 5 lety

    Thanks a lot for such as wonderful tutorial.

  • @Tranterc1
    @Tranterc1 Před 10 měsíci +1

    Is there a way to make it automatically run whenever you update the data ? or would i have to keep opening the code and pressing play

  • @huntermusselman7378
    @huntermusselman7378 Před 2 lety

    Great video! Helped out a lot!

  • @albe5274
    @albe5274 Před 3 lety

    Just what i needed too.. thanks you very much!

  • @bozev1
    @bozev1 Před 6 lety +1

    Thank you!

  • @josealanis677
    @josealanis677 Před 5 lety

    Amazing, congrats

  • @thundergabriel
    @thundergabriel Před 5 lety

    Thanks bro ! u help me.

  • @russellcurlee8692
    @russellcurlee8692 Před 5 lety

    Is it possible to sort a table which uses a formula to fill table rows/columns in VBA? I.e. I have a table which uses vlookup to find values to insert into the table and then I want to sort them

  • @wayofwanderz
    @wayofwanderz Před 4 lety

    Hi, Your video is clear. i have a doubt, will you please explain it? I will ask it based on this video data. @ 07:59 , you get store ID in a sequence (like 11111..2222....3333....444....). My question is, how to get the first and last row of STORE_ID of 1 only and how to copy it to another sheet.

  • @seckinbilgic
    @seckinbilgic Před 3 lety

    I prefer to use cells(1,1) instead of range.
    It works.
    thanks.

  • @archanaaa2514
    @archanaaa2514 Před 4 lety

    Sir , if d range starting from a18 , den what we need to assign? A18.currentregion? Or wat

  • @ajayrawat8311
    @ajayrawat8311 Před 4 lety

    Really helpful

  • @ravitejareddy3136
    @ravitejareddy3136 Před 3 lety +1

    Can you please help me on how to sort more columns using vba

  • @andychavez
    @andychavez Před 4 lety

    Very nice but you should use a lower resolution so that text can be seen larger. Thanks.

  • @carlo9567
    @carlo9567 Před 2 lety

    Perfect !

  • @elbourko955
    @elbourko955 Před rokem

    How do you create a custom order in the environment?

  • @johnboffin476
    @johnboffin476 Před měsícem

    Hey Chester all above sounds good, But I want to sort with VBA only one column. the column is K7 and with two headers K5 & K6, Anyway the sort have to start from K7 and down as K2507. See if your info works, thanks mate (Ascending alphabets)

  • @bcoa10_sanketberad40
    @bcoa10_sanketberad40 Před rokem

    Can we just display only Cash records or only Debit card records?

  • @Pankaj-Verma-
    @Pankaj-Verma- Před 2 lety

    Thank you.

  • @samnangsuonsokunth8719
    @samnangsuonsokunth8719 Před 7 měsíci

    sir can you teach me how to find top 10 with this vba code?

  • @hendri2018
    @hendri2018 Před 2 lety

    I got syntax error : key1:=Range("Pay_Type"),order1:=xlDescending, Header:=xlYes
    Expected Expression :=

  • @sagar.1444
    @sagar.1444 Před rokem +1

    Thnx

  • @andychavez
    @andychavez Před 4 lety +1

    It is soo small. I suggest that use bigger fonts or smaller resolution. Please

  • @AniManuSCh
    @AniManuSCh Před 4 lety

    How can be sorted when condition is met and toggle between ascending and descending? for example: when a header cell is selected or doble clicked then sort that column in an ascending way by default, but if it is already sorted that way, then sort it in descending way instead

  • @seascapes152
    @seascapes152 Před 8 měsíci

    how do you automate this code without having to open "view code" and pushing play?

    • @Kokeo_TV
      @Kokeo_TV Před 5 měsíci

      You add a macro to a button.

  • @alializadeh8195
    @alializadeh8195 Před rokem

    Thanx

  • @jay55patel
    @jay55patel Před 3 lety

    hard to read great code for nothing