PreacherUK
Technical User
Hi all,
I have the following code in a series of cells
=INDEX(NewPrices!B:B,MATCH($A4,NewPrices!$A:$A,0))
This is looking up a value in a sheet based on an identifier. If the identifier is not in the 'look up' list it is returning a value of #N/A (quite correctly). Is there an accepted/preferred way of handling this error message? something along the lines of:
if(INDEX(NewPrices!B:B,MATCH($A4,NewPrices!$A:$A,0))=#N/A) then make cell =0
I'm sure there is, I'm just not familiar enough with the odd syntax
Any help would be greatly appreciated and richly rewarded in gold stars
I have the following code in a series of cells
=INDEX(NewPrices!B:B,MATCH($A4,NewPrices!$A:$A,0))
This is looking up a value in a sheet based on an identifier. If the identifier is not in the 'look up' list it is returning a value of #N/A (quite correctly). Is there an accepted/preferred way of handling this error message? something along the lines of:
if(INDEX(NewPrices!B:B,MATCH($A4,NewPrices!$A:$A,0))=#N/A) then make cell =0
I'm sure there is, I'm just not familiar enough with the odd syntax
Any help would be greatly appreciated and richly rewarded in gold stars