VLOOKUP's with blank cells

dgavin

Active Member
Joined
Feb 16, 2005
Messages
302
I have a problem with this formula

VLOOKUP(A7,MyBets!$B$2:$F$500,4,0)="U"

when the result in A7 cannot be found in MyBets!$B$2:$F$500 i get N/A

is there a way to just give "blank" unless the A7 result is found ?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
The full formula is

IF(A5="","",IF(AND(F5<=1.5,VLOOKUP(A5,MyBets!$B$2:$F$500,4,0)="U",$L$2<0,$S$1<0),Controls!$B$6,""))))

so do i change it to

IF(A5="","",IF(AND(F5<=1.5,ISNA(VLOOKUP(A5,MyBets!$B$2:$F$500,4,0),"","U",$L$2<0,$S$1<0),Controls!$B$6,""))))

thanks
 
Upvote 0
I have a problem with this formula

VLOOKUP(A7,MyBets!$B$2:$F$500,4,0)="U"

when the result in A7 cannot be found in MyBets!$B$2:$F$500 i get N/A

is there a way to just give "blank" unless the A7 result is found ?
If you're using Excel 2007 or later...

=IFERROR(VLOOKUP(A7,MyBets!$B$2:$F$500,4,0),"")

Note that this will trap ALL errors, not just the #N/A error.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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