No IFS ands or BUTs

SJC Excel Junkie

New Member
Joined
Feb 9, 2021
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
I am trying to combine these two formulas - basically if the machine didn't run the sum of BA12:BA14 will be 0 and the result in BG should be 0
If the machine did run then BG should be the average of AZ12:AZ14 in hours or if there is no errors during the run it should be 7.833

HELP!!

IF((SUM(BA12:BA14)),0,0)
IFERROR((AVERAGEIF(AZ12:AZ14,"<>0")/60),"7.833")
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I am finiding your question a bit confusing, and am guessing perhaps others are too.
I think it would be beneficial if you could post a small example of your data, and tell us what your expected result is based on that data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
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")
 
Upvote 0
Is this what you mean
Excel Formula:
=IF(SUM(F13:F15)=0,0,IFERROR(AVERAGEIF(E13:E15,"<>0")/60,7.833))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,373
Messages
6,124,544
Members
449,169
Latest member
mm424

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