ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Returning #N/A (https://www.excelbanter.com/excel-discussion-misc-queries/127473-returning-n.html)

Rao Ratan Singh

Returning #N/A
 
Hi
I m using this function =IF(VLOOKUP($B4,Inventory_List,8,0)<0,"INVALID
SALE",VLOOKUP($B4,Inventory_List,8,0)) but when B4 is blank it return #N/A. I
want this should return blank when b4 is blank.

How to change this function.=IF(VLOOKUP($B4,Inventory_List,8,0)<0,"IN VALID
SALE",VLOOKUP($B4,Inventory_List,8,0))

Ashkan

Returning #N/A
 
=IF(OR(ISBLANK($B4),VLOOKUP($B4,Inventory_List,8,0 )<0),"INVALID
SALE",VLOOKUP($B4,Inventory_List,8,0))

"Rao Ratan Singh" wrote:

Hi
I m using this function =IF(VLOOKUP($B4,Inventory_List,8,0)<0,"INVALID
SALE",VLOOKUP($B4,Inventory_List,8,0)) but when B4 is blank it return #N/A. I
want this should return blank when b4 is blank.

How to change this function.=IF(VLOOKUP($B4,Inventory_List,8,0)<0,"IN VALID
SALE",VLOOKUP($B4,Inventory_List,8,0))


Ashkan

Returning #N/A
 
=IF(ISBLANK($B4),"",IF(VLOOKUP($B4,Inventory_List, 8,0)<0,"INVALID
SALE",VLOOKUP($B4,Inventory_List,8,0)))

"Rao Ratan Singh" wrote:

Hi
I m using this function =IF(VLOOKUP($B4,Inventory_List,8,0)<0,"INVALID
SALE",VLOOKUP($B4,Inventory_List,8,0)) but when B4 is blank it return #N/A. I
want this should return blank when b4 is blank.

How to change this function.=IF(VLOOKUP($B4,Inventory_List,8,0)<0,"IN VALID
SALE",VLOOKUP($B4,Inventory_List,8,0))


JLatham

Returning #N/A
 
Change your formula to

=IF(ISNA(VLOOKUP($B4,Inventory_List,8,0)),"",IF(VL OOKUP($B4,Inventory_List,8,0)<0,"INVALID SALE",VLOOKUP($B4,Inventory_List,8,0)))


"Rao Ratan Singh" wrote:

Hi
I m using this function =IF(VLOOKUP($B4,Inventory_List,8,0)<0,"INVALID
SALE",VLOOKUP($B4,Inventory_List,8,0)) but when B4 is blank it return #N/A. I
want this should return blank when b4 is blank.

How to change this function.=IF(VLOOKUP($B4,Inventory_List,8,0)<0,"IN VALID
SALE",VLOOKUP($B4,Inventory_List,8,0))


Rao Ratan Singh

Returning #N/A
 
Thank you sir


Rao Ratan Singh

Returning #N/A
 
Thank you sir


All times are GMT +1. The time now is 09:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com