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...
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.
Lorenzo
Nov 02, 2024Silver Contributor
What 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 ) )- jomymathewNov 02, 2024Copper ContributorCan we get a result with regular formula instead of converting into tables as I need to incorporate this slice with another part of formula.