Forum Discussion
jomymathew
Nov 02, 2024Copper Contributor
Return Matching Data from Most Recent Date based on condition
I am looking to return the result as Open or Close against the most recent date for each customer code. I have tried several formulas and combination of formulas. Below is the data I'm working wi...
Lorenzo
Nov 02, 2024Silver Contributor
jomymathew
Nov 02, 2024Copper Contributor
I'm unable to use HSTACK in my version. Is there any alternate option you can help with. Thanks in advance.
- LorenzoNov 02, 2024Silver ContributorWhat version of Excel do you run?
- jomymathewNov 02, 2024Copper ContributorOffice 365 ProPlus
- LorenzoNov 02, 2024Silver Contributor
With 365 you should have HSTACK. The following does it instead:
=IF( {1,2,3,4} <= 3, Table, INDEX( IF( Table[Date] < MAX( Table[Date] ), "Close", "Open" ), SEQUENCE( ROWS( Table ) ), 1 ) )