Identify previous steps in table

Pestomania

Active Member
Joined
May 30, 2018
Messages
332
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I am trying to set up a table which will allow me to add smart logic to validate and / or verify the work ticket & step # combinations to identify previous and post step numbers. I am unsure if I explained it well in the below example, but a quick thought is that the table could identify the previous step in the process that was applicable. If it wasn't scanned, it moves to the one prior until something was scanned. I added steps to A12 of what I think explain the criteria for the formula.

I am sure there will be questions, please let me know and thank you in advance for the help!



Book2
ABCDEFGHIJ
1Work Ticket NumberStep #Scanned In Date / TimeScanned Out Date / TimeQueue Time (dd-h:mm)WIP (dd-h:mm)StatusAssumed Date & Time7/11/2023 22:30
221578107/1/2023 8:007/1/2023 10:3000-2:30Complete
321578207/2/2023 1:007/2/2023 6:0000-14:3000-5:00Complete
421578307/2/2023 17:007/2/2023 19:0000-11:0000-2:00Complete
521578407/3/2023 3:007/5/2023 22:0000-8:0002-19:00Complete
62157850  Missed Scan
721578607/11/2023 8:0005-10:0000-14:30Missed Scan
821578707/11/2023 21:0011-21:0000-1:30In Progress
92157880
102157890
11
12Steps: 1. Determine the "previous step" with the work ticket combo. In this case step 30 was the previous step to 40. 2. Identify the queue time in the above format which is how long was it setting from "scanned out" on previous step to "scanned in" on the current step 3. Identify the WIP time. This is the difference between scanned out & scanned in. If scanned out is empty, the WIP time is based on current date and time value (symbolized by J1 in this example. 4. If scanned out and scanned in are not blank, status is complete. If the next step is scanned in but there is a missing scan on a step, then it is a "Missed Scan" (this example step 50 is a missed scan because someone scanned into step 60). If Scanned In and no future steps have been scanned, that step is "in progress".
13
14
15
16
17
18
19
20
21
22
23
Sheet1
Cell Formulas
RangeFormula
F2:F8F2=IF(C2<>"",IF(D2<>"",TEXT(D2-C2,"dd-h:mm"),TEXT($J$1-C2,"dd-h:mm")),"")
G2:G8G2=IF(D2<>"","Complete",IF(AND(C2<>"",NOT(D2<>""),C3<>""),"Missed Scan",IF(AND(NOT(C2<>""),NOT(D2<>""),C3<>""),"Missed Scan",IF(AND(C2<>"",NOT(D2<>"")),"In Progress"))))
E3:E8E3=IFERROR(IF(D2<>"",TEXT(C3-D2,"dd-h:mm"),TEXT(C3-D1,"dd-h:mm")),"")
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,223,958
Messages
6,175,629
Members
452,661
Latest member
Nonhle

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