Combining formulas - IF, IFERROR, AVERAGEIF

Status
Not open for further replies.

SJC Excel Junkie

New Member
Joined
Feb 9, 2021
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
I have the data collection sheet below I need help for the formula in the Overall AVG MTBF (hrs) column.

So if there is Production time, but no downtime then the result should be 7.833

If there is NO Production time then the result needs to be 0

I have gotten to the 7.833 but can figure out how to add the extra formula to check for production time....please help

Test1.xlsx
BCDEFGHIJKLM
2Daily MTTR/MTBF By AssetShiftMTTRMTBFProduction Time (mins)MTN Downtime (mins)MTN DowntimeAsset AvailabilityOverall AVG MTTR (hrs)Overall AVG MTBF (hrs)Overall AVG MTN Downtime %
3
41Midnights0.000.0000.000.00%N/A0.1391.5834.03%
5Days8.3395.0031025.008.06%92.54%
6Afternoons0.000.003100.000.00%100.00%
72Midnights0.000.0000.000.00%N/A07.8330.00%
8Days0.000.004250.000.00%100.00%
9Afternoons0.000.004250.000.00%100.00%
103Midnights0.000.0000.000.00%N/A07.8330.00%
11Days0.000.004250.000.00%100.00%
12Afternoons0.000.004250.000.00%100.00%
134Midnights0.000.0000.000.00%N/A000
14Days0.000.0000.000.00%N/A
15Afternoons0.000.0000.000.00%N/A
18
Cell Formulas
RangeFormula
I4:I15I4=IFERROR((G4/F4),0)
J4:J15J4=IFERROR(F4/(F4+G4),"N/A")
K13:L13,K10,K7,K4:L4K4=IFERROR((AVERAGEIF(D4:D6,"<>0")/60),"0")
M4,M13,M10,M7M4=IFERROR((SUM(I4:I6)/COUNTIF(F4:F6,"<>0")),"0")
L7,L10L7=IFERROR((AVERAGEIF(E7:E9,"<>0")/60),"7.833")
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Duplicate to: No IFS ands or BUTs

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,636
Messages
6,120,669
Members
448,977
Latest member
moonlight6

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