Comparing last step to current row

Pestomania

Active Member
Joined
May 30, 2018
Messages
292
Office Version
  1. 365
Platform
  1. Windows
I am trying to identify a way to develop a formula which allows me to "scan" all of the work tickets and identify if the row I am on is before or after the last step scanned.

I.e. Step 10 is less than Step 30 which was scanned on 1/3/2023. Anything before Step 30 should be reviewed.



Book1
ABCDEFG
1Work Ticket NumberStep NumberDate ScannedLast Step ScannedShould I review?
21101/1/20231 - 30YesThe rule is: If a step 30 has been scanned but step 20 has not, step 20 needs to be reviewed for accuracy.
31201 - 30Yes
41301/3/20231 - 30YesWhat I need help determining is "what is the last step scanned on the unique work ticket and is that row prior to that last step"?
51401 - 30No
612103/1/202312 - 50Yes
7122012 - 50Yes
8123012 - 50Yes
9124012 - 50Yes
1012503/3/202312 - 50Yes
11126012 - 50No
Sheet1
 
Ok, how about
Fluff.xlsm
ABCDEF
1WorkTicketNoStepNoDateUpdatedStatusCodeMax Step ScannedIs this Step less than 170?
2222431045013NEWyes
3222433145013COMyes
4222433145013COMyes
5222437045013COMyes
6222439145013COMyes
7222439145013COMyes
82224310045013COMyes
92224312045013NEWyes
102224316145013COMyes
112224316145013COMyes
122224317045013COMNo
132224319045013NEWNo
142224321145013NEWNo
152224321145013NEWNo
162224322045013NEWNo
172224324045013NEWNo
182224326145013NEWNo
192224326145013NEWNo
202224327045013NEWNo
212224329045013NEWNo
Sheet4
Cell Formulas
RangeFormula
F2:F21F2=IF(B2<MAXIFS(B:B,A:A,A2,D:D,"<>New"),"yes","No")
That is working! The only question I have: In our data the work ticket and step number are text fields, which this doesn't work with. The "work around" is I created two columns that multipled those columns by 1 to make them a number. Do you have other suggestions?
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
How about
Excel Formula:
=IF(--B2<MAX(IF(($A$2:$A$100=A2)*($D$2:$D$100<>"New"),--$B$2:$B$100)),"yes","No")
 
Upvote 0

Forum statistics

Threads
1,215,401
Messages
6,124,705
Members
449,182
Latest member
mrlanc20

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