Excel VBA: How to Sort Data with VBA Macro

Поділитися
Вставка
  • Опубліковано 6 вер 2024
  • To get the code in this video visit www.bluepecantr...
    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.
    ------------------------

КОМЕНТАРІ • 45

  • @PFunk-kt9gc
    @PFunk-kt9gc 6 місяців тому

    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  6 місяців тому

      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 2 роки тому +2

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

  • @BluePaperUmbrella
    @BluePaperUmbrella 7 років тому +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.

  • @Tranterc1
    @Tranterc1 Рік тому +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

  • @deejayohdumb
    @deejayohdumb 5 років тому +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 2 роки тому

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

  • @carlosmujicanunez200
    @carlosmujicanunez200 3 роки тому +1

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

  • @andychavez
    @andychavez 4 роки тому +1

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

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

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

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

    How do you create a custom order in the environment?

  • @idaliaojeda5348
    @idaliaojeda5348 4 роки тому +2

    Just what I needed!

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

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

  • @ravitejareddy3136
    @ravitejareddy3136 4 роки тому +1

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

  • @johnboffin476
    @johnboffin476 4 місяці тому

    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)

  • @samnangsuonsokunth8719
    @samnangsuonsokunth8719 10 місяців тому

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

  • @gzimrama1994
    @gzimrama1994 5 років тому +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.

  • @wayofwanderz
    @wayofwanderz 4 роки тому

    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.

  • @manishudeshi9840
    @manishudeshi9840 4 роки тому

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

  • @andychavez
    @andychavez 4 роки тому

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

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

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

  • @faelrodrigues21
    @faelrodrigues21 4 роки тому +1

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

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

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

  • @AniManuSCh
    @AniManuSCh 4 роки тому

    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

  • @archanaaa2514
    @archanaaa2514 4 роки тому

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

  • @Pankaj-Verma-
    @Pankaj-Verma- 2 роки тому

    Thank you.

  • @sagar.1444
    @sagar.1444 2 роки тому +1

    Thnx

  • @seascapes152
    @seascapes152 11 місяців тому

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

    • @KokeoDev
      @KokeoDev 9 місяців тому

      You add a macro to a button.

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

    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

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

    Perfect !

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

    Great video! Helped out a lot!

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

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

  • @johnbielick2700
    @johnbielick2700 7 років тому +1

    Nice job explaining the sorting!

  • @pclighting4
    @pclighting4 7 років тому +2

    Awesome tutorial. Cheers.

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

    Exactly what I need. Thanks 😊

  • @ajayrawat8311
    @ajayrawat8311 4 роки тому

    Really helpful

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

    excellent information, well presented!

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

    Thanks a lot for such as wonderful tutorial.

  • @bozev1
    @bozev1 6 років тому +1

    Thank you!

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

    Amazing, congrats

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

    Thanks bro ! u help me.

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

    hard to read great code for nothing

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

    Thanx