Vlookup or 2d array?

base_boot

New Member
Joined
Jul 8, 2005
Messages
49
Hi folks,
Pretty stumped with how to go about the following:

I've been asked to create a "serives uptime" reporting tool for work.

One worksheet "ServiceList" lists the current services:
Services Availability v1.2.xls
ABCD
1Services
2Stratis
3WAN
4Email
5Network
6Internet
7RemoteAccess
8CallCentre
9Voice
10ExternalWebsite
11
ServiceList


A simple user form populates an Outages worksheet with outages:
Services Availability v1.2.xls
ABCDEFGHIJK
1ServiceTypeStartDate/TimeEndDate/TimeTotalDuration(minutes)BusinessDuration(minutes)TotalMonthlyBusinessTime(minutes)Month/YearFinYearITSMInc#Comments
2WANInfrastructureThu1/01/200914:07Thu1/01/200914:070012000Jan-09FY08-09n/aFirstInfrastructureentry-required
3RemoteAccessInfrastructureThu1/01/200911:00Fri2/01/200911:20146020012000Jan-09FY08-09n/aCheckpointpatchrequired.
4WANInfrastructureFri2/01/200908:00Fri2/01/200913:3033033012000Jan-09FY08-09n/aTelstraissue
5VoiceInfrastructureFri16/01/200917:30Sat17/01/200912:0011103012000Jan-09FY08-09n/aNECrebootedQmaster
6StratisStratisThu8/01/200910:55Thu8/01/200911:57626212000Jan-09FY08-09n/a
7WANInfrastructure17/12/20088:3017/12/200811:3018018012000Dec-08FY08-09n/aWandown
8CallCentreInfrastructure15/12/200811:3015/12/200812:30606012000Dec-08FY08-09n/aPhonesdown
9InternetInfrastructureThu12/02/200908:05Thu12/02/200911:3220720712000Feb-09FY08-09n/a
10InternetInfrastructure4/02/200912:004/02/200913:00606012000Feb-09FY08-09n/a.
11ExternalWebsiteInfrastructure19/11/20088:0619/11/200810:0612012011400Nov-08FY08-09.
12InternetInfrastructure27/12/200811:1327/12/200813:04111012000Dec-08FY08-09n/a
13StratisStratis11/11/200814:2511/11/200820:0033521511400Nov-08FY08-09n/a
Outages
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Basically, you want to show totals beside the row headers in Sheet 1?
You could use a pivot table, or the SumIf function.

You didN,t say what the report should look like, so it's a bit hard to help ... ;)
 
Upvote 0
What I need to create is the following:
Services Availability v1.2.xls
ABCDEFGH
1AvailabilityTargetNov-08Dec-08FY09/10Jan-09Feb-09
2WAN99.0%100%99%99%97%100%
3Email99.0%100%100%100%100%100%
4Network99.0%100%100%99%100%97.77%
5Internet99.0%100%100%100%100%100%
6RemoteAccess99.0%100%100%99%98%100%
7CallCentre99.0%100%100%100%100%100%
8Voice99.0%100%100%100%100%100%
9ExternalWebsite99.0%98%100%100%100%100%
10
11Infrastructure99.0%99.75%99.75%99.57%99.42%99.72%
12
13Stratis99.00%99.11%100.00%99.74%99.48%100.00%
14
Demo Report


Essentially from the outages worksheet the "business duration" for each service for each month is divided by the "Total Monthly Business Time (minutes)" to find a percentage downtime. If there are multiple entries for any particular service for that month then their respective Business Duration (minutes) are combined to calculate the percentage. IE service Internet in Feb 09.

If there are no entries for the month for the services listed on the "ServiceList" worksheet then the percentage uptime is 100%

The Services listed on the "ServiceList" worksheet may change.

No idea how to go about this. I think it may be a simple vlookup, but not sure how to create an array from the "ServiceList" worksheet to crosscheck against the "Outages" worksheet.

Any help would be much appreciated!
 
Upvote 0
Hey Lincoln Six Echo,
you guys are quick! I was adding the second part to the post as you replied!

I did try a pivot table, but it doesn't allow me to calculate each sevice independantly. It groups them all under the type Infrastructure / Stratis (column B "outages" worksheet). Totals each "business duration minutes" for each month and from the calculates the percentage availabilty.

Calculated Field
PercentageUptime = ('Total Monthly Business Time (minutes)'-'Business Duration (minutes)') /'Total Monthly Business Time (minutes)'

To give:
Services Availability v1.2.xls
ABCD
3Data
4Month/YearTypeSumofBusinessDuration(minutes)PercentageUptime
5Nov-08Infrastructure12098.95%
6Stratis21598.11%
7Dec-08Infrastructure24099.00%
8Stratis100.00%
9Jan-09Infrastructure56095.33%
10Stratis6299.48%
11Feb-09Infrastructure26797.78%
12Stratis100.00%
report
 
Upvote 0
I did it for 2 services only. And I didn't include the type. If the formula works for you, just add a 3rd criteria for the type ...

Excel Workbook
CDE
23Dec-08Feb-09
24WAN180530
25Call Centre6092
Sheet1
 
Upvote 0
Hey,
again thanks for getting back to me.

the sumifs function is excel 2007. I could use SUMPRODUCT, however that won't take into account a return if there is no outage reported for a particualr service for the month.

I'll try to explain it again.

We have a list of services. Each time there's an outage for one it's logged on the "outages" worksheet. There's the "Total Monthly Business Time (minutes)" and "Business Duration (minutes)" for each logged outage.

At the end of the month I need to caculate the Business Time percentage uptime for each service listed on the outages worksheet.

Add up all the "Business Duration (minutes)" for each service for the month. individually.
100 - ((Each totals divided by Total Monthly Business Time (minutes)) x 100) = percentage uptime for each service

If however there's no entry for any particular service then the percentage uptime is obviously 100%

Example:

Service Internet in Feb 09:
100 - ((267 / 12000) x 100) = 97.77(%)

Service Stratis in Feb 09:
no entry => 100(%)

I'd be keen on doing this via a macro rather than formula, easier to debug and at least for me eaiser to understand!

Thanks for your help :)
Shane.
 
Upvote 0
Any thoughts folks?

If further clarification, (or perhaps just clarification!), is required please let me know!!

Really appreciate any thoughts/suggestions/hints.
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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