Forum Discussion
chemguy120
Apr 14, 2024Copper Contributor
Find All Rows With Same Date And Input A Value In Another Cell
 So this one is a bit complicated (I think) and might need to be done through VBA. I need to do the following:     1. Find all of a earliest date in Column A  2. Enter the same number in Column B for ...
- Apr 14, 2024=LET(rng,A1:A5000, stacked,HSTACK(SORT(UNIQUE(rng)),SEQUENCE(COUNT(SORT(UNIQUE(rng))))), BYROW(rng,LAMBDA(r,XLOOKUP(r,CHOOSECOLS(stacked,1),CHOOSECOLS(stacked,2))))) Alternatively this formula returns the intended result in my Excel for the web sheet. 
OliverScheurich
Apr 14, 2024Gold Contributor
=LET(rng,A1:A5000,
stacked,HSTACK(SORT(UNIQUE(rng)),SEQUENCE(COUNT(SORT(UNIQUE(rng))))),
BYROW(rng,LAMBDA(r,XLOOKUP(r,CHOOSECOLS(stacked,1),CHOOSECOLS(stacked,2)))))
Alternatively this formula returns the intended result in my Excel for the web sheet.