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!
 

Forum statistics

Threads
1,082,323
Messages
5,364,579
Members
400,809
Latest member
formulasataglance

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top