how to disable #N/A

silverskye787

Board Regular
Joined
Jun 18, 2007
Messages
109
I have this following codes on cell G6

=VLOOKUP(G5,'P1'!K133:L135,2)

i want it to show an empty cell instead of #N/A if it returns 0 value...

need some urgent help here.. thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
here you go.. this will show a 0 in the cell instead of n/a

=if(iserror(VLOOKUP(G5,'P1'!K133:L135,2),0,VLOOKUP(G5,'P1'!K133:L135,2))
 
Upvote 0
if you want to show a blank cell use this

=if(iserror(VLOOKUP(G5,'P1'!K133:L135,2),"",VLOOKUP(G5,'P1'!K133:L135,2))
 
Upvote 0
=if(iserror(VLOOKUP(G5,'P1'!$K$133:$L$135,2,false),"",VLOOKUP(G5,'P1'!$K$133:$L$135,2,false)

try that
 
Upvote 0
=if(iserror(VLOOKUP(G5,'P1'!$K$133:$L$135,2,false),"",VLOOKUP(G5,'P1'!$K$133:$L$135,2,false))

try that
 
Upvote 0
I have this following codes on cell G6

=VLOOKUP(G5,'P1'!K133:L135,2)

i want it to show an empty cell instead of #N/A if it returns 0 value...

need some urgent help here.. thanks

Assuming that K133:L135 is sorted in ascending order on K...

=IF(VLOOKUP(G5,'P1'!$K$133:K$135,1,1)=0,"",VLOOKUP(G5,'P1'!K133:L135,2,1))
 
Upvote 0
=if(iserror(VLOOKUP(G5,'P1'!$K$133:$L$135,2,false)),"",VLOOKUP(G5,'P1'!$K$133:$L$135,2,false))

that should work
 
Upvote 0

Forum statistics

Threads
1,214,405
Messages
6,119,315
Members
448,886
Latest member
GBCTeacher

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top