Vlookup error

Nanogirl21

Active Member
Joined
Nov 19, 2013
Messages
331
Office Version
  1. 365
Platform
  1. Windows
I am using the below formula to populate a cell based on dates from a different worksheet. Everything is working properly, but I am getting error #N/A when the date is not available. How can I modify the formula to return a blank cell (no text) when an error #N/A is returned?

PHP:
=IF(ISERROR(VLOOKUP(F10,Dates!$A:$I,2,FALSE))," ",VLOOKUP(F10,Dates!$A:$I,2,FALSE))&CHAR(10)&VLOOKUP(F10,Dates!$A:$I,3,FALSE)&CHAR(10)&VLOOKUP(F10,Dates!$A:$I,7,FALSE)
 
Last edited:
Try something like this

=IF(ISNUMBER(MATCH(D5,Events!B:B,0)),"rest of the formula","")

M.

I tried this and it is saying that i eneted too many arugments for the function.


Since I could not get it to work. I decieved to just use conditional formatting to turn the cell that contains an error to white.
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Maybe this...

=IF(ISNUMBER(MATCH(D5,Events!B:B,0)),IF(VLOOKUP(D5,Events!B:Z,9,FALSE)="yes",VLOOKUP(D5,Events!$B:$Z,3,FALSE)&CHAR(10)&VLOOKUP(D5,Events!$B:$Z,2,FALSE)&CHAR(10)&VLOOKUP(D5,Events!$B:$Z,6,FALSE),""),"")

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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