VBA OR FORMULA

Vijeshkv

New Member
Joined
Aug 7, 2018
Messages
12
Hello I have below data , need row wise for the dates any formula or VBA



DTPTerritoryTasks/ReconCountry NameTeamMajor ProcessActivity/ TaskFrequencyBU SME NamePreparer Name(Enterprise ID)Preparer/ReviewerLevelCriticalityDependency on BUAHT (Hrs)Avg Time per task (Hrs)Total per month (Hrs)3/13/23/33/43/53/63/73/83/93/103/113/123/133/143/153/163/173/183/193/203/213/223/233/243/253/263/273/283/293/303/31
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer
12​
NANo11.000.511.00.500.500.500.500.500.500.500.500.500.500.500.500.500.500.500.500.500.500.500.500.500.50
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Result should be as below ... date wise

DTPTerritoryTasks/ReconCountry NameTeamMajor ProcessActivity/ TaskFrequencyBU SME NamePreparer Name(Enterprise ID)Preparer/ReviewerLevelCriticalityDependency on BUAHT (Hrs)Avg Time per task (Hrs)Total per month (Hrs)DateAHT_Daily
 
Upvote 0
DTPTerritoryTasks/ReconCountry NameTeamMajor ProcessActivity/ TaskFrequencyBU SME NamePreparer Name(Enterprise ID)Preparer/ReviewerLevelCriticalityDependency on BUAHT (Hrs)Avg Time per task (Hrs)Total per month (Hrs)DateAHT_Daily
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/1/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/2/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/3/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/6/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/7/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/8/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/9/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/10/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/13/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/14/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/15/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/16/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/17/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/20/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/21/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/22/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/23/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/24/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/27/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/28/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/29/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/30/2023​
0.5​
SSSN/AKKSSMAMAKKhuddleDailyNAVIJESH.KPreparer12NANo
11​
0.5​
11​
3/31/2023​
0.5​
 
Upvote 0
Hi, Im new in VBA, Kindly try the code below

P.S. : Need add a new sheet first (Sheet2)

VBA Code:
Sub test()
    
    With Sheet1
    
        lcol = .Cells(1, Columns.Count).End(xlToLeft).Column
        a = .Range(Cells(1, "a"), Cells(2, lcol)).Value
        ReDim b(1 To UBound(a, 2), 1 To 2)
        
        For j = 1 To UBound(a, 2)
         If IsDate(a(1, j)) And a(2, j) <> "" Then
            k = k + 1
            b(k, 1) = a(1, j)
            b(k, 2) = a(2, j)
         End If
        
        Next j
    
    End With

     With Sheet2
        .Range("r2").Resize(UBound(b, 1), UBound(b, 2)).Value = b
        .Range("a1:q1").Value = Sheet1.Range("a1:q1").Value
        .Range("a2: Q" & .Cells(Rows.Count, "r").End(xlUp).Row).Value = Sheet1.Range("a2:q2").Value

     End With
    

End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,098
Messages
6,170,100
Members
452,301
Latest member
QualityAssurance

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