Formula Help Please

natheplas

Board Regular
Joined
Aug 28, 2016
Messages
97
Hello,
I have a worksheet with Works Order Numbers in column A, then OP_No in column B. There are date and time data in column D.

Is there a formula I can use to look at the works order number, use the date column, to return the previous op no?

For example

WO123 OPNO1 20/03/2022 -
WO123 OPNO2 25/03/2022 OPNO1

Test1.xlsx
ABCDEFGHIJKLMNO
1WO_NoOp_NoConcateCompletion Date Op_Narr_NoWC_CodeLabr_Time_TakenSetup_Time_TakenQty_CompleteQty_RejectedQty_ScrappedCompletion_Ind_YNWOPrevious OpPrevious qty
2100091010001 1003/10/20080200IN00100Y100010
3100031010003 1006/08/20080200IN001000Y100030
4100101010009 1005/08/20080200IN00600Y100090
5801291010010 1006/08/20080200IN00200Y100100
6802061010011 1016/03/20090200IN00400Y100110
7802221010020 1030/10/20080200IN00200Y100200
8802031010021 1029/10/20080200IN003200Y100210
9100341010022 1014/10/20080200IN003000Y100220
10800701010023 1009/02/20090200IN001600Y100230
11801431010027 1028/01/20090200IN001500Y100270
12802021010028 1020/04/20090200IN005000Y100280
13800651010029 1002/10/20080200IN003000Y100290
14801341010033 1028/11/20080200IN002000Y100330
15100291010034 1030/09/20080200IN005800Y100340
16801071010036 1027/01/20090200IN00800Y100360
17801601010191 1027/05/20090200IN00100Y101910
18100011010191 2027/05/20090200IN001100Y101910
19800541010191 3008/07/20090200IN00500Y101910
Sheet1
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Possible solutions based on your data posted.

deleteme1.xlsx
ABCDEFGHIJKLMNOPQRST
1WO_NoOp_NoConcateCompletion Date Op_Narr_NoWC_CodeLabr_Time_TakenSetup_Time_TakenQty_CompleteQty_RejectedQty_ScrappedCompletion_Ind_YNWOPrevious OpPrevious qtyxLookup WOLookup OP< This DatePrevious OP#
2100091010001 1003/10/20080200IN00100Y10001080054103/25/22210
3100031010003 1006/08/20080200IN001000Y100030
4100101010009 1005/08/20080200IN00600Y100090
5801291010010 1006/08/20080200IN00200Y100100
6802061010011 1016/03/20090200IN00400Y100110
7802221010020 1030/10/20080200IN00200Y100200
8802031010021 1029/10/20080200IN003200Y100210
9100341010022 1014/10/20080200IN003000Y100220
10800701010023 1009/02/20090200IN001600Y100230
11801431010027 1028/01/20090200IN001500Y100270
12802021010028 1020/04/20090200IN005000Y100280
13800651010029 1002/10/20080200IN003000Y100290
14801341010033 1028/11/20080200IN002000Y100330
15800541010034 1030/09/20080200IN005800Y100340
16800541010036 1027/01/20090200IN00800Y100360
17801601010191 1027/05/20090200IN00100Y101910
18100011010191 2027/05/20090200IN001100Y101910
19800541010191 3008/07/20090200IN00500Y101910
Sheet1
Cell Formulas
RangeFormula
T2T2=INDEX(SORT(FILTER($B$1:$D$19,($A$1:$A$19=Q2)*($B$1:$B$19=$R$2)*($D$1:$D$19<S2)),3,-1),1,1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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