Тёмный
Marcus Small
Marcus Small
Marcus Small
Подписаться
Hi My name is Marcus Small and I run created a website called theSmallman.com. It is one of the largest Excel websites in the world today and has hit millions of visitors since 2012. It has been a labour of love and I hope to share some of my insights on this channel.
Replace Anomaly in Excel VBA
9:48
3 года назад
Excel Finance HR Dashboard
0:46
3 года назад
Excel Dashboard Idea for Everyone
0:48
3 года назад
Excel Dashboard Example
2:55
3 года назад
Excel Dashboard Design
4:28
3 года назад
Pivot Table Disconnected Slicer
14:58
4 года назад
Save File to Desktop VBA
9:42
4 года назад
Compare Two Lists
22:08
4 года назад
Add Borders with Excel VBA
6:15
4 года назад
Track Stock Prices Instantly in Excel
3:25
4 года назад
Convert Text to Number with VBA
10:16
4 года назад
Delete All Pivot Tables with VBA
10:31
4 года назад
Insert a Tick Mark in Excel
5:19
4 года назад
Pass Variable Between Macros
4:34
4 года назад
Make Excel Button Colours Change
2:23
4 года назад
Add a Timer to Excel VBA
8:15
4 года назад
Excel Save Batch Files to Drive
16:02
4 года назад
Transfer Data Between Arrays
14:36
4 года назад
Insert CheckBoxes in Excel
4:24
4 года назад
Insert a Delta Symbol with Excel
3:52
4 года назад
Unhide Sheets with Excel VBA
7:16
4 года назад
Excel VBA Array Introduction
24:16
4 года назад
Excel Dashboard Tutorial
1:36:02
4 года назад
Filter with Multiple Criteria Excel VBA
16:01
4 года назад
Excel VBA Autofilter and Copy
12:46
4 года назад
Move Data With Array Part2
15:21
4 года назад
Комментарии
@spongebobby188
@spongebobby188 День назад
NGL...this is what I needed to see after hours of trying to figure it out with other videos. Only problem now is to figure out how to create new calculated measures!
@thesmallman
@thesmallman 22 часа назад
I'm glad it got you closer, thanks for your feedback.
@yosef-yosef9414
@yosef-yosef9414 4 месяца назад
This code are fit when you use other laptop or computer right?
@thesmallman
@thesmallman 3 месяца назад
Yes works on any type of computer.
@jasonschmidt5534
@jasonschmidt5534 4 месяца назад
Hey Marcus, I have a code to create a file based on cell value, however I want to have a directory create by same cell value and the file in the directory. How would I integrate directory creation into the code. Private Sub CommandButton2_Click() 'Show the Save As dialog to allow folder to be chosen Dim FileName As Variant Dim ValCellB2 As String Dim Path As String ValCellB2 = Range("B2").Value Path = "B:\Blend Chemist Data\Profile Approval\" FileName = Application.GetSaveAsFilename(Path + ValCellB2 + ".xlsm", _ "Excel Workbook,*.xlsm", 1, "Confirm or Edit filename and folder!") 'Oops, the user backed out of this so don't save the file If TypeName(FileName) = "Boolean" Then MsgBox "You didn't save your file!" Else 'Ok, all is good, we have the details, so go ahead and save the workbook ActiveWorkbook.SaveAs FileName MsgBox "File Saved!" End If End Sub
@thesmallman
@thesmallman 4 месяца назад
Hi Jason I had a play round with it and got it working OK. What I did was put the new folder name and the new file name in cell B2. B2 is: MyFile Name\My Excel File So for example this might be: January\Jan Budget Data Then I just run the following and it produces a new folder called January with a file inside called Jan Budget data.xlsx All ever so good. Good luck with it - worked nicely at my end. Sub CreateFolder() Dim Path As String Dim Fname As String Dim ar() As String ar = Split([b2], "\") Path = "B:\Blend Chemist Data\Profile Approval\" Fname = Path & ar(0) If ar(0) <> "" And Not FolderExists(Fname) Then MkDir Fname End If ActiveWorkbook.SaveAs Path & ar(0) & ar(1) MsgBox "File Saved!" End Sub Function FolderExists(ByVal Path As String) As Boolean On Error Resume Next FolderExists = (GetAttr(Path) And vbDirectory) = vbDirectory On Error GoTo 0 End Function
@MollySlezak
@MollySlezak 5 месяцев назад
Will this work when new data is entered?
@thesmallman
@thesmallman 5 месяцев назад
Yes as you add new data the Current Region will grow. So it is fully dynamic.
@blizzardr6980
@blizzardr6980 6 месяцев назад
Is there any way to do this so a slicer filters 2 different tables of data - not pivot tables (they both have the same data in but I want to be able to filter different parts of my dashboard by different things)
@thesmallman
@thesmallman 6 месяцев назад
You can clearly see I have 2 different tables of data and use the joining method to make the two tables talk to one another through a third table. You have to do as I do to get the same result as I have achieved. Hope that helps.
@JieWei7912
@JieWei7912 7 месяцев назад
I was not able to see the pivot table from the other data source even after linking in the data model. Is there something I can do to refresh or make it appear?
@oxuanthanh5336
@oxuanthanh5336 8 месяцев назад
Thanks for your sharing.
@thesmallman
@thesmallman 8 месяцев назад
Most welcome.
@FiliepLagae-bu9sv
@FiliepLagae-bu9sv 10 месяцев назад
not working for me 😞
@thesmallman
@thesmallman 9 месяцев назад
@thesmallman 0 seconds ago Please follow the steps exactly as I do them. If we are using Office 365 our versions of Excel are the same so it it does not work for you then you have not done exactly the same steps as what I have done. Re do the video and follow the steps precisely. 😀
@FiliepLagae-bu9sv
@FiliepLagae-bu9sv 9 месяцев назад
Ik heb het gevonden op een ander manier, maar van mij moest heel de tabel gesorteerd worden. Alleen de eerst kolom gaat mee en dat mag niet. Ik bekijk nog eens je filmpje.
@thesmallman
@thesmallman 9 месяцев назад
Dat is geweldig maat. Ik ben zo blij dat je een manier hebt gevonden. Het allerbeste met je leerproces.
@mr.write1433
@mr.write1433 10 месяцев назад
i only want the middle ? like row 6-10 and i want to be able to change it anytime without changing the codes in vba
@thesmallman
@thesmallman 10 месяцев назад
Depends what your data looks like. If you don't have data in row 7 then the current region method I shared will work. If you have data in row 7 you don't want included that becomes more involved. You could use the FIND in VBA to locate something unique in the bottom of your dataset and trap that row via a find and that way you never have to change your code provided you always have that unique item in the dataset.
@chandruchandru-uq6eg
@chandruchandru-uq6eg 10 месяцев назад
It's awesome..... Can you upload the Excel sheet of data which have 30,000 rows of data.... So that everyone practice VBA with large Data
@thesmallman
@thesmallman 10 месяцев назад
Of course it should be on the website now - just under the video is the exact file I used. All the very best.
@chagnaaabbas6860
@chagnaaabbas6860 Год назад
Hello, teacher how can I contact you?
@thesmallman
@thesmallman Год назад
You can go onto my website thesmallman.com my contact details are in the footer.
@not1AM
@not1AM Год назад
Hi. Thanks for this video.. but how can i make the address variable>>> something like: let A as variant A=C3 MsgBox [A].Value
@thesmallman
@thesmallman Год назад
You were almost there. You have to trap the value when you are working out what A will be equal to. Sub test() Dim A As Variant A = [C3].Value MsgBox A End Sub Give the above a try. Should work.
@not1AM
@not1AM Год назад
Thanks for the response.. But what I am asking is how to make the address of a cell as variable. Not saving the value of a cell to a variable
@thesmallman
@thesmallman Год назад
@@not1AM I do not understand what you are asking. How do you know where the cell is unless you declare it?
@Red00022
@Red00022 Год назад
This is very nice. Do you happen to know the difference between this and just using range.UsedRange?
@thesmallman
@thesmallman Год назад
You can't set a range with the UsedRange method. You have to refere to the activesheet in the following way Activesheet.UsedRange. Which looks like you have recorded the macro. The above is more elegant in my opinion.
@firdausismail3020
@firdausismail3020 Год назад
this looks sh*t!
@skiboltskieskye1238
@skiboltskieskye1238 Год назад
I went through your website and your dashboards are flippen amazing. Am in awe. Well done, mate.
@thesmallman
@thesmallman Год назад
That is a rock star comment. So grateful to hear and happy you like them. Thanks mate!!!
@shivanimahida5544
@shivanimahida5544 Год назад
Heyy its not workin for me its turning the nunbers into 0 rather than converting text to number.
@thesmallman
@thesmallman 10 месяцев назад
You and I are both using the same version of Excel so the reason it is not working is your did not follow the instructions carefully enough. It would not have worked for me if I had done what you did. Watch again and come back on here and tell others what you did wrong so everyone learns.
@shivanimahida5544
@shivanimahida5544 Год назад
Its not working for me
@thesmallman
@thesmallman 7 месяцев назад
You have not followed the instructions exactly. I'm using office 365 if we are both using the same version of Excel if you copy everything that I do you will get the same result.
@shivanimahida5544
@shivanimahida5544 Год назад
This is not working for me please help
@imranmohammed2644
@imranmohammed2644 Год назад
Marcus, i dont see you have put the link in description to download the excel file.
@thesmallman
@thesmallman Год назад
That is correct I did not say I was giving this file away at any point. It was for demonstration purposes, to inspire others to go out and build it themselves. You learn nothing from taking someone else's IP. My website thesmallman.com has plenty of free example Excel dashboards.
@kenhiga6646
@kenhiga6646 Год назад
Great video! Just one question. Can I change the order of the regions? I mean, it is possible to have europe at the top of the slicer, then America, etc? Thank you
@thesmallman
@thesmallman Год назад
Yes. Slicers will order items ascending, descending or from a custom list. Make a custom list and the slicer will order the items based on your custom list. My blog post shows you how. www.thesmallman.com/excel-custom-sort-with-vba
@darshanapatel1260
@darshanapatel1260 Год назад
Hi Marcus, it would be great if you could share the steps as to how you created the wheel combo chart?
@andriuxcorrales1575
@andriuxcorrales1575 Год назад
why A1048576 ???
@thesmallman
@thesmallman Год назад
It is the very bottom cell in Excel. Start at the very bottom and come up to the last used cell.
@germaingyesah5724
@germaingyesah5724 Год назад
Thank You for the insight. Much appreciated
@thesmallman
@thesmallman 5 месяцев назад
You are most welcome.
@manzarabbas5233
@manzarabbas5233 Год назад
Hi Marcus, this is very impressive, i want to create also, is it possible to share the data file,
@thesmallman
@thesmallman Год назад
Sorry some files take me months to make, there are dozens of free files that have similar functionality on my site and this can be recreated from scratch.
@jarlewinnem
@jarlewinnem Год назад
Love the way you explain things in details through out your videos! So much easier to gain the essence and concept behind the code, not missing out on mentioning what keyboard keys you use and why. Did also watch the video on how to create directory with VBA. Excellent! Thanks, keep up the good work! ;)
@thesmallman
@thesmallman Год назад
Probably the nicest comment I have ever read about my videos. Thanks ever so much. I will keep trying to provide good quality solutions. Take care.
@rey.vasquez4365
@rey.vasquez4365 Год назад
Hi Good morning Sir..would just like to ask your assistance on how I'll be able to count the events from a single cell? basically, i have a single cell that changes from "0" to "1" vice versa. (a data from PLC that is connected to excel thru (DDE ) dynamic data exchange. and I want to record how many times it changes from 0 to 1 ...thaNk you
@marchingideas298
@marchingideas298 Год назад
Exactly wht i was looking for
@salahuddin6266
@salahuddin6266 Год назад
Can you please make a video on how do you make this tutorial from scratch
@thesmallman
@thesmallman Год назад
I have made many videos about how to make dashboards exactly like this. They are all on my website.
@temitopelawal7588
@temitopelawal7588 Год назад
Please do you know why i m only allowed to connect three charts to my slicer. It wont work for all my charts
@thesmallman
@thesmallman Год назад
I can't think why that would be an issue. I never connect charts to pivot tables only to Excel ranges. I only use pivot tables for quick summary information or to inform a slicer that I use to inform Excel calculation tables.
@vivinski
@vivinski Год назад
How do you then use the Dynamic Range sub inside another macro so that VBA picks up the full data set when the amount of raw data is variable?
@thesmallman
@thesmallman Год назад
You can send a dynamic range between variables as follows Sub SendTO() Dim lr As Long lr = [A1048576].End(xlUp).Row Other lr End Sub Sub Other(TheLR) MsgBox TheLR End Sub This procedure sends the Last Row (LR) from SendTo to the Other procedure. This is how you get a variable to transfer between macros. Hope that helps.
@directorscompany379
@directorscompany379 2 года назад
I need further help. I have created both relationships, my slicer has both report connections ticked and yet selecting an option on my slicer filters nothing.
@thesmallman
@thesmallman 2 года назад
Assuming you are using the same dataset, if you are getting a different result you need to look over the video again. If my end result and your end result are different there is a step you have missed.
@iKoreaan
@iKoreaan 2 года назад
THANK YOU
@rubenvanderlaan4234
@rubenvanderlaan4234 2 года назад
Is it also possible to connect a regular table to a slicer?
@thesmallman
@thesmallman 2 года назад
Yes it is possible to connect a table to a slicer. Slicers provide the option to connect to a Pivot table or an Excel table.
@jerryjones8836
@jerryjones8836 2 года назад
Awesome presentation, thank you. I've been working this for a couple of days and in a short time you've taught me how to do it right as well as tools to help in troubleshooting. Thank you.
@thesmallman
@thesmallman 5 месяцев назад
This is awesome. Glad I could help.
@walkstreets
@walkstreets 2 года назад
Hi Marcus, How to get the output in diferent worksheet on same workbook rather output on same sheet?
@thesmallman
@thesmallman 5 месяцев назад
You just refer to the sheet you want to put the output on before the range reference. In vba it is workbook.worksheet.range.action. I have provided range.action. You just add worksheet.range.action and t hat will get your data on the other sheet.
@lagusgoudas2705
@lagusgoudas2705 2 года назад
please send me this code in email box thank you
@mdimran1a
@mdimran1a 2 года назад
That's Great. Well explained. Being an Excel VBA beginner I have a confusion. We are trying to load a excel range into memory so we can manipulations it faster. Dictionary is already a memory portion. why first we are transferring our range into an array before adding it to dictionary? secondly what would be fastest lookup Array or Dictionary or Collection?
@thesmallman
@thesmallman Год назад
Hi Imran - a dictionary will only store unique keys so you can't just put an entire dataset into the dictionary. You need to put it into an array then push only the unique items into the dictionary. You determine the breadth of those items that go into the dictionary. Secondly a dictionary is faster than an array and I am not sure what is faster the collection or the dictionary. Hope that helped.
@sayyamkhurana
@sayyamkhurana 2 года назад
Hi Marcus, everything went fine until the last step. The thing is that only one pivot table(of the two that i had created) is being filtered at my end. I selected both the pivot tables in the report connection dialog box of the slicer but still only one pivot table is being filtered.
@directorscompany379
@directorscompany379 2 года назад
I have this issue too.
@cindymesia401
@cindymesia401 2 года назад
Sub Filter_Criteria() Dim Data_sh As Worksheet Dim Filter_Criteria_Sh As Worksheet Dim Output_sh As Worksheet Set Data_sh = ThisWorkbook.Sheets("Data") Set Filter_Criteria_Sh = ThisWorkbook.Sheets("Filter_Criteria") Set Output_sh = ThisWorkbook.Sheets("Output") Output_sh.UsedRange.Clear Data_sh.AutoFilterMode = False Dim Emp_list() As String Dim n As Integer n = Application.WorksheetFunction.CountA(Filter_Criteria_Sh.Range("A:A")) - 2 ReDim Emp_list(n) As String Dim i As Integer For i = 0 To n Emp_list(i) = Filter_Criteria_Sh.Range("A" & i + 2) Next i Data_sh.UsedRange.AutoFilter 2, Emp_list(), xlFilterValues Data_sh.UsedRange.Copy Filter_Criteria_Sh.Range("c1") Data_sh.AutoFilterMode = False End Sub
@cindymesia401
@cindymesia401 2 года назад
sir, what if i filter multiple criteria but its just a keyword not the exact word? how would I do that
@thesmallman
@thesmallman Год назад
Hi Cindy - you can use wildcard characters in your code for instance if you wanted all fields with Data it would look like this. [A1:A100].AutoFilter 1, "*" & "Data" & "*" This would trap any line with Data in any part of the field. Hope this helps.
@cagatay3340
@cagatay3340 2 года назад
Hi Marcus, I would like to implement this on multiple columns. How can i make it possible? In addition, i want to do it over one sheet on excel workbook. Could you please share me full code from beginning to end point? I really need this code. Thanks
@Jane-kn7rj
@Jane-kn7rj 2 года назад
Excellent! Thank you very much for this.
@thesmallman
@thesmallman 2 года назад
You're very welcome!
@imranbhatti8580
@imranbhatti8580 2 года назад
Nice placement of every element and chart. No jumbled data. Great work.
@thesmallman
@thesmallman 2 года назад
Much appreciated!
@kebincui
@kebincui 2 года назад
Excellent. Thanks for sharing
@thesmallman
@thesmallman 2 года назад
My pleasure!!!!
@dhirendranathmandal6949
@dhirendranathmandal6949 2 года назад
Sir please want a video for Create a Macro to save Specific Worksheets in specific folder
@thesmallman
@thesmallman 2 года назад
There are plenty of examples of precisely this on my website. See if the following works for you. www.thesmallman.com/copy-sheet-and-save All the very best.
@zee.khan86
@zee.khan86 2 года назад
Loved your work, helped a lot for Dashboard skills. Appreciate Hardwork on the World Map :)
@thesmallman
@thesmallman 2 года назад
Glad it helped!
@martinachupac2678
@martinachupac2678 2 года назад
Thank you very much! It leveled up my spreadsheet instantly!
@thesmallman
@thesmallman 2 года назад
Excellent! Glad it helped.
@trsammy432
@trsammy432 2 года назад
How can you move them back and forth? I want one variable to go into one macro, run a calculation and spit out the output variable back into the first macro. Any insights would be appreciated!
@thesmallman
@thesmallman 2 года назад
I could be wrong but I don't think that is possible. Your workaround would be to use the second macros result and perform the necessary actions after the result is held in memory. Please post for others if you have a better workaround.
@paviralanaresh
@paviralanaresh 2 года назад
How did you create these charts ?
@thesmallman
@thesmallman 2 года назад
With a great deal of patience and persistence.
@lyubimayadorama
@lyubimayadorama 2 года назад
my teacher also told me to work on this program but it is very difficult