Automatically Sorting Values after Entering a New Record using Excel VBA

  Рет қаралды 87,438

Dr. Todd Grande

Dr. Todd Grande

Күн бұрын

Пікірлер: 50
@lizconnor1820
@lizconnor1820 7 жыл бұрын
I've just recently started using Excel more for work so I was really interested in learning how you automatically sort values after entering a new value in a field. It's highly useful and I'll definitely use it in the future!
@dHunter94
@dHunter94 5 жыл бұрын
Even though VBA is still confusing to me, this video was very concise. If I work with this program in the future, I will definitely be sure to utilize this playlist!
@monicaperry13
@monicaperry13 7 жыл бұрын
I do not know much, if anything, about writing code, but it seems useful when trying to sort the data, especially if there is a lot of it. This video explained things step by step, so it should be fairly easy to replicate.
@aussiebreezekorb8877
@aussiebreezekorb8877 7 жыл бұрын
This is a great example of what can be done to record and sort our data. Interesting for my responsibilities as a GA.
@briannagoitiandia9833
@briannagoitiandia9833 7 жыл бұрын
I have always appreciated learning how to write in code because I think once you get the hang of it, it makes things a lot easier when manipulating data. I appreciate how coding was shown how to be used in this video.
@corinne7324
@corinne7324 7 жыл бұрын
I am intrigued by this and I love organization. I would have to watch this video again to fully understand but when I get the hang of it I think this can be fun.
@MrsBobDylan
@MrsBobDylan 7 жыл бұрын
I really like Excel and think that it is a good tool due to being able to sort your values and data automatically. Overall, this video was good and helped me understand how to use Excel more.
@jjaeger14
@jjaeger14 4 жыл бұрын
this was excellent and saved me a lot of time.
@jessjane2479
@jessjane2479 7 жыл бұрын
Where did the code come from? I replayed the beginning a few times but I'm still missing that part.
@umerkhan1709
@umerkhan1709 5 жыл бұрын
Just copy his. It worked for me.
@luisrelorcasajr.9136
@luisrelorcasajr.9136 5 жыл бұрын
Hi! What if I'm typing a text (letters) vertically in just 1 column, is it possible to sort automatically after typing?
@stephenbloom6722
@stephenbloom6722 5 жыл бұрын
Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Column = 2 Then Dim lastRow As Long lastRow = Cells(Rows.Count, 2).End(xlUp).Row Range("A2:B" & lastRow).Sort key1:=Range("B2:B" & lastRow), order1:=xlAscending, Header:=xlNo End If End Sub You're welcome. ;)
@cristayag5915
@cristayag5915 5 жыл бұрын
Thank you for sharing this. It's very helpful. If I am working on 4 columns, can it be possible to add a second level of sorting criteria after the first one using this code?
@GpD79
@GpD79 6 жыл бұрын
This is very helpful! Could this be done with date values as well? If so, how would I do it?
@josephthole2547
@josephthole2547 4 жыл бұрын
This is very helpful, thank you!!!!!!!
@natecoyle2835
@natecoyle2835 6 жыл бұрын
How do you do this for more than 2 lines of data? I am trying to sort about 8 lines of data and I am unable to make it sort correctly
@Reduce_Scan
@Reduce_Scan 7 жыл бұрын
Please I need code to make this action As if I manually put the cursor inside cell a1 and then Inter, then I put the cursor inside cell a2 , then Inter, and so on
@loriwardwell2957
@loriwardwell2957 7 жыл бұрын
This would be a useful tool when there is a lot of data; I'm not very familiar with formatting code for excel but it seems pretty straight forward.
@belalmusallam
@belalmusallam Жыл бұрын
Can I use this code to sort the dates???
@tthompson719
@tthompson719 5 жыл бұрын
Having no experience with VBA this wasn’t too helpful
@isagumus3174
@isagumus3174 5 жыл бұрын
This video has a particular group of users as in it's aim which they know VBA and so, of course we are not expecting an ordinary bicycle mechanic to watch this video and make a work out of it.
@caionascimento4234
@caionascimento4234 4 жыл бұрын
Yeah, like how did he opened visual basic in the first place?
@inventor15
@inventor15 4 жыл бұрын
@@caionascimento4234 alt+f11
@DartsGondel
@DartsGondel 4 жыл бұрын
@@caionascimento4234 exactly what I wondered
@p.bhaiswar908
@p.bhaiswar908 6 жыл бұрын
Sir, It's awesome. Is it possible for set print area that should fit to the data automatically without pressing any button as the manual data or for the data imported from another worksheet. Please provide me such a code.
@cjyokohama6204
@cjyokohama6204 5 жыл бұрын
Thank you very much for this. Great help.
@ninastreet4630
@ninastreet4630 7 жыл бұрын
This video is interesting. I would like to know more about the coding process after watching.
@karaannsullivan2363
@karaannsullivan2363 7 жыл бұрын
Nina, the coding process does seem interesting. I have no idea about complicated computer programs, so this really opened my eyes on what could be created.
@jaylid666
@jaylid666 5 жыл бұрын
Can you please post the code aswell :)
@Bakdawg
@Bakdawg 5 жыл бұрын
This code works great! Thank you! However I can't get the worksheet to recognize the change when new data is added via Data Entry Form. Any Ideas on how to get it to recognize new data to the column this way?
@averagejoe3474
@averagejoe3474 4 жыл бұрын
what if i only want to sort for example a2:b - a13:b13 not the whole column
@tchizzz89
@tchizzz89 4 жыл бұрын
When entering you're data this way, that has hundreds of lines, is there anyway to automatically jump to that same cell that has most recently been entered and sorted? (Without using ctrl + F)
@Markd4Comment
@Markd4Comment 7 жыл бұрын
I use Numbers, a mac spreadsheet. Have any instructions for that?
@cyborg555
@cyborg555 6 жыл бұрын
Can this be done with a Google docs spreadsheet?
@jay55patel
@jay55patel 7 жыл бұрын
thank you if i want to choose sort column by drop down list
@rajivkumart5161
@rajivkumart5161 5 жыл бұрын
Hi Dr. Todd Grande, thank you for this script, can you please help me to sort dynamic data in excel. my data is updating from Web
@joe1579
@joe1579 7 жыл бұрын
This video was interesting. I know little about writing code.
@user-dm4yy4cg9r
@user-dm4yy4cg9r 7 жыл бұрын
Thanks dear for that video please let me know how I can arrange data to specific irregular data by EXCEL VBA
@mediacmid
@mediacmid 6 жыл бұрын
I need same story But For excel format as Table NOT for Normal Range
@stephaniehernandez2024
@stephaniehernandez2024 3 жыл бұрын
I have 4 columns I am trying to auto sort as data is added: Patient Name Patient DOB Patient Phone Recall Due: I need the data from the 4 columns to sort by the Recall due date. I can not figure out the code to do this. It needs to go in ascending order by date.
@johnboffin476
@johnboffin476 7 ай бұрын
Hello Mater Hiya, I want to sort one column with a switch so that after entering data it will set ascending order. Address is Column K7 and down to K2507, Row 1 to 6 have Titles and some displays. (VBA With a Switch to apply sort) so yer ...leave it with you to hear back
@sandeepkumar-cx4or
@sandeepkumar-cx4or 6 жыл бұрын
thanks sir you are genious
@teguhadinata8310
@teguhadinata8310 5 жыл бұрын
anyone knows the way to get the same result without using VBA?
@gointomars
@gointomars 5 жыл бұрын
Great code and video! Solved my issue. Thank you for this!
@sandro14308
@sandro14308 6 жыл бұрын
Private Sub Worksheet_Change (ByVal Target As Excel.Range) If Target.Column = 2 Then Dim lastrow As Long lastrow = Cells(Rows.Count, 2).End(xlUp).Row Range("O25:P" & lastrow).Sort key1:=Range("P25:P" & lastrow), order1:=xlAscending, Header:=xlNo End If End Sub Не благодарите
@Sbaugh69
@Sbaugh69 5 жыл бұрын
Thank you for this, it is so easy to recreate. The only question I have is how do you do it with a header row?
@kimeeshareedwalker3263
@kimeeshareedwalker3263 7 жыл бұрын
Excel seems a little more complicated than SPSS. I agree that it would be more useful with a lot of data
@pankajhiralalpatel4454
@pankajhiralalpatel4454 5 жыл бұрын
Sir I am fresher in Excel VBA I have an Excel sheet in which many dates are written in column A and other data in column B to G. I want to create a combo box in userform which shows months (mmm_yy)of the month in which the dates are written in the column A.and I want to create a command button for autofilter data of the month which I select from combobox. suppose I have written many dates of April 18 , may 18 , June 18 , July 18 , December 18 and January 19 in column A so in combobox dropdown list shows April-18 may-18 June- 18 July 18 December 18 and January 19. Suppose I select June 18 from combobox dropdown list so autofilter sheet data of June 18 when I click on command button and copy filtered data to another sheet by another command button but duplicate entry avoid. Please help Thanks in advance
@aihemhasoon2023
@aihemhasoon2023 7 жыл бұрын
I sent you message on your private messages please open it ..
VBA Advanced Filter - The FASTEST way to Copy and Filter Data
18:33
Excel Macro Mastery
Рет қаралды 286 М.
[BEFORE vs AFTER] Incredibox Sprunki - Freaky Song
00:15
Horror Skunx 2
Рет қаралды 19 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 15 МЛН
Copy Filtered Data To New Sheets Excel VBA Macro
5:03
Excel Macro Mania
Рет қаралды 46 М.
How to automatically sort values as they are entered
4:04
Barb Henderson
Рет қаралды 36 М.
VBA to Sort Data in Excel - Excel VBA Tutorial
7:57
Excel Destination
Рет қаралды 57 М.
Excel Sorting Showdown: VBA Sort - Episode 2093
7:40
MrExcel.com
Рет қаралды 19 М.
How to Use Arrays Instead of Ranges in Excel VBA
10:20
Excel Macro Mastery
Рет қаралды 206 М.
5 Things I wish I knew When I started using Excel VBA
12:45
Excel Macro Mastery
Рет қаралды 340 М.
Delete Rows Based On Criteria Excel VBA Macro
6:39
Excel Macro Mania
Рет қаралды 50 М.
VBA Tips #3 - How to Sort Data by Multiple Columns
8:35
TheDataLabs
Рет қаралды 14 М.
[BEFORE vs AFTER] Incredibox Sprunki - Freaky Song
00:15
Horror Skunx 2
Рет қаралды 19 МЛН