Uptime - Report Automation | Looking for Help

TryingBest

New Member
Joined
Aug 2, 2022
Messages
30
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am new to this VBA and don't really do code. But, I would appreciate, it if someone can help with automating my report Data. This way can save a lot of my time.
I did try all the solutions available over the Internet, but none seems to work.

Here is what I want,

1. Select all the data-filled rows in column A, before the blank cell/row.
a. If possible apply filter to this, so all the columns get sorted according to this. (From Column A to S, in actual raw data).
2. Then Inset 4 columns to the right of Column B (Duration) - that formula should be hardcoded - as this calculates with downtime and uptime of any given entity.
3. Unique Names from Column A to be sorted and pasted in Column I (for instance).
4. Column J should calculate the uptime for its entity name in column I - in percentage (%), i.e. 100%-(SUM(D2,D13)) - In this case for A.
I guess, this can be done via SUMIF.

I have pasted be a table below (for reference) and a snapshot as well.

Looking forward to some positive replies and solutions, please.
TIA.



EntityDurationH1H2H3H4EntityUptime
A0:04:000:04:00
0.01%​
99.99%​
719:59:59​
A
99.46%​
B10:04:0010:04:00
1.40%​
98.60%​
719:59:59​
B
97.28%​
C0:05:000:05:00
0.01%​
99.99%​
719:59:59​
C
99.99%​
D0:04:000:04:00
0.01%​
99.99%​
719:59:59​
D
99.99%​
E0:52:000:52:00
0.12%​
99.88%​
719:59:59​
E
99.78%​
E0:23:000:23:00
0.05%​
99.95%​
719:59:59​
F
97.99%​
E0:20:000:20:00
0.05%​
99.95%​
719:59:59​
F5:02:005:02:00
0.70%​
99.30%​
719:59:59​
F6:05:006:05:00
0.84%​
99.16%​
719:59:59​
F3:20:003:20:00
0.46%​
99.54%​
719:59:59​
B9:02:009:02:00
1.25%​
98.75%​
719:59:59​
A3:50:003:50:00
0.53%​
99.47%​
719:59:59​
B0:30:000:30:00
0.07%​
99.93%​
719:59:59​
X
Y
Z
 

Attachments

  • Report_Help.png
    Report_Help.png
    26.5 KB · Views: 5

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
To do a macro we would need a lot more information.
Have you considered using Power Query ?

What about using a pivot table ?
20220805 VBA Advanced filter syntax correction TryingBest.xlsm
ABCDEFGHIJKLMN
1EntityDurationH1H2H3H4EntityUptimeEntitySum of DurationMax of H4
2A0:04:000:04:000.01%99.99%719:59:59A99.46%A3:54719:59
3B10:04:0010:04:001.40%98.60%719:59:59B97.28%B19:36719:59
4C0:05:000:05:000.01%99.99%719:59:59C99.99%C0:05719:59
5D0:04:000:04:000.01%99.99%719:59:59D99.99%D0:04719:59
6E0:52:000:52:000.12%99.88%719:59:59E99.78%E1:35719:59
7E0:23:000:23:000.05%99.95%719:59:59F97.99%F14:27719:59
8E0:20:000:20:000.05%99.95%719:59:59Grand Total39:41719:59
9F5:02:005:02:000.70%99.30%719:59:59
10F6:05:006:05:000.84%99.16%719:59:59
11F3:20:003:20:000.46%99.54%719:59:59
12B9:02:009:02:001.25%98.75%719:59:59
13A3:50:003:50:000.53%99.47%719:59:59
14B0:30:000:30:000.07%99.93%719:59:59
15
16X
17Y
18Z
ProcessData
Cell Formulas
RangeFormula
I2:I7I2=L2
J2:J7J2=(GETPIVOTDATA("Max of H4",$L$1,"Entity",$I2)-GETPIVOTDATA("Sum of Duration",$L$1,"Entity",$I2))/GETPIVOTDATA("Max of H4",$L$1,"Entity",$I2)
 
Upvote 0

Forum statistics

Threads
1,214,853
Messages
6,121,935
Members
449,056
Latest member
denissimo

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