00:28 Business Scenario
02:24 Write Code in ChatGPT
04:19 Second Trial
VBA Code used in this video:
_____________________________________________________
Sub RemoveSingleQuoteAndChangeFormat()
Dim ws As Worksheet
Dim lastRow As Long
Dim dateRange As Range
Dim cell As Range
' Set the worksheet where the data is located
Set ws = ThisWorkbook.Worksheets("employee_records")
' Find the last row in column G with data
lastRow = ws.Cells(ws.Rows.Count, "G").End(xlUp).Row
' Set the range of column G (excluding the header row)
Set dateRange = ws.Range("G2:G" & lastRow)
' Loop through each cell in the range and remove the single quote
For Each cell In dateRange
cell.Value = Replace(cell.Value, "'", "")
Next cell
' Change the format of the range to Date format
dateRange.NumberFormat = "yyyy-mm-dd"
End Sub
_____________________________________________________
Related Links:
openai.com/blo...
Want to learn how to design a salary structure? Check: bit.ly/3r3KXeW
FREE template for my video: Excel for HR - Create Annual Employee Salary Increase Template from Scratch. You can download and try it out yourself here: bit.ly/2MLLdb7
FREE actual workbook for my video "Split a Master Spreadsheet into Multiple Sheets with 1 click - VBA for Beginner". You can download and try it out yourself here: bit.ly/2UmeX2v
*****More Videos in Playlists*****
Coding with ChatGPT bit.ly/3YtsmWe
Excel Macro - Beginner goo.gl/Yae5nc
Excel Macro/VBA - Splitting a Master File goo.gl/m8CHya
Excel Macro/VBA - Auto-hide Rows or Columns bit.ly/2Mzteb5
Excel vs Power BI: bit.ly/3NQWN51
Power BI for Beginners: bit.ly/3ivKitD
Power BI for Advanced Users: bit.ly/3lE9zmO
Excel for HR goo.gl/JdeVnd
Excel for HR - Master Class goo.gl/LYfq2f
Excel Charts Data Visualization goo.gl/2ao6BP
Excel Vlookup Function goo.gl/kP2Wpz
Excel Pivot Table Function goo.gl/rukkPs
Excel Array Function goo.gl/i4sQH8
Excel Index and Match Function goo.gl/i7VGU4
Excel Solver/Goal Seek Functions goo.gl/FTkTnj
Excel Cell Formatting Solutions goo.gl/gpa6MY
HR Analytics - Merit Matrix goo.gl/Koy7co
HR Analytics - Salary Structure goo.gl/uZBnFa
Excel Tricks goo.gl/TeqGDw
Excel Troubleshooting goo.gl/bdY5by
Fun HR Topics goo.gl/7zVg8h
#ExcelforHR#HRAnalytics#Excel#HR
Негізгі бет Clean Data with ChatGPT: Correct Inconsistent Date Format
Пікірлер