#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default IF and Vlookup

How do I lookup the value in column B for all (03), then lookup the value in
column C (i.e. 30), then return the value in column D.

For example here is what I want to examine:

in another worksheet, If cell B4, then look at value in C10,
then lookup the value in C10 in table_array C:D
and return the value in the second column an exact match

B C D
SITE# SACS FUND# FUND#
03 30 400
02 53 402
03 56 403
02 51 430
08 51 433

The column that is in ascending order is D. Please help.

Here is what I came up with but its returned a #VALUE
=IF(B4,IF(C10,(VLOOKUP(C10,Reference!$C:$D,2,FALSE ))))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default IF and Vlookup

On Mon, 8 Sep 2008 10:52:02 -0700, Olivia
wrote:

How do I lookup the value in column B for all (03), then lookup the value in
column C (i.e. 30), then return the value in column D.

For example here is what I want to examine:

in another worksheet, If cell B4, then look at value in C10,
then lookup the value in C10 in table_array C:D
and return the value in the second column an exact match

B C D
SITE# SACS FUND# FUND#
03 30 400
02 53 402
03 56 403
02 51 430
08 51 433

The column that is in ascending order is D. Please help.

Here is what I came up with but its returned a #VALUE
=IF(B4,IF(C10,(VLOOKUP(C10,Reference!$C:$D,2,FALS E))))



Try this formula:

=SUMPRODUCT((B2:B100="03")*(C2:C100="30"),D2:D100)

If the data in column B and C is not text, remove the " "

Hope this helps / Lars-Åke

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 in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 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 09:56 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"