Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default VLOOKUP with a blank cell

I am trying to do a vlookup that looks for the value in the cells in column A
in my table. However, some of the cells in column A are blank. My lookup
table has a blank in the first column and a code value to be returned in the
4th column. When I try to do the lookup and it encounters a blank cell, I get
a #N/A result instead of the code.
Here is the formula I have now.
=VLOOKUP(A13,$F$3:$I$13,4,FALSE)

Or should I use this as an alternate formula:

=IF(A13='"","L",VLOOKUP(A13,$F$3:$I$13,4,FALSE))

The formula above works, but I would like to use just a vlookup.

Any way around this or should I just use the 2nd formula?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default VLOOKUP with a blank cell

I asked a similar question:

http://groups.google.com/group/micro...1?q=gsnu2007xx


--
Gary''s Student - gsnu200817


"Iriemon" wrote:

I am trying to do a vlookup that looks for the value in the cells in column A
in my table. However, some of the cells in column A are blank. My lookup
table has a blank in the first column and a code value to be returned in the
4th column. When I try to do the lookup and it encounters a blank cell, I get
a #N/A result instead of the code.
Here is the formula I have now.
=VLOOKUP(A13,$F$3:$I$13,4,FALSE)

Or should I use this as an alternate formula:

=IF(A13='"","L",VLOOKUP(A13,$F$3:$I$13,4,FALSE))

The formula above works, but I would like to use just a vlookup.

Any way around this or should I just use the 2nd formula?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default VLOOKUP with a blank cell

One way perhaps...

=if(iserror(vlookup(A13,$F$3:$I$13,4,FALSE)),"",vl ookup(A13,$F$3:$I$13,4,FALSE))

"Iriemon" wrote:

I am trying to do a vlookup that looks for the value in the cells in column A
in my table. However, some of the cells in column A are blank. My lookup
table has a blank in the first column and a code value to be returned in the
4th column. When I try to do the lookup and it encounters a blank cell, I get
a #N/A result instead of the code.
Here is the formula I have now.
=VLOOKUP(A13,$F$3:$I$13,4,FALSE)

Or should I use this as an alternate formula:

=IF(A13='"","L",VLOOKUP(A13,$F$3:$I$13,4,FALSE))

The formula above works, but I would like to use just a vlookup.

Any way around this or should I just use the 2nd formula?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default VLOOKUP with a blank cell

I think you are stuck with the IF
But how about
=IF(A13='"",I3,VLOOKUP(A13,$F$3:$I$13,4,FALSE))
so that you can change the table without worrying about the IF formula?
(I think I3 is the correct reference - check it!)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Iriemon" wrote in message
...
I am trying to do a vlookup that looks for the value in the cells in column
A
in my table. However, some of the cells in column A are blank. My lookup
table has a blank in the first column and a code value to be returned in
the
4th column. When I try to do the lookup and it encounters a blank cell, I
get
a #N/A result instead of the code.
Here is the formula I have now.
=VLOOKUP(A13,$F$3:$I$13,4,FALSE)

Or should I use this as an alternate formula:

=IF(A13='"","L",VLOOKUP(A13,$F$3:$I$13,4,FALSE))

The formula above works, but I would like to use just a vlookup.

Any way around this or should I just use the 2nd formula?

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default VLOOKUP with a blank cell

Iriemon,
Try the following:
=IF(ISERROR(VLOOKUP(A13,$F$3:$I$13,4,FALSE)),"",VL OOKUP(A13,$F$3:$I$13,4,FALSE))
OR
=IF(ISNA(VLOOKUP(A13,$F$3:$I$13,4,FALSE)),"",VLOOK UP(A13,$F$3:$I$13,4,FALSE))

<<Should be all one line:Watch for Word Wrap in News Reader

--
Add MS to your News Reader: news://msnews.microsoft.com
Rich/rerat
(RRR News) <message rule
<<Previous Text Snipped to Save Bandwidth When Appropriate


"Iriemon" wrote in message
...
I am trying to do a vlookup that looks for the value in the cells in column A
in my table. However, some of the cells in column A are blank. My lookup
table has a blank in the first column and a code value to be returned in the
4th column. When I try to do the lookup and it encounters a blank cell, I get
a #N/A result instead of the code.
Here is the formula I have now.
=VLOOKUP(A13,$F$3:$I$13,4,FALSE)

Or should I use this as an alternate formula:

=IF(A13='"","L",VLOOKUP(A13,$F$3:$I$13,4,FALSE))

The formula above works, but I would like to use just a vlookup.

Any way around this or should I just use the 2nd formula?

Thanks




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default VLOOKUP with a blank cell

Thanks Bernard! I like the change you suggested too, makes it easy to change
values without changing the formula.

J

"Bernard Liengme" wrote:

I think you are stuck with the IF
But how about
=IF(A13='"",I3,VLOOKUP(A13,$F$3:$I$13,4,FALSE))
so that you can change the table without worrying about the IF formula?
(I think I3 is the correct reference - check it!)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Iriemon" wrote in message
...
I am trying to do a vlookup that looks for the value in the cells in column
A
in my table. However, some of the cells in column A are blank. My lookup
table has a blank in the first column and a code value to be returned in
the
4th column. When I try to do the lookup and it encounters a blank cell, I
get
a #N/A result instead of the code.
Here is the formula I have now.
=VLOOKUP(A13,$F$3:$I$13,4,FALSE)

Or should I use this as an alternate formula:

=IF(A13='"","L",VLOOKUP(A13,$F$3:$I$13,4,FALSE))

The formula above works, but I would like to use just a vlookup.

Any way around this or should I just use the 2nd formula?

Thanks





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 returns 0 (zero) when lookup cell is blank Maki Excel Discussion (Misc queries) 5 October 11th 08 07:22 AM
Vlookup information from blank cell Doug Excel Worksheet Functions 5 January 29th 07 04:21 PM
Vlookup return 0 when cell is blank Paul Excel Worksheet Functions 2 January 11th 06 05:01 PM
VLOOKUP if a Cell is not Blank carl Excel Worksheet Functions 2 February 3rd 05 08:09 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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

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"