![]() |
Return 0 instead of N/A
I am using the formula: =VLOOKUP(P8,'ftg pivot table'!A2:B2847,2,FALSE)
I need this to return 0 rather than n/a when no exact match is found. |
Return 0 instead of N/A
Try the below which handle the error using ISNA()
=IF(ISNA(VLOOKUP(P8,'ftg pivot table'!A2:B2847,2,0)),0, VLOOKUP(P8,'ftg pivot table'!A2:B2847,2,0)) If this post helps click Yes --------------- Jacob Skaria "amc62" wrote: I am using the formula: =VLOOKUP(P8,'ftg pivot table'!A2:B2847,2,FALSE) I need this to return 0 rather than n/a when no exact match is found. |
Return 0 instead of N/A
Another possibility:
=IF(COUNTIF('ftg pivot table'!A2:A2847,P8),VLOOKUP(P8,'ftg pivot table'!A2:B2847,2,0),0) -- Biff Microsoft Excel MVP "amc62" wrote in message ... I am using the formula: =VLOOKUP(P8,'ftg pivot table'!A2:B2847,2,FALSE) I need this to return 0 rather than n/a when no exact match is found. |
All times are GMT +1. The time now is 08:59 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com