Forum Discussion
Calculate date in a specific product list
- Sep 30, 2021
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) )
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)
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.
- SergeiBaklanSep 30, 2021Diamond 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) )
- RobinJakobsson123Sep 30, 2021Copper Contributor
Wonderful, that works. Just had to change all the ',' to ';'
The list is in another excel sheet. How do I change the path from C:C to Sheet1!C:C ?
- SergeiBaklanSep 30, 2021Diamond Contributor
Exactly as you said
=INDEX( FILTER( Sheet1!C:C, Sheet1!C:C <> ""), XMATCH( $G$2, FILTER(Sheet1!C:C, Sheet1!C:C <> "") ) + $G$3+$G$4 )
and
=INDEX( Sheet1!A:A, XMATCH( 0, Sheet1!C1:INDEX( Sheet1!C:C, XMATCH( G7, Sheet1!C:C))+0, 0, -1) )
Please check in second sheet attached.
The only I'd do not use entire columns in formulas - better named ranges, dynamic ranges or simple range with some gap for future expansion.