#1   Report Post  
Dominique Feteau
 
Posts: n/a
Default Vlookup Problem

Can someone tell me why this function isnt working??

=VLOOKUP(C37:D37,A2:O34,MATCH(C38,Months,0)+2,FALS E)

C37:D37 = 2 different text strings
C38 = Dec04
Months = Dec04 through Dec05

I want it to find C37:D37 in A2:O34 and match it with the value in Value in
C38 which can be found in the defined name Months.


  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
you can't use a range reference as first parameter of VLOOKUP this way.
Maybe you can try the following array formula (entered with
CTRL+SHIFT+ENTER):
=INDEX(A2:O34,MATCH(1,(C37=A2:A34)*(D37=B2:B34),0) ,MATCH(C38,Months,0)+2)

--
Regards
Frank Kabel
Frankfurt, Germany

Dominique Feteau wrote:
Can someone tell me why this function isnt working??

=VLOOKUP(C37:D37,A2:O34,MATCH(C38,Months,0)+2,FALS E)

C37:D37 = 2 different text strings
C38 = Dec04
Months = Dec04 through Dec05

I want it to find C37:D37 in A2:O34 and match it with the value in
Value in C38 which can be found in the defined name Months.



  #3   Report Post  
Myrna Larson
 
Posts: n/a
Default

The first argument to VLOOKUP must be a single target string.

Can both strings be present, or only just one? If the former, do you want to
add the results from looking up each of the strings?

On Sat, 18 Dec 2004 12:16:59 -0600, "Dominique Feteau"
wrote:

Can someone tell me why this function isnt working??

=VLOOKUP(C37:D37,A2:O34,MATCH(C38,Months,0)+2,FAL SE)

C37:D37 = 2 different text strings
C38 = Dec04
Months = Dec04 through Dec05

I want it to find C37:D37 in A2:O34 and match it with the value in Value in
C38 which can be found in the defined name Months.


  #4   Report Post  
Dominique Feteau
 
Posts: n/a
Default

Frank...ur awesome.

worked like a charm. thanks a ton

niq

"Frank Kabel" wrote in message
...
Hi
you can't use a range reference as first parameter of VLOOKUP this way.
Maybe you can try the following array formula (entered with
CTRL+SHIFT+ENTER):
=INDEX(A2:O34,MATCH(1,(C37=A2:A34)*(D37=B2:B34),0) ,MATCH(C38,Months,0)+2)

--
Regards
Frank Kabel
Frankfurt, Germany

Dominique Feteau wrote:
Can someone tell me why this function isnt working??

=VLOOKUP(C37:D37,A2:O34,MATCH(C38,Months,0)+2,FALS E)

C37:D37 = 2 different text strings
C38 = Dec04
Months = Dec04 through Dec05

I want it to find C37:D37 in A2:O34 and match it with the value in
Value in C38 which can be found in the defined name Months.





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
Problem with vlookup Jeff Excel Discussion (Misc queries) 2 November 26th 04 05:29 PM
Excel Problem: VLookup andyp161 Excel Worksheet Functions 1 November 18th 04 12:29 PM
Problem with LOOKUP & VLOOKUP ramsdesk Excel Worksheet Functions 1 November 17th 04 08:45 AM
Problem with LOOKUP & VLOOKUP ramsdesk Excel Worksheet Functions 0 November 17th 04 08:25 AM
Problem with LOOKUP & VLOOKUP ramsdesk Excel Worksheet Functions 1 November 17th 04 07:52 AM


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

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"