#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If and Vlookup

I am trying to get a vllook up to be conditional if a certain criteria is
met. I have tried =IF('Raw Data'!B$2=AB,(VLOOKUP($A4,'Raw
Data'!$A:$A,7,FALSE),0)

Raw Data is the sheet that I need information from. I need the formula to
look in colum b and determine if the value is AB or CF. If it matches AB I
need it to do a vlookup based on the customer number in column A of that row
and return the value in colum 7 . I need to be able to drag this formula
vertically and horizontally. Please help. Thanks
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default If and Vlookup

Good catch, Howard. So the formula would look like
=IF('Raw Data'!B$2="AB",VLOOKUP($A4,'Raw Data'!$A:$G,7,FALSE),0)

Regards,
Fred



"L. Howard Kittle" wrote in message
...
To add to Fred's suggestion...

You want the return to be from the 7th column of the lookup_table but you
only reference A:A as the table. Perhaps A100:G100 as an example would
work.

HTH
Regards,
Howard

"Confused in AZ" <Confused in wrote in
message ...
I am trying to get a vllook up to be conditional if a certain criteria is
met. I have tried =IF('Raw Data'!B$2=AB,(VLOOKUP($A4,'Raw
Data'!$A:$A,7,FALSE),0)

Raw Data is the sheet that I need information from. I need the formula
to
look in colum b and determine if the value is AB or CF. If it matches AB
I
need it to do a vlookup based on the customer number in column A of that
row
and return the value in colum 7 . I need to be able to drag this formula
vertically and horizontally. Please help. 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
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 08:58 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"