Change the lockstructure to 0 is a new thing I learned. Thanks alot. Found your video at the right time.
@merazmamun-analytics10 күн бұрын
@omrilli Thank you and glad you found the vid helpful! Whenever I see a 0 or 1, my mind immediately goes into boolean values since I deal with those a lot lol. Please let me know if there are any other videos you'd want to see as well!
@regentvoo18 күн бұрын
I have one issue sometimes its a zero, sometimes it's blank! If I copy the blank (in the original sheet where it's being searched) over the blank (that outputs zero), then it becomes blank output. I checked, theres nothing there, no space nothing and I tried pasting format only but nothing changes too, Really weird
@merazmamun-analytics17 күн бұрын
@regentvoo hmmm, it's going to be difficult to identify the problem and solution without having the actual excel file or even a screenshot of it. But what you can try to do first is use the UNICODE function on your lookup value or lookup range and see what you get. From what I'm reading, I'm guessing this might be an issue with a special character that Excel is reading differently.
@TalmadgeMcGhoulaghy20 күн бұрын
Very informative. Thanks.
@merazmamun-analytics20 күн бұрын
@@TalmadgeMcGhoulaghy thank you! Please let me know if there are any Excel related videos you'd want to or are interested in seeing as well!
@amolgaikwad6977Ай бұрын
Amazing 👌
@merazmamun-analyticsАй бұрын
Thank you! If there is any other Excel related video you'd want to see, let me know!
@merazmamun-analyticsАй бұрын
This is the VBA code to use the LAMBDA function in any Excel Workbook: Sub custom_function_with_lambda() 'This LAMBDA function is used to find the last row number for any single column ActiveWorkbook.Names.Add Name:="_last_row", RefersToR1C1:= _ "=LAMBDA(col_range,LOOKUP(2, 1/(col_range<>""""),ROW(col_range)))" ActiveWorkbook.Names("_last_row").Comment = "This custom function is used to find the last row number for any single column. Parameter: col_range" End Sub These are the VBA code for the UDFs last_row_v1 and last_row_v2: 'One version of the last row function Function last_row_v1(col_range As Range) As Long 'Turn on error handling On Error Resume Next 'Find the last row based on the entire column. last_row_v1 = col_range.Worksheet.Cells(col_range.Worksheet.Rows.Count, col_range.Column).End(xlUp).Row 'If error occurs... If (Err.Number <> 0) Then 'Last row will be equal to 0 last_row_v1 = 0 'Clear the error Err.Clear End If 'Turn off error handling On Error GoTo 0 End Function 'Another version of the last row function Function last_row_v2(col_range As Range) As Long 'Range variable used to loop through each cell in the selected range Dim cell As Range 'Long variable used to store the current last row number in each looped cell Dim last_row As Long 'Turn on error handling On Error Resume Next 'Loop through each cell in selected range For Each cell In col_range 'If current cell is not blank, then store the current row number into last_row variable If (cell.Value <> "") Then last_row = cell.Row End If Next cell 'Store the value in last_row to last_row_v2 for output last_row_v2 = last_row 'If error occurs... If (Err.Number <> 0) Then 'Last row will be equal to 0 last_row_v2 = 0 'Clear the error Err.Clear End If 'Turn off error handling On Error GoTo 0 End Function
@sameermohammad6648Ай бұрын
with cte as (select user_id,created_at, lead(created_at,1) over(order by user_id,created_at) as nextday,lead(user_id,1) over(order by user_id,created_at) as nextuser from amazon_transactions) select distinct user_id from cte where user_id=nextuser and datediff(nextday,created_at)<7;
@Planner007Ай бұрын
Pivots can actually collapse and expand groups..
@TheNowsher2 ай бұрын
Good one
@merazmamun-analytics2 ай бұрын
Thank you! Glad you found the tricks helpful!
@LaloinLondon3 ай бұрын
Excellent!
@merazmamun-analytics3 ай бұрын
@@LaloinLondon Thank you!
@LaloinLondon3 ай бұрын
What about mixed type data issues in the same column? I mean numeric and string type.
@merazmamun-analytics3 ай бұрын
@LaloinLondon From what I've tested, you can select data from a column with different datatypes, but you cannot perform calculations on that column, otherwise you would get a Data Type Mismatch error. For example, in the Market Price column, I have a mix of numbers and "N/A". I can use a simple SELECT statement to get the data, but I CANNOT use the SUM function to find the total of that column. Let's say for that column you only have numbers, but formatted some values as currencies and some values as text. You would still be able to use the SUM function on that column to find its total. As long as you don't have any characters that are not numbers, there shouldn't be any issues with the calculations. There could be a few edge cases that I'm missing, but if you find any let me know. Hope that helps!
@LaloinLondon3 ай бұрын
@@merazmamun-analytics The thing is that errors are coming with SQL with mixed type data in the same fiels. ADO will test the first rows and decide if the column/field is numeric or string. If you have product codes that are numeric in the first 30 rows, and the rest of the codes are strings, then the SQL command assumes is a numeric field and all the string values will come as errors. I tried many solutions I saw on internet but they were not handy or successful. This problem is better nanded with Power Query where you can set the the format as string/text. Nevertheless, I like your idea of using SQL with a function.
@SpreadsheetKindness3 ай бұрын
those slicers are great! you have a like from me!
@merazmamun-analytics3 ай бұрын
@SpreadsheetKindness Thank you! Stay tune for more Excel related videos in the future and let me know if there are any other videos you'd want me to make!
@merazmamun-analytics4 ай бұрын
Note that I cannot paste my 3 functions into the description box as they are too big, so I will just paste them here as a temporary measure. You can copy and paste the 3 functions below into your Excel add-in file and enable the add-in file to be used in any Excel Workbooks. The formatting (indentations) might look a bit messed up when copying and pasting here, so apologies in advanced!: 'This UDF will retrieve a list of file name from one or more folder paths Function get_file_names(ParamArray folder_paths() As Variant) As Variant 'Variables used to create FileSystemObject, everything associated with it, and keep track of files looped Dim fso As Object Dim fol_path As Object Dim file As Object Dim folder_paths_index As Long Dim file_names() As String Dim file_count As Long Set fso = CreateObject("scripting.filesystemobject") 'Turn on error handling 'If an error occurs, go to label "error_handler" On Error GoTo error_handler file_count = 0 'Loop through each folder path provided by the user For folder_paths_index = LBound(folder_paths) To UBound(folder_paths) 'Check to see if the folder path exists If (fso.FolderExists(folder_paths(folder_paths_index))) Then 'Set fol_path to current folder being looped Set fol_path = fso.GetFolder(CStr(folder_paths(folder_paths_index))) 'Loop through each file in the current folder For Each file In fol_path.Files 'Store the file name in the file_names array and adjust the size of the array for each file stored ReDim Preserve file_names(file_count) file_names(file_count) = file.Name file_count = file_count + 1 Next file End If Next 'If there are items in file_names, then transpose the array so output shows vertical array instead of horizontal 'Otherwise, output "No file(s) found." If (file_count > 0) Then get_file_names = Application.Transpose(file_names) Else get_file_names = Array("No file(s) found.") End If 'Reset object variables to nothing Set fso = Nothing Set fol_path = Nothing Set file = Nothing 'Assuming no errors, exit the function Exit Function error_handler: 'Handle errors and provide error descriptions 'Reset object variables to nothing get_file_names = Array("Error: " & Err.Description) Set fso = Nothing Set fol_path = Nothing Set file = Nothing End Function 'The UDF will show the file type in one column and the count for each file type in the next column from one or more folder paths Function count_files_by_type(ParamArray folder_paths() As Variant) As Variant 'Variables used to create FileSystemObject, everything associated with it, and keep track of files looped Dim fso As Object Dim fol_path As Object Dim file As Object Dim file_extension As String Dim file_count_dict As Object Dim key As Variant Dim result() As Variant Dim folder_paths_index As Long Dim i As Long 'Turn on error handling 'If an error occurs, go to label "error_handler" On Error GoTo error_handler Set fso = CreateObject("Scripting.FileSystemObject") Set file_count_dict = CreateObject("Scripting.Dictionary") 'Loop through each folder path provided by the user For folder_paths_index = LBound(folder_paths) To UBound(folder_paths) 'Check to see if the folder path exists. If (fso.FolderExists(folder_paths(folder_paths_index))) Then 'Set fol_path to current folder being looped Set fol_path = fso.GetFolder(CStr(folder_paths(folder_paths_index))) 'Loop through each file in the current folder For Each file In fol_path.Files 'Get the file extension name and store the name in a dictionary if it does not exist already 'Store the number of times each file extension name appears file_extension = fso.GetExtensionName(file.Path) If (file_count_dict.exists(file_extension)) Then file_count_dict(file_extension) = file_count_dict(file_extension) + 1 Else file_count_dict.Add file_extension, 1 End If Next file End If Next 'Populate the 2D result array with the dictionary values that will be used for count_files_by_type ReDim result(1 To file_count_dict.Count, 1 To 2) i = 1 For Each key In file_count_dict.Keys result(i, 1) = key result(i, 2) = file_count_dict(key) i = i + 1 Next key 'Return the result array count_files_by_type = result 'Reset object variables to nothing Set fso = Nothing Set fol_path = Nothing Set file = Nothing Set file_count_dict = Nothing 'Assuming no errors, exit the function Exit Function error_handler: 'Handle errors and provide error descriptions 'Reset object variables to nothing count_files_by_type = Array("Error: " & Err.Description) Set fso = Nothing Set fol_path = Nothing Set file = Nothing Set file_count_dict = Nothing End Function 'This UDF will check to see if the specific file name exists in one or more folder paths Function file_exists_in_folders(file_name As String, ParamArray folder_paths() As Variant) As Boolean 'Variables used to create FileSystemObject, everything associated with it, and keep track of files looped Dim fso As Object Dim fol_path As Object Dim file As Object Dim folder_paths_index As Long Set fso = CreateObject("scripting.filesystemobject") 'Loop through each folder path provided by the user For folder_paths_index = LBound(folder_paths) To UBound(folder_paths) 'Check to see if the folder path exists If (fso.FolderExists(folder_paths(folder_paths_index))) Then 'Set fol_path to current folder being looped Set fol_path = fso.GetFolder(CStr(folder_paths(folder_paths_index))) 'Loop through each file in the current folder For Each file In fol_path.Files 'If file exists in any of the folders, return function output as TRUE, reset object variables, 'and exit the function If (fso.fileexists(fol_path & "\" & file_name)) Then file_exists_in_folders = True Set fso = Nothing Set fol_path = Nothing Set file = Nothing Exit Function End If Next file End If Next 'If there were no files found in each folder path, then output FALSE file_exists_in_folders = False 'Reset object variables to nothing Set fso = Nothing Set fol_path = Nothing Set file = Nothing End Function
@mikeshellito22824 ай бұрын
I like your function. Is it possible for you to modify it so that it works on Excel Tables (ListObjects)?
@merazmamun-analytics4 ай бұрын
I am glad to hear that you like my function and that is a good question about ListObjects. It is certainly possible and I have seen it mentioned in other website. The trickiest part is finding a way to either update the UDF to take into account ListObjects or being able to reference the table / ListObject directly into the 2nd argument of the sql function. When I tried referencing the table name directly, I got an error message from the function so there is probably a different syntax involved. I have been spending a couple of hours trying to figure out how I can update the sql function to work with both ranges and listobjects without making the function be clunky and actually be usable for both situations. If you want to try this yourself, try using the links below to see how you can update the function to include listobjects: Link 1: stackoverflow.com/questions/69504405/excel-listobject-format-as-table-in-sql Link 2: stackoverflow.com/questions/47029764/use-table-name-in-sql-query-in-vba-excel In the meantime, I am still figuring out how to include listobjects without making the function look or go bad. Hope that helps!
@mikeshellito22824 ай бұрын
I have been playing with this for some time now. The trick appears to be getting the tables address and converting it into a range name, which can be used directly in a SQL statement. I have gotten close to being able to do that, but in a clunky manner.
@s.triyambakpatro73415 ай бұрын
Excellent. Cant we use this as an Add-in?
@merazmamun-analytics5 ай бұрын
@s.triyambakpatro7341 thank you! Yes, you can use this use defined function on an add-in file. I created the Excel Add-In file beforehand. You can save an excel file as XLAM (If you have not done so already) and just paste the code (from my description) directly into the VB Editor. If you enable the add-in file, you should be able to use the user defined function in any workbook. Please note that this should work for windows, but not sure about MAC as you would need still need to be able to reference the active x data object library in VBA. If you like this video, then please show this to others who might be interested and let me know if there are any other videos you want to see! Hope that helps!
@timgentemann56188 ай бұрын
Much worse than the possibilities with python and co.
@merazmamun-analytics8 ай бұрын
Yep. This video is mostly for those who don't have a programming background, want to try a low-code solution, or expand to other tools that can help automate their work. Still good to use python for web scraping though as it can be much faster and flexible to your needs!
@atomicviv8 ай бұрын
Awesome video! Might actually use this myself for a project 🔥to fill up a database
@merazmamun-analytics8 ай бұрын
Thank you! Power Automate Desktop is super user friendly, but I wouldn't say as efficient as Python. Still, definitely give it a try!
@chandramohan14188 ай бұрын
pl provide PDF note.thank yu
@ryanj12629 ай бұрын
Super helpful
@merazmamun-analytics9 ай бұрын
Thank you!
@timgentemann56189 ай бұрын
Really great!! This video deserves much more views. It’s super helpful. Your guidance is gold.
@merazmamun-analytics9 ай бұрын
Thank you! I'm glad people find my videos to be helpful. I'm planning to make more Excel related tutorials in the future along with other analytical related content. So, be sure to stick around and check out my video that I plan to upload on Sunday related to a SQL coding challenge from LeetCode!
@satviksharma51479 ай бұрын
main problem is data science and analytics is very vast , going though various jd i found this , each and every company holds different requirement
@merazmamun-analytics9 ай бұрын
Agreed. If I was to prioritize from my personal experience of what would be the most important when breaking into data, it would be: Work Experience / Industry Expertise to degree / relevant degree or portfolio project to Certifications.
@satviksharma51479 ай бұрын
@@merazmamun-analytics yes , completely agreed 💯
@bharatrasve356610 ай бұрын
Great job
@merazmamun-analytics9 ай бұрын
Thank you!
@barneyy694211 ай бұрын
Can you do a video of moving from India to abroad by getting a job. Nobody sponsors visas these days, especially for freshers
@merazmamun-analytics11 ай бұрын
Hi there! While I don't have any experience in visa sponsorship area since I came to the U.S. when I was 5, I will still try to make a video on it after I do all the research. I will still have to go through other videos I want to make, so I hope you will stick around with the channel for other videos I plan to upload in the future.
@PrabhatSingh-zc3tw11 ай бұрын
great advice brother
@merazmamun-analytics11 ай бұрын
Thank you! Please let me know if there are any videos you want to see too.
@papercut._.11 ай бұрын
what's with the accent
@TonnySin11 ай бұрын
He has lived there from childhood
@merazmamun-analytics11 ай бұрын
On hindsight, I should have removed the duplicate rows before remove the unnecessary columns since the extra columns might contain unique values instead of duplicate values. Also, it was not necessary to remove the extra columns either, but did it anyway to make the file smaller and faster to load.
@hamzadardour347511 ай бұрын
Thank you a lot of this video ! Excel still a powerful tool in 2023 ! Can you creat videos about the use of Excel for analytics please ?
@merazmamun-analytics11 ай бұрын
Yep. I plan to make a video call "Top Excel Features and Functions For Data Analysis" sometime in the future. Be sure to subscribe if you haven't already, so you can see the video appear in your subscription page!
@merazmamun-analytics11 ай бұрын
@hamzadardour3486, I recently uploaded a video today on the best Excel Feature that Data Analysts can use. Hope that video fits in with your request!
@merazmamun-analytics11 ай бұрын
What other topics for VBA / Excel do you want to see? FORGOT TO MENTION IN THE VIDEO : You can also share your code easily with anyone to run the automation scripts. All you have to do (or one way) is by sharing the macro enabled workbook.
@slrahman8723 Жыл бұрын
I am 20 number subscriber, aspiring DA from Vancouver. Best wishes for Channel....expecting more real-life business/data analysis case videos.
@merazmamun-analytics Жыл бұрын
Thank you! I will definitely put in a data analysis case study in the future. For now, I'm planning to do some SQL coding challenge videos from websites like StrataScratch. If you have any data analysis case study projects you'd want me to show, let me know!
@slrahman8723 Жыл бұрын
@@merazmamun-analytics That's a great idea.
@slrahman8723 Жыл бұрын
@@merazmamun-analytics Thank you so much, I will share.
@saianwesh8023 Жыл бұрын
This is good content. I am currently persuing IBM data Science certificate and im at 8 th course out of 10. I also have access to google data analytics and google advanced analytics course on coursera. I have got an overview of data analytics . I will complete it in 1 week or so. I have many courses in coursera for free. After that Is it better to do googe advanced data analytics course or do other specialization course like SQl , Statistics , machine learning etc. ?
@merazmamun-analytics Жыл бұрын
Thank you! One thing to keep in mind if you are aiming for a data analyst role is that having a lot of certificates alone won't really help you get the job. If there are thousands of other people who can get these certificates, then employers will evaluate applicants based on other things, the biggest being job experience. If you plan to take certs, then view it as a way to gain knowledge on the field and apply the knowledge to your own projects to show off on resume. Make sure these projects are unique and reflect real world examples. If you want to learn more about trying to get a Data Analyst job, then please check out my previous video "The MOST Realistic Way to Get an Analyst Job". P.S. I stopped getting certs after the Google Data Analytics Certificate since I have a decent amount of work experience now. EDIT: Forgot to mention, but if you do have the time and plan to take a cert, then you can try going for the SQL cert. Being proficient in SQL can be very helpful for Data Analyst jobs. I also plan to make a vid on SQL sooner or later.
@saianwesh8023 Жыл бұрын
I'm planning to do masters in data science in usa for fall 2024. I got 2 admits( Saint Peter's new jersey city, University of Pacific san fransisco). In the mean time I tried for internships in India but could not get any. Now I have like 7 months of time. Is it better to upskill or try for an internship again ? Don't know what to do . Please give me your suggestion. I tried to message you on LinkedIn but LinkedIn premium is required for that.
@merazmamun-analytics Жыл бұрын
@saianwesh8023 I would aim for the internship. After all, having work experience on your resume can be valuable if you can get the internship and show impact in your role. Hopefully, the internship does not conflict with your schooling schedule either. If you do get the internship, then you can also upskill while working as an intern. If you have time to do both upskill and apply for internships, then you might as well go for that too. EDIT: If the internship is in India and you try to apply for jobs in U.S, I am not sure if when employers see that on a resume, they will think you will need to be sponsored and, as a result, reject your resume. Just something to think about.
@saianwesh8023 Жыл бұрын
@@merazmamun-analytics ya, but main problem here in Hyderabad, India is that there are no data analyst jobs for freshers. All of them require some sort of work experience 🙁. In the EDIT section you said that even if I get internship here, after completing ms and applying for jobs in usa , They would reject because they think I need sponsorship. Please can you explain this clearly If you have time.
@merazmamun-analytics Жыл бұрын
In the edit section, I clarified by saying "I am not sure" with that part. When I go through the resume subreddit on reddit, I have seen people mention that: If an employer (Let’s say from the U.S.) sees that you worked in a role in another country on a resume, then that employer MIGHT think that you will need to be sponsored to work in the U.S. This is not 100% guaranteed, though. You will have to do the research to see how this would play out for your situation. Good luck!
@RodrigoRodrigues-lw7zp Жыл бұрын
Hi there! Your vídeo is very helpful! I've just have my Google Analytics certificate and i don know where exactly i'll start to hunt job. But you gave me a few ideas. Thank you.
@merazmamun-analytics Жыл бұрын
Thank you! I also took the Google Analytics certificate and plan to upload a video on the most useful thing I learned from Google's Data Analytics Certificate either next week or the week after. Let me know if there are topics that you are interested in seeing and I'll try my best to make a video out if it.
@merazmamun-analytics Жыл бұрын
What else do you want to see? Comment below.
@salsabielhosny3410 Жыл бұрын
very helpful thank you
@merazmamun-analytics Жыл бұрын
What did you guys think of this video so far? I started testing out music with my own audio, so hopefully it is not too out of place. Let me know what else you would want to see and any areas of improvement for future videos.
@merazmamun-analytics Жыл бұрын
What other video do you guys want to see. Drop down with a comment below!