VBA for removing certain characters from the rows and creating a line chart out of it.

Zee996

New Member
Joined
Nov 30, 2021
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am cleaning a large set of SAP data to create a line chart of it.

I have deleted unwanted rows from the VBA code -
VBA Code:
Sub test()
With ActiveSheet
    .AutoFilterMode = False
    With Range("A1", Range("d" & Rows.Count).End(xlUp))
        .AutoFilter 1, "*sasdwk*"
        On Error Resume Next
        .Offset(1).SpecialCells(12).EntireRow.Delete
    End With
    .AutoFilterMode = False
End With
End Sub

#Taken help from this post - VBA Delete Entire Row if Contains Certain Text

Now, I want to clean the rest data in the rows that now look like this -
Column A
Wed Jan 25 10:20:58 IST 2023
atawork1 used=51 ctp=3300 1.55%
Wed Feb 1 10:47:00 IST 2023
atawork1 used=723 ctp=3300 21.91%

I want the output to look like this-
Date and Time Column APercentage Column B
Jan 25 10:20:581.55%
Feb 1 10:47:0021.91%

And then create a line chart out of these two(Output) columns.

Is this something that can be achieved by VBA?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top