A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using Vlookup and IF statements to check for blank cells



 
 
Thread Tools Display Modes
  #1  
Old September 27th, 2008, 01:56 AM posted to microsoft.public.excel.worksheet.functions
Koomba
external usenet poster
 
Posts: 14
Default Using Vlookup and IF statements to check for blank cells

I neglected to include my formula in the 1st message. Sorry. Here it is:

=VLOOKUP(B4,'Price List'!$A$3:$B$13,2,FALSE)
--
Thanks from Salt Spring
  #2  
Old September 27th, 2008, 03:31 AM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Using Vlookup and IF statements to check for blank cells

=if(b4="","",VLOOKUP(B4,'Price List'!$A$3:$B$13,2,FALSE))


Koomba wrote:

I neglected to include my formula in the 1st message. Sorry. Here it is:

=VLOOKUP(B4,'Price List'!$A$3:$B$13,2,FALSE)
--
Thanks from Salt Spring


--

Dave Peterson
  #3  
Old September 27th, 2008, 03:56 AM posted to microsoft.public.excel.worksheet.functions
Koomba
external usenet poster
 
Posts: 14
Default Using Vlookup and IF statements to check for blank cells

Dave: that was SIMPLY great. Thanks
--
Thanks from Salt Spring


"Dave Peterson" wrote:

=if(b4="","",VLOOKUP(B4,'Price List'!$A$3:$B$13,2,FALSE))


Koomba wrote:

I neglected to include my formula in the 1st message. Sorry. Here it is:

=VLOOKUP(B4,'Price List'!$A$3:$B$13,2,FALSE)
--
Thanks from Salt Spring


--

Dave Peterson

  #4  
Old September 27th, 2008, 04:29 AM posted to microsoft.public.excel.worksheet.functions
ShaneDevenshire
external usenet poster
 
Posts: 2,232
Default Using Vlookup and IF statements to check for blank cells

Hi,

Since you didn't include the first message I'm not sure this will help:

=IF(B4,VLOOKUP(B4,'Price List'!$A$3:$B$13,2,0),"")

Note - if you name the range in the sheet called Price List, for example PL,
then your formula no longer needs a sheet reference, and since range names
are absolute by default you don't need the $ signs. So your formula can
simplify to:

=IF(B4,VLOOKUP(B4,PL,2,0),"")


--
Thanks,
Shane Devenshire


"Koomba" wrote:

I neglected to include my formula in the 1st message. Sorry. Here it is:

=VLOOKUP(B4,'Price List'!$A$3:$B$13,2,FALSE)
--
Thanks from Salt Spring

  #5  
Old September 27th, 2008, 03:54 PM posted to microsoft.public.excel.worksheet.functions
franciz
external usenet poster
 
Posts: 23
Default Using Vlookup and IF statements to check for blank cells

another basic alternative would be

=IF(ISNA(VLOOKUP(B4,'Price List'!$A$3:$B$13,2,FALSE)),"",VLOOKUP(B4,'Price
List'!$A$3:$B$13,2,FALSE))

you can have not found by replacing "" with "not found" in the formula.

regards,


"Koomba" wrote:

I neglected to include my formula in the 1st message. Sorry. Here it is:

=VLOOKUP(B4,'Price List'!$A$3:$B$13,2,FALSE)
--
Thanks from Salt Spring

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:25 AM.


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