chaitanyapatel88
New Member
- Joined
- Jul 27, 2020
- Messages
- 6
- Office Version
- 365
Hi,
I have a requirement where I need to check if value of a cell ex: E90 is available in another sheet, if available, fetch that value, and if not available, check for value of F90 in the other sheet. I am using the below formula but unable to evaluate result. If none of the values are available, update "ABC" Can you please help?
=IFERROR(IF(LEN(TRIM($E90)))<>0,INDEX('PFIC Report'!G:G,MATCH($E90,'PFIC Report'!C:C,0)),
IFERROR(IF(LEN(TRIM($F90)))<>0,INDEX('PFIC Report'!G:G,MATCH($F90,'PFIC Report'!D:D,0)),
IFERROR(IF(LEN(TRIM($H90)))<>0,INDEX('PFIC Report'!G:G,MATCH($H90,'PFIC Report'!E:E,0)),
IFERROR(IF(LEN(TRIM($J90)))<>0,INDEX('PFIC Report'!G:G,MATCH($J90,'PFIC Report'!F:F,0)),"ABC"))))
This requirement seems to be fine with IF condition, but it gives #N/A as result.
I have a requirement where I need to check if value of a cell ex: E90 is available in another sheet, if available, fetch that value, and if not available, check for value of F90 in the other sheet. I am using the below formula but unable to evaluate result. If none of the values are available, update "ABC" Can you please help?
=IFERROR(IF(LEN(TRIM($E90)))<>0,INDEX('PFIC Report'!G:G,MATCH($E90,'PFIC Report'!C:C,0)),
IFERROR(IF(LEN(TRIM($F90)))<>0,INDEX('PFIC Report'!G:G,MATCH($F90,'PFIC Report'!D:D,0)),
IFERROR(IF(LEN(TRIM($H90)))<>0,INDEX('PFIC Report'!G:G,MATCH($H90,'PFIC Report'!E:E,0)),
IFERROR(IF(LEN(TRIM($J90)))<>0,INDEX('PFIC Report'!G:G,MATCH($J90,'PFIC Report'!F:F,0)),"ABC"))))
This requirement seems to be fine with IF condition, but it gives #N/A as result.