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  

lookup second / last match with two conditions



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 09:39 AM posted to microsoft.public.excel.worksheet.functions
Billy Leung[_2_]
external usenet poster
 
Posts: 6
Default lookup second / last match with two conditions

Hello,

I've a table below, I want to setup an formula to get the result as shown at
the bottom. Thanks in advance for your help.

Column B C D
Row 1st criteria 2nd criteria lookup value
3 A X 1
4 B Y 2
5 C Y 3
6 A Y 4
7 B X 5
8 C Y 6
9 D X 7
10 A Y 8
11 B Y 9
12 C X 10

query 1 query 2
criteria 1 A C
criteria 2 Y Y
nth of match 2 last
Result 8 9


  #2  
Old March 18th, 2010, 12:38 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default lookup second / last match with two conditions

Please clarify:

Why do you want 9 for query 2 rather than 6??
--
Gary''s Student - gsnu201001


"Billy Leung" wrote:

Hello,

I've a table below, I want to setup an formula to get the result as shown at
the bottom. Thanks in advance for your help.

Column B C D
Row 1st criteria 2nd criteria lookup value
3 A X 1
4 B Y 2
5 C Y 3
6 A Y 4
7 B X 5
8 C Y 6
9 D X 7
10 A Y 8
11 B Y 9
12 C X 10

query 1 query 2
criteria 1 A C
criteria 2 Y Y
nth of match 2 last
Result 8 9


 




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 06:36 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.