Forum Discussion
Calculate date in a specific product list
Hi,
I would need to be able to calculate a shortage date/time. Attached document represents all assembly product starts in a factory. Based on what the user/vlookup will enter in G1-G4, I would like to return the product number in this list and the start position of the day .
As an example, the user enter a shortage: 111112
So with 7+5 positions ahead I would like this script to return:
Date: 6/10
Product: 111116
1:st product start of the day.
I guess that one solution could be a VBA that counts down the column only where format is "XXXXXX".
(And the layout of the excel product list can unfortunately not be changed/redesigned).
For that layout
it could be
Product:
=INDEX(FILTER(C:C, C:C <> ""),XMATCH($G$2, FILTER(C:C, C:C <> "") )+$G$3+$G$4)Date:
=INDEX(A:A, XMATCH(0, C1:INDEX(C:C, XMATCH( G7,C:C))+0,0,-1) )
7 Replies
- NikolinoDEPlatinum Contributor
Please describe in more detail what your plans are.
Welcome to your Excel discussion space!
Thank you for your understanding and patience
Nikolino
I know I don't know anything (Socrates)
- RobinJakobsson123Copper Contributor
NikolinoDE Hi,
G2 = 111112
This is the product I want to start the calculation from. Then calculate 7+5 (G3 + G4 number of steps) down the list and return the new product number, date and number of productstart of that day.
G columns are where the user will enter the data.
- SergeiBaklanDiamond Contributor
For that layout
it could be
Product:
=INDEX(FILTER(C:C, C:C <> ""),XMATCH($G$2, FILTER(C:C, C:C <> "") )+$G$3+$G$4)Date:
=INDEX(A:A, XMATCH(0, C1:INDEX(C:C, XMATCH( G7,C:C))+0,0,-1) )