Scan through loop

GexcelG

New Member
Joined
May 15, 2018
Messages
7
Hi,


I have a continuously (once a day) updating database that looks like this:
Machine`Minor StopsMalfunctionMalfunction TypeMinor StopsMalfunctionMalfunction Type
1A1111111100 11110.70.5002.80A
2A1110.5110.5110 1110.5110.5110
3A1110010004A 1111000004B
4A0001111103B 0001111103B
1B0000000000Dual use 0000000000Dual use
2B0000000000Dual use 0000000000Dual use
5B1111111100 1111111100
6B1110.5110.5110 1110.5110.5110
7B1110010004A 1111111100
8B0.70.80.9110.70.60.71.60 0.70.80.9110.70.60.71.60
9B1111111100 1111111100

<colgroup><col><col span="5"><col span="6"><col><col span="12"></colgroup><tbody>
</tbody>
I am trying to create a loop that will give me the summary of machine malfunctions by type.
Assume that the database is full and based on the following logic:
1. The first cell in the row is the machine number/ name
2. Each shift is 8 hours long.
3. For each shift there’s an indication per hour of machine utilization:
a. First 8 cells are the machine operating capacity (Number between 0 to 1).
b. The next cell (9th) is minor stoppages (the amount of hours the machine did not work at full capacity, usually a fracture. E.g. 1 in the second row, or 1.6 in machine 8B).
c. Alternatively if the machine experienced a malfunction the 10th cell will sum the number of idle hours the machine stood idle, and the 11th cell will specify the reason (from a closed list of reasons).
4. These 11 cells will repeat themselves for every shift
5. Some machines appear twice (1A 1B) but only one of them is relevant, next to other it states “dual use” – so to know that the machine was not idle but used in another line

I want the loop to create the following summary table:

1AA2.8
2AMinor1
3AA4
B4
4AB6
1BDUAL USE
2BDUAL USE
5B(none)
6BMinor2
7BA4
8BMinor3.2
9B

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>
I’ve tried any pivotable or multiple Ifs I can think of.

Thank you so much!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,213,535
Messages
6,114,194
Members
448,554
Latest member
Gleisner2

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