Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve
 
Posts: n/a
Default Combining functions

Hi I would really appreciate some help with this problem. I have a table of
data that I am using a lookup on, so that I can preset formulae I am also
using the isblank function to hide the error message when there is no lookup
value entered. What I'm trying to add to this is something whereby if a
lookup value that isn't in the table is entered, a blank will be displayed.
What I have so far is this

=IF(ISBLANK(B2),"",VLOOKUP(B2,Books,2,FALSE))

which enters a blank if cell b2 is empty, or the data from the table if
there is a match, what I want is something to catch when there is no match
and enter a blank then.

Any help will be greatly appreciated

Thanks
Steve
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Combining functions

Hi

The usual way is to enclose your VLOOKUP in an ISERROR formula.
=IF(ISBLANK(B2),"",IF(ISERROR(VLOOKUP(B2,Books,2,F ALSE)),"",VLOOKUP(B2,Books,2,FALSE))
I haven't tested it, but you get the idea?

Andy.

"Steve" wrote in message
...
Hi I would really appreciate some help with this problem. I have a table
of
data that I am using a lookup on, so that I can preset formulae I am also
using the isblank function to hide the error message when there is no
lookup
value entered. What I'm trying to add to this is something whereby if a
lookup value that isn't in the table is entered, a blank will be
displayed.
What I have so far is this

=IF(ISBLANK(B2),"",VLOOKUP(B2,Books,2,FALSE))

which enters a blank if cell b2 is empty, or the data from the table if
there is a match, what I want is something to catch when there is no match
and enter a blank then.

Any help will be greatly appreciated

Thanks
Steve



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Combining functions

This should deal with blanks and errors

=if(isna(VLOOKUP(B2,Books,2,FALSE)),"",VLOOKUP(B2, Books,2,FALSE))


"Steve" wrote:

Hi I would really appreciate some help with this problem. I have a table of
data that I am using a lookup on, so that I can preset formulae I am also
using the isblank function to hide the error message when there is no lookup
value entered. What I'm trying to add to this is something whereby if a
lookup value that isn't in the table is entered, a blank will be displayed.
What I have so far is this

=IF(ISBLANK(B2),"",VLOOKUP(B2,Books,2,FALSE))

which enters a blank if cell b2 is empty, or the data from the table if
there is a match, what I want is something to catch when there is no match
and enter a blank then.

Any help will be greatly appreciated

Thanks
Steve

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
Combining IF AND & FIND Functions Steve Excel Worksheet Functions 3 March 30th 06 03:10 PM
combining conditional formatting and functions zvi Excel Worksheet Functions 2 December 9th 05 12:37 PM
Combining SUMPRODUCT and RANK functions MikeM Excel Worksheet Functions 0 November 14th 05 02:09 PM
Combining two Functions Headache Grant Reid Excel Worksheet Functions 4 May 11th 05 01:38 PM
Combining SUMIF and SUBTOTAL functions [email protected] Excel Worksheet Functions 1 April 22nd 05 06:14 AM


All times are GMT +1. The time now is 07:24 AM.

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

About Us

"It's about Microsoft Excel"