Posted 23 October 2024, 12:09 pm EST
Hi,
The HasFormula property of the IRange interface returns true only if the formula is present in the cell range i.e. it will return true for cell B2 but not for B3 as the value in cell B3 is the result of SPILL in cell B2.
Similarly, the HasArray property returns true if the cell range is a part of the Array Formula not of the Dynamic Array Formula
We also tried to locate all the formulas present in the sheet using MsExcel and it also returns only the first occurrence of the dynamic array formula present in cell B2 and another formula present in cell E2. Please refer to the attached screenshot - MsExcelBehavior.zip
However, the behavior you mentioned seems like a valid request as the cell is also able to fetch the Value as per the dynamic array formula. We have shared this as an enhancement request to the development team and will let you know the updates soon.
[Internal Tracking ID: DOCXLS-11391]
Best Regards,
Kartik