Hi All,
I have an issue that I am unable to shake off. I require an array to give me the earliest maturity date based on two criteria. Going forward, I also want to be able to get 2nd earlist maturity and 3rd earliest maturity.
[TABLE="width: 339"]
<tbody>[TR]
[TD]Entity Name[/TD]
[TD]Pay or Receive[/TD]
[TD]Maturity date[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]RECEIVE[/TD]
[TD]6/11/2017[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]RECEIVE[/TD]
[TD]27/11/2017[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]RECEIVE[/TD]
[TD]27/12/2017[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]RECEIVE[/TD]
[TD]16/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
I've played with a few prototypes below:
[TABLE="width: 626"]
<tbody>[TR]
[TD][TABLE="width: 738"]
<tbody>[TR]
[TD]Value[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]6/11/2017[/TD]
[TD]+SMALL($H$114:$H$118,1)[/TD]
[/TR]
[TR]
[TD]6/11/2017[/TD]
[TD]{=SMALL(IF(G114:G118="RECEIVE",H114:H118,"OOOO"),1)}[/TD]
[/TR]
[TR]
[TD]6/11/2017[/TD]
[TD]{=SMALL(IF(F114:F118="APPLE",H114:H118,"OOOO"),1)}[/TD]
[/TR]
[TR]
[TD]#VALUE![/TD]
[TD]{=SMALL(IF(AND(G114:G118="RECEIVE",F114:F118="APPLE"),H114:H118,"OOOO"),1)}[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
If I use one cirteria only, it works fine. I need to have two criterias as my bigger file have multiple columns, and the last value/formula is where I am stuck.
Also, though the current formula says 114-118 (which includes blanks); my bigger files will be formulae changed to columns eg G114:G118 will become G:G and this will obviously have blanks .
Any help/advise on this will be appreciated.
Thank you
AQ
I have an issue that I am unable to shake off. I require an array to give me the earliest maturity date based on two criteria. Going forward, I also want to be able to get 2nd earlist maturity and 3rd earliest maturity.
[TABLE="width: 339"]
<tbody>[TR]
[TD]Entity Name[/TD]
[TD]Pay or Receive[/TD]
[TD]Maturity date[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]RECEIVE[/TD]
[TD]6/11/2017[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]RECEIVE[/TD]
[TD]27/11/2017[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]RECEIVE[/TD]
[TD]27/12/2017[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]RECEIVE[/TD]
[TD]16/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
I've played with a few prototypes below:
[TABLE="width: 626"]
<tbody>[TR]
[TD][TABLE="width: 738"]
<tbody>[TR]
[TD]Value[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]6/11/2017[/TD]
[TD]+SMALL($H$114:$H$118,1)[/TD]
[/TR]
[TR]
[TD]6/11/2017[/TD]
[TD]{=SMALL(IF(G114:G118="RECEIVE",H114:H118,"OOOO"),1)}[/TD]
[/TR]
[TR]
[TD]6/11/2017[/TD]
[TD]{=SMALL(IF(F114:F118="APPLE",H114:H118,"OOOO"),1)}[/TD]
[/TR]
[TR]
[TD]#VALUE![/TD]
[TD]{=SMALL(IF(AND(G114:G118="RECEIVE",F114:F118="APPLE"),H114:H118,"OOOO"),1)}[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
If I use one cirteria only, it works fine. I need to have two criterias as my bigger file have multiple columns, and the last value/formula is where I am stuck.
Also, though the current formula says 114-118 (which includes blanks); my bigger files will be formulae changed to columns eg G114:G118 will become G:G and this will obviously have blanks .
Any help/advise on this will be appreciated.
Thank you
AQ