#N/A problem

P

puiuluipui

hi, i have a small problem with this formula


=IF(VLOOKUP(IF(ISERROR(SEARCH("(",A2)),A2,TRIM(LEFT(A2,SEARCH("(",A2)-1))),PLANNING!A:B,2,FALSE)=TEXT(B2,"nnnn"),"YES","NO")

if i dont write anything, the formula show me #N/A.
i dont want formula to show me anything. not even zero. the cell with the
formula to be blank....until i write something in my table.
i mean the formula to work after i write something in my table

thanks in advance
 
C

cjbarron5

try =if(isna(vlookup...................as long as you dont exceed 6
arguments you should be fine
 
R

Roger Govier

Hi

One way
=IF(A2="","",
IF(COUNTA(Planning!A:B)<2,"",
IF(VLOOKUP(IF(ISERROR(SEARCH("(",A2)),A2,
TRIM(LEFT(A2,SEARCH("(",A2)-1))),
Planning!A:B,2,FALSE)=TEXT(B2,"nnnn"),"YES","NO")))

Formula deliberately broken at various points to avoid NG Reader making
breaks at inconvenient places.
It is all one line in reality.
 
B

Brad

Assuming that your equation works (except for the #na
=if(isna(IF(VLOOKUP(IF(ISERROR(SEARCH("(",A2)),A2,TRIM(LEFT(A2,SEARCH("(",A2)-1))),PLANNING!A:B,2,FALSE)=TEXT(B2,"nnnn"),"YES","NO"),"",VLOOKUP(IF(ISERROR(SEARCH("(",A2)),A2,TRIM(LEFT(A2,SEARCH("(",A2)-1))),PLANNING!A:B,2,FALSE)=TEXT(B2,"nnnn"),"YES","NO"))
 
P

puiuluipui

Roger, it' working, but can this formula to show me beside "yes" , "no" ,
another thing?
i mean when the formula cant find no data or anything written in
PLANNING!... to show me some kind of error? to show me "no planning" ...or
what i will write in the code...
thanks allot
"Roger Govier" a scris:
 
R

Roger Govier

Hi
=IF(A2="","",
IF(COUNTA(Planning!A:B)<2,"No Planning Data",
IF(VLOOKUP(IF(ISERROR(SEARCH("(",A2)),A2,
TRIM(LEFT(A2,SEARCH("(",A2)-1))),
Planning!A:B,2,FALSE)=TEXT(B2,"nnnn"),"YES","
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

#N/A 4
Return 0 instead of N/A 2
Problem with formulas 4
Vlookup Error #N/A 4
Multiple IF Need Help 4
Vlookup Encounters a call with no data and returns #N/A 11
I need a formula 2
VLOOKUP returning #N/A result 2

Top