Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
LPS
 
Posts: n/a
Default Formatting the Results of VLOOKUP

When I use the VLOOKUP function with a Range_Lookup of False, if the function
cannot find an exact match, it returns the result: #N/A, which is correct.
What I would like to know is, can I format that cell so that if the result is
#N/A, then the cell displays as blank or empty? I know I can format a 0
(zero) value to display an empty cell but can I format a text one like that,
as well?

Thank you.
--
LPS
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

You can use COUNTIF to see if the value exists. If so,
use VLOOKUP. For example:

=IF(COUNTIF(A:A,F1),VLOOKUP(F1,A:C,3,0),"")

HTH
Jason
Atlanta, GA

-----Original Message-----
When I use the VLOOKUP function with a Range_Lookup of

False, if the function
cannot find an exact match, it returns the result:

#N/A, which is correct.
What I would like to know is, can I format that cell so

that if the result is
#N/A, then the cell displays as blank or empty? I know

I can format a 0
(zero) value to display an empty cell but can I format a

text one like that,
as well?

Thank you.
--
LPS
.

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
VLOOKUP not returning results Chris Kellock Excel Worksheet Functions 14 March 19th 08 08:30 AM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup #N/A error due to formatting Patrick_KC Excel Worksheet Functions 4 December 21st 04 07:39 PM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 4 November 18th 04 03:24 PM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 0 November 18th 04 03:13 PM


All times are GMT +1. The time now is 10:03 PM.

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"