Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default advanced lookup/index-match problem


Hi

Let's say I have this set of data
_ a_b_c
1 cl_o_5/15/06
2 cl_c_4/21/06
3 dj_o_6/19/06
4 dj_c_8/2/06
5 bp_o_3/21/06
6 oj_o_7/7/06
7 bo_c_7/15/06
8 cl_o_3/1/06

OK, so we have three columns of data: symbol, status (open or closed),
and a date.

Now, without having to do any special sorting, is there a way to find
out, using the list just the way it is, what the oldest date is for all
open cl trades, and then all bp trades, etc?

How can I tell excel to:

"take a look inside of column A for all instances of cl, where column B
says "O", and make note of the date of each trade. Then, having gathered
the list of all relevant dates, tell me what the oldest date of the
bunch is. Thanks"

Looking at the cl trades, the oldest open trade is 3/1/06

Any ideas are welcome.

Many thanks

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile: http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=570616

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default advanced lookup/index-match problem

Hi!

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER:

=MIN(IF((A1:A8="cl")*(B1:B8="o"),C1:C8))

Format as DATE

Better to use cells to hold the criteria:

E1 = cl
F1 = o

=MIN(IF((A1:A8=E1)*(B1:B8=F1),C1:C8))

Biff

"tx12345" wrote in
message ...

Hi

Let's say I have this set of data
_ a_b_c
1 cl_o_5/15/06
2 cl_c_4/21/06
3 dj_o_6/19/06
4 dj_c_8/2/06
5 bp_o_3/21/06
6 oj_o_7/7/06
7 bo_c_7/15/06
8 cl_o_3/1/06

OK, so we have three columns of data: symbol, status (open or closed),
and a date.

Now, without having to do any special sorting, is there a way to find
out, using the list just the way it is, what the oldest date is for all
open cl trades, and then all bp trades, etc?

How can I tell excel to:

"take a look inside of column A for all instances of cl, where column B
says "O", and make note of the date of each trade. Then, having gathered
the list of all relevant dates, tell me what the oldest date of the
bunch is. Thanks"

Looking at the cl trades, the oldest open trade is 3/1/06

Any ideas are welcome.

Many thanks

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile:
http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=570616



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default advanced lookup/index-match problem


Biff,

right, an array. I'll give it a try.

Thanks!

tx

Biff Wrote:
Hi!

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER:

=MIN(IF((A1:A8="cl")*(B1:B8="o"),C1:C8))

Format as DATE

Better to use cells to hold the criteria:

E1 = cl
F1 = o

=MIN(IF((A1:A8=E1)*(B1:B8=F1),C1:C8))

Biff

"tx12345" wrote
in
message ...

Hi

Let's say I have this set of data
_ a_b_c
1 cl_o_5/15/06
2 cl_c_4/21/06
3 dj_o_6/19/06
4 dj_c_8/2/06
5 bp_o_3/21/06
6 oj_o_7/7/06
7 bo_c_7/15/06
8 cl_o_3/1/06

OK, so we have three columns of data: symbol, status (open or

closed),
and a date.

Now, without having to do any special sorting, is there a way to

find
out, using the list just the way it is, what the oldest date is for

all
open cl trades, and then all bp trades, etc?

How can I tell excel to:

"take a look inside of column A for all instances of cl, where column

B
says "O", and make note of the date of each trade. Then, having

gathered
the list of all relevant dates, tell me what the oldest date of the
bunch is. Thanks"

Looking at the cl trades, the oldest open trade is 3/1/06

Any ideas are welcome.

Many thanks

tx


--
tx12345

------------------------------------------------------------------------
tx12345's Profile:
http://www.excelforum.com/member.php...o&userid=24776
View this thread:

http://www.excelforum.com/showthread...hreadid=570616



--
tx12345
------------------------------------------------------------------------
tx12345's Profile: http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=570616

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default advanced lookup/index-match problem

You're welcome!

Biff

"tx12345" wrote in
message ...

Biff,

right, an array. I'll give it a try.

Thanks!

tx

Biff Wrote:
Hi!

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER:

=MIN(IF((A1:A8="cl")*(B1:B8="o"),C1:C8))

Format as DATE

Better to use cells to hold the criteria:

E1 = cl
F1 = o

=MIN(IF((A1:A8=E1)*(B1:B8=F1),C1:C8))

Biff

"tx12345" wrote
in
message ...

Hi

Let's say I have this set of data
_ a_b_c
1 cl_o_5/15/06
2 cl_c_4/21/06
3 dj_o_6/19/06
4 dj_c_8/2/06
5 bp_o_3/21/06
6 oj_o_7/7/06
7 bo_c_7/15/06
8 cl_o_3/1/06

OK, so we have three columns of data: symbol, status (open or

closed),
and a date.

Now, without having to do any special sorting, is there a way to

find
out, using the list just the way it is, what the oldest date is for

all
open cl trades, and then all bp trades, etc?

How can I tell excel to:

"take a look inside of column A for all instances of cl, where column

B
says "O", and make note of the date of each trade. Then, having

gathered
the list of all relevant dates, tell me what the oldest date of the
bunch is. Thanks"

Looking at the cl trades, the oldest open trade is 3/1/06

Any ideas are welcome.

Many thanks

tx


--
tx12345

------------------------------------------------------------------------
tx12345's Profile:
http://www.excelforum.com/member.php...o&userid=24776
View this thread:

http://www.excelforum.com/showthread...hreadid=570616



--
tx12345
------------------------------------------------------------------------
tx12345's Profile:
http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=570616



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
Advanced Filter problem R. Choate Excel Discussion (Misc queries) 14 May 28th 06 09:12 PM
Match Index cjjoo Excel Worksheet Functions 3 October 25th 05 09:33 AM
advanced filter - can't match a long text cell simpsons_rule Excel Discussion (Misc queries) 7 May 14th 05 11:00 PM
Complex LookUp / Match Problem ?? carl Excel Worksheet Functions 2 May 2nd 05 08:53 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM


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