SIMIF Issue

Diacide

New Member
Joined
Jun 27, 2014
Messages
6
Hi

I have 2 Workbooks, Book2 acts as a report that pulls data of Book1. Book 1 is an input sheet that a clerk uses. Book1 consists mostly of drop-down select boxes with data validation and some cells to type hour and minute. Now one of the Tabs on Book1 is called "Downtime" with columns "Type", "Machine Number", "Date", "Down Time" (Hr, min), "Description", "Up Time (Hr, min)" "Duration". The values that needs to be returned to Book2 is the "Duration". The logic that needs to be followed is the following:

IF Machine Number = XYZ, Tally up all the duration times for that machine. We want to know the total duration of each Machine. The current formula looks like this, but only works if Book2 is open:

=IFERROR(SUMIF('F:\Reports\[11.xlsx]DS_DT'!$C$6:$C$155,JW$3,'F:\Reports\[11.xlsx]DS_DT'!$N$6:$N$155),0)+IFERROR(SUMIF('F:\Pit Control\[11.xlsx]NS_DT'!$C$6:$C$155,JW$3,'F:\Reports\[11.xlsx]NS_DT'!$N$6:$N$155),0)

When the IFERROR is removed the formula returns #VALUE!. Once the workbook is opened, the correct Summed value is returned. I have read that SUMIF does behave like this. It does not update to closed workbooks. But the strange thing is that it works on a colleague of mine's Laptop. And he also runs Excel 2013. I have re-installed office, installed office 2010, set all security settings on as low as possible, no luck. I even tried it on another PC which is also running Excel 2013. This gave the same result. Below is an example of the data. This would have been simple if the events only occurred once, but multiple break-downs is a real possibly:

Ref.Plant TypePlant no.Booked OffBreakdownRepoted to:Booked OnDuration
DateHourMinuteTime StampDescriptionDateHourMinuteTime Stamp
1DrillsDR-0609-Jul-147567/9/14 7:56Hooter Problem 9-Jul-148337/9/14 8:330.6
2ExcavatorEXC-0539-Jul-147277/9/14 7:27Oil Leak-Hydraulic 9-Jul-148227/9/14 8:220.9
3ExcavatorEXC-0529-Jul-148147/9/14 8:14Hydraulic Pipe 9-Jul-148447/9/14 8:440.5
4DrillsDR-0839-Jul-147467/9/14 7:46Electrical Problem 9-Jul-148237/9/14 8:230.6
5DrillsDR-0739-Jul-147507/9/14 7:50Rotery head-problem 9-Jul-141407/9/14 14:006.2
6DozerD10-409-Jul-148317/9/14 8:31Failing to start 9-Jul-141907/9/14 19:0010.5
7DrillsDR-0599-Jul-148327/9/14 8:32Engine Cut Off 9-Jul-148507/9/14 8:500.3
8DrillsDR-0589-Jul-148517/9/14 8:51Rotery head-problem 9-Jul-149177/9/14 9:170.4
9Water_BowserWB-0719-Jul-148557/9/14 8:55Failing to start 9-Jul-14987/9/14 9:080.2
10Dump_TruckDT-1939-Jul-148587/9/14 8:58Failing to start 9-Jul-1411197/9/14 11:192.3
11DrillsDR-0599-Jul-148507/9/14 8:50Engine Cut Off 9-Jul-1413237/9/14 13:234.5

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>

Any help on this problem would be highly appreciated.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
A formula that cannot process arrays does not work wit closed books.

Try rather one that will do so...
Rich (BB code):
=SUM(SUMPRODUCT(('F:\Reports\[11.xlsx]DS_DT'!$C$6:$C$155=JW$3)+0,'F:\Reports\[11.xlsx]DS_DT'!$N$6:$N$155),
    SUMPRODUCT(('F:\Pit Control\[11.xlsx]NS_DT'!$C$6:$C$155=JW$3)+0,'F:\Reports\[11.xlsx]NS_DT'!$N$6:$N$155))
 
Upvote 0
A formula that cannot process arrays does not work wit closed books.

Try rather one that will do so...
Rich (BB code):
=SUM(SUMPRODUCT(('F:\Reports\[11.xlsx]DS_DT'!$C$6:$C$155=JW$3)+0,'F:\Reports\[11.xlsx]DS_DT'!$N$6:$N$155),
    SUMPRODUCT(('F:\Pit Control\[11.xlsx]NS_DT'!$C$6:$C$155=JW$3)+0,'F:\Reports\[11.xlsx]NS_DT'!$N$6:$N$155))

Thanks, will give it a try and let you know.
 
Upvote 0

Forum statistics

Threads
1,216,222
Messages
6,129,586
Members
449,520
Latest member
TBFrieds

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