我想在单元格h2中创建以下公式字符串,但无法使其工作。
任何帮助都将不胜感激。
=+IF(LEFT(c7,4)="1350",+blp(c7 & " GOVT","px_bid"),IF(ISNUMBER(P7),+BDP(c7 & " GOVT","YAS_BOND_PX","YAS_BOND_YLD",T7),+blp(c7 & " GOVT","px_bid")))
这就是我所做的:
Sheets("hi").Cells(2, 8).Value="=IF(LEFT(" & Cells(7, 3).Value & ",4)=""1350"",blp(" & Sheets("hi").Cells(7, 3).Address(False, False) & "& ""GOVT"", ""px_bid""),IF(ISNUMBER(" & Sheets("hi").Cells(7, 16).Value & "),bdp(" & Sheets("hi").Cells(7, 3).Address(False, False) & "& ""GOVT"", ""YAS_BOND_PX"",""YAS_BOND_YLD""," & Sheets("hi").Cells(7, 20).Address(False, False) & "),blp(" & Sheets("hi").Cells(7, 3).Address(False, False) & "& ""GOVT"",""px_bid"")))"