Feb 04 2020 09:46 AM
'=IF($AB$4='8B-Saginaw'!$C$9,VLOOKUP('Adjusted Inventory Summary'!F7,'8B-Saginaw'!$A:$F,6,0)). I need to return a zero or blank.
Feb 04 2020 09:57 AM
Hello @Pamr0703,
Return 0 if false:
=IF($AB$4='8B-Saginaw'!$C$9,VLOOKUP('Adjusted Inventory Summary'!F7,'8B-Saginaw'!$A:$F,6,0),0)
Return blank if false:
=IF($AB$4='8B-Saginaw'!$C$9,VLOOKUP('Adjusted Inventory Summary'!F7,'8B-Saginaw'!$A:$F,6,0),"")
Feb 04 2020 09:59 AM
Feb 04 2020 10:02 AM
The #N/A error suggests that the lookup_value is not located in the table_array. However, without a sample file, it would be impossible to confirm this suspicion.
Feb 04 2020 10:04 AM
Feb 04 2020 10:33 AM
Feb 04 2020 10:36 AM
Feb 04 2020 11:15 AM
As suspected, the Stock Code "10CW" does not exist in the range "'8B-Saginaw'!$A:$F". Hence why an error of #N/A is returned.
Feb 04 2020 11:18 AM
Feb 04 2020 11:20 AM
That could be:
=IFERROR(IF($AB$4='8B-Saginaw'!$C$9,VLOOKUP('Adjusted Inventory Summary'!F7,'8B-Saginaw'!$A:$F,6,0),""),"")
Feb 04 2020 11:21 AM
Feb 04 2020 11:25 AM
Feb 04 2020 11:26 AM
Feb 04 2020 11:26 AM
Feb 04 2020 11:35 AM
Very welcome - If you do decide to use the IFERROR option, you can find a nice little macro at the below link, which will let you select the whole range of formulae and wrap them all in one go (you will need to delete the n/a in the code though, to return a blank cell)
https://excelhelphq.com/how-to-apply-iferror-on-many-cells-automatically-using-excel-vba-macro/