Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default is blank AND is error

This is my formula

'=IF(ISBLANK(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)),"",(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)))

I am getting #NA when there is not a match so need to have a combo of
isblank and iserror... is this possible?

thanks in advance! jane
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default is blank AND is error

Try this:

=IF(COUNTIF('Past RDW'!$L$3:$L$780,$L11)=0,"",
IF(VLOOKUP($L11,'Past RDW'!$L$3:$AI$780,16,0)="","",
VLOOKUP($L11,'Past RDW'!$L$3:$AI$780,16,0)))

--
Biff
Microsoft Excel MVP


"jane" wrote in message
...
This is my formula

'=IF(ISBLANK(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)),"",(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)))

I am getting #NA when there is not a match so need to have a combo of
isblank and iserror... is this possible?

thanks in advance! jane



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default is blank AND is error

Hi Jane,
sorry, I can't help but I'm wondering the same problem.

A B C D E F
date km litre *l/100km litre2 **l/100km

Only problem I have is that column E might have various amount (1-9) blank
cells and total usage must be counted from previus km that e-column has
number.

Let's hope someone has solution in this problem :)

"jane" kirjoitti:

This is my formula

'=IF(ISBLANK(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)),"",(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)))

I am getting #NA when there is not a match so need to have a combo of
isblank and iserror... is this possible?

thanks in advance! jane

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default is blank AND is error

Hi there,
I get all blanks now.

TO add (if this helps), I am trying to retrieve text although not sure if it
is formatted as text ...

"T. Valko" wrote:

Try this:

=IF(COUNTIF('Past RDW'!$L$3:$L$780,$L11)=0,"",
IF(VLOOKUP($L11,'Past RDW'!$L$3:$AI$780,16,0)="","",
VLOOKUP($L11,'Past RDW'!$L$3:$AI$780,16,0)))

--
Biff
Microsoft Excel MVP


"jane" wrote in message
...
This is my formula

'=IF(ISBLANK(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)),"",(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)))

I am getting #NA when there is not a match so need to have a combo of
isblank and iserror... is this possible?

thanks in advance! jane




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default is blank AND is error

Maybe...
=if(isna(vlookup(...)),"",if(vlookup(...)="","",vl ookup(...)))

You could even make it a little more informative:
=if(isna(vlookup(...)),"No match",if(vlookup(...)="","",vlookup(...)))

And if you really wanted to return "" if either there was no match or the cell
was empty:

=if(iserror(1/len(vlookup(...)),"",vlookup(...))



jane wrote:

This is my formula

'=IF(ISBLANK(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)),"",(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)))

I am getting #NA when there is not a match so need to have a combo of
isblank and iserror... is this possible?

thanks in advance! jane


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default is blank AND is error

Hmmm...

That should work.

Try this:

=IF(ISNA(MATCH($L11,'Past RDW'!$L$3:$L$780,0)),"",IF(VLOOKUP($L11,'Past
RDW'!$L$3:$AI$780,16,0)="","",VLOOKUP($L11,'Past RDW'!$L$3:$AI$780,16,0)))

--
Biff
Microsoft Excel MVP


"jane" wrote in message
...
Hi there,
I get all blanks now.

TO add (if this helps), I am trying to retrieve text although not sure if
it
is formatted as text ...

"T. Valko" wrote:

Try this:

=IF(COUNTIF('Past RDW'!$L$3:$L$780,$L11)=0,"",
IF(VLOOKUP($L11,'Past RDW'!$L$3:$AI$780,16,0)="","",
VLOOKUP($L11,'Past RDW'!$L$3:$AI$780,16,0)))

--
Biff
Microsoft Excel MVP


"jane" wrote in message
...
This is my formula

'=IF(ISBLANK(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)),"",(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)))

I am getting #NA when there is not a match so need to have a combo of
isblank and iserror... is this possible?

thanks in advance! jane






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default is blank AND is error

That did it! thanks!

(ps... I changed the ISNA to ISERROR to take care on a DIVO that showed up)

take care, Jane

"Dave Peterson" wrote:

Maybe...
=if(isna(vlookup(...)),"",if(vlookup(...)="","",vl ookup(...)))

You could even make it a little more informative:
=if(isna(vlookup(...)),"No match",if(vlookup(...)="","",vlookup(...)))

And if you really wanted to return "" if either there was no match or the cell
was empty:

=if(iserror(1/len(vlookup(...)),"",vlookup(...))



jane wrote:

This is my formula

'=IF(ISBLANK(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)),"",(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)))

I am getting #NA when there is not a match so need to have a combo of
isblank and iserror... is this possible?

thanks in advance! jane


--

Dave Peterson

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default is blank AND is error

It sounds like the cell's value that you were returning really had that divide
by 0 error.

jane wrote:

That did it! thanks!

(ps... I changed the ISNA to ISERROR to take care on a DIVO that showed up)

take care, Jane

"Dave Peterson" wrote:

Maybe...
=if(isna(vlookup(...)),"",if(vlookup(...)="","",vl ookup(...)))

You could even make it a little more informative:
=if(isna(vlookup(...)),"No match",if(vlookup(...)="","",vlookup(...)))

And if you really wanted to return "" if either there was no match or the cell
was empty:

=if(iserror(1/len(vlookup(...)),"",vlookup(...))



jane wrote:

This is my formula

'=IF(ISBLANK(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)),"",(VLOOKUP($L11,'Past RDW
'!$L$3:$AI$780,16,FALSE)))

I am getting #NA when there is not a match so need to have a combo of
isblank and iserror... is this possible?

thanks in advance! jane


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
replace error with blank chegel Excel Worksheet Functions 7 November 24th 07 06:20 AM
blank error Jeze77 Excel Worksheet Functions 0 September 5th 07 04:34 PM
error when blank - please help Jeze77 Excel Discussion (Misc queries) 0 September 4th 07 03:12 PM
#DIV/0! Error - Need to display 0 or blank Brooks W. Excel Worksheet Functions 5 February 14th 07 03:36 PM
Leave Cell Blank if value is an error, below 0 or above 80 SteveC Excel Discussion (Misc queries) 4 May 12th 06 02:24 PM


All times are GMT +1. The time now is 08:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"