Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default return a number from a cell based on the lastest date

Hello,

I have a list as follows, and I would like to get the lastest Number
Ordered for each Person based on the date.

Date Person Order
10/10/06 Person 1 15
10/10/06 Person 2 25
15/10/06 Person 1 10

ie I would like to see the following as a result

Date Person Order
10/10/06 Person 2 25
15/10/06 Person 1 10

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default return a number from a cell based on the lastest date

Assuming the data is on sheet1, on another sheet list the dates and names
and add

=INDEX(Sheet1!C1:C100,MATCH((A2=Sheet1!A1:A100)*(B 2=Sheet1!B1:B100),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"sarahmarsden" wrote in message
ups.com...
Hello,

I have a list as follows, and I would like to get the lastest Number
Ordered for each Person based on the date.

Date Person Order
10/10/06 Person 1 15
10/10/06 Person 2 25
15/10/06 Person 1 10

ie I would like to see the following as a result

Date Person Order
10/10/06 Person 2 25
15/10/06 Person 1 10

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default return a number from a cell based on the lastest date

Since the key is Person X try this:

This data is in the range A2:C4

10/10/06 Person 1 15
10/10/06 Person 2 25
15/10/06 Person 1 10


A10 = Person 1
A11 = Person 2

Enter this formula in B10 as an array using the key combination of
CTRL,SHIFT,ENTER (not just ENTER):

=MAX(IF(B$2:B$4=A10,A$2:A$4))

Enter this formula in C10 as an array using the key combination of
CTRL,SHIFT,ENTER (not just ENTER):

=INDEX(C$2:C$4,MATCH(1,(B$2:B$4=A10)*(A$2:A$4=B10) ,0))

Select both B10 and C10 and copy down as needed.

Biff

"sarahmarsden" wrote in message
ups.com...
Hello,

I have a list as follows, and I would like to get the lastest Number
Ordered for each Person based on the date.

Date Person Order
10/10/06 Person 1 15
10/10/06 Person 2 25
15/10/06 Person 1 10

ie I would like to see the following as a result

Date Person Order
10/10/06 Person 2 25
15/10/06 Person 1 10

Thanks in advance.



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
selection based on a date in a cell mattguerilla Excel Discussion (Misc queries) 2 October 1st 06 03:44 PM
Function to calculate based on a portions of a number Sparky13 Excel Worksheet Functions 6 September 20th 06 02:56 PM
select cell based on a number in another cell [email protected] New Users to Excel 3 December 6th 05 09:44 PM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 10:37 PM.

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"