Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Sorting data in new sheet.

Hi everyone,

Here is my issue. --Sheet1-- below is the data set and --Sheet 2-- is what
result I am chasing. I need $B$2:$C$13 to be populated with the results (*)
using the data in --Sheet1--. I have absolutly no idea whether or not you use
RANK and something else. Any help would be appreciated and thanks in advance.

--Sheet1--
A B C
1 #Name# #Date# #Result#
2 Sam 12/12/08 Orange
3 Sam 3/01/09 Apple
4 Danny 30/12/08 Plum
5 Sam 10/01/09 Plum
6 Danny 10/01/09 Mango

--Sheet2--
A B C
1 #Date# #Sam# #Danny#
2 1/01/09 *Orange *Plum
3 2/01/09 *Orange *Plum
4 3/01/09 *Apple *Plum
5 4/01/09 *Apple *Plum
6 5/01/09 *Apple *Plum
7 6/01/09 *Apple *Plum
8 7/01/09 *Apple *Plum
9 8/01/09 *Apple *Plum
10 9/01/09 *Apple *Plum
11 10/01/09 *Plum *Mango
12 11/01/09 *Plum *Mango
13 12/01/09 *Plum *Mango




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sorting data in new sheet.

Here's one formulas play which delivers the results sought ..

In Sheet2,
Assume B1:C1 contains the names: Sam, Danny
(names must be consistent with that listed in Sheet1's A2:A6)

Put in B2, normal ENTER:
=INDEX(Sheet1!$C$2:$C$6,MATCH(1,INDEX((Sheet1!$A$2 :$A$6=B$1)*(Sheet1!$B$2:$B$6<=$A2),),0))

Put in B3, normal ENTER:
=IF(ISNA(MATCH(1,INDEX((Sheet1!$A$2:$A$6=B$1)*(She et1!$B$2:$B$6=$A2)*(Sheet1!$B$2:$B$6<=$A3),),0)), B2,INDEX(Sheet1!$C$2:$C$6,MATCH(1,INDEX((Sheet1!$A $2:$A$6=B$1)*(Sheet1!$B$2:$B$6=$A2)*(Sheet1!$B$2: $B$6<=$A3),),0)))
Copy B3 to B13. Then select B2:B13, copy to C2:C13. And that drives out the
exact results that you seek/indicate.

Celebrate success, hit YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"sam" wrote:
Here is my issue. --Sheet1-- below is the data set and --Sheet 2-- is what
result I am chasing. I need $B$2:$C$13 to be populated with the results (*)
using the data in --Sheet1--. I have absolutly no idea whether or not you use
RANK and something else. Any help would be appreciated and thanks in advance.

--Sheet1--
A B C
1 #Name# #Date# #Result#
2 Sam 12/12/08 Orange
3 Sam 3/01/09 Apple
4 Danny 30/12/08 Plum
5 Sam 10/01/09 Plum
6 Danny 10/01/09 Mango

--Sheet2--
A B C
1 #Date# #Sam# #Danny#
2 1/01/09 *Orange *Plum
3 2/01/09 *Orange *Plum
4 3/01/09 *Apple *Plum
5 4/01/09 *Apple *Plum
6 5/01/09 *Apple *Plum
7 6/01/09 *Apple *Plum
8 7/01/09 *Apple *Plum
9 8/01/09 *Apple *Plum
10 9/01/09 *Apple *Plum
11 10/01/09 *Plum *Mango
12 11/01/09 *Plum *Mango
13 12/01/09 *Plum *Mango




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Sorting data in new sheet.

Max,

You are an absolute legend.

Cheers

Sam

"Max" wrote:

Here's one formulas play which delivers the results sought ..

In Sheet2,
Assume B1:C1 contains the names: Sam, Danny
(names must be consistent with that listed in Sheet1's A2:A6)

Put in B2, normal ENTER:
=INDEX(Sheet1!$C$2:$C$6,MATCH(1,INDEX((Sheet1!$A$2 :$A$6=B$1)*(Sheet1!$B$2:$B$6<=$A2),),0))

Put in B3, normal ENTER:
=IF(ISNA(MATCH(1,INDEX((Sheet1!$A$2:$A$6=B$1)*(She et1!$B$2:$B$6=$A2)*(Sheet1!$B$2:$B$6<=$A3),),0)), B2,INDEX(Sheet1!$C$2:$C$6,MATCH(1,INDEX((Sheet1!$A $2:$A$6=B$1)*(Sheet1!$B$2:$B$6=$A2)*(Sheet1!$B$2: $B$6<=$A3),),0)))
Copy B3 to B13. Then select B2:B13, copy to C2:C13. And that drives out the
exact results that you seek/indicate.

Celebrate success, hit YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"sam" wrote:
Here is my issue. --Sheet1-- below is the data set and --Sheet 2-- is what
result I am chasing. I need $B$2:$C$13 to be populated with the results (*)
using the data in --Sheet1--. I have absolutly no idea whether or not you use
RANK and something else. Any help would be appreciated and thanks in advance.

--Sheet1--
A B C
1 #Name# #Date# #Result#
2 Sam 12/12/08 Orange
3 Sam 3/01/09 Apple
4 Danny 30/12/08 Plum
5 Sam 10/01/09 Plum
6 Danny 10/01/09 Mango

--Sheet2--
A B C
1 #Date# #Sam# #Danny#
2 1/01/09 *Orange *Plum
3 2/01/09 *Orange *Plum
4 3/01/09 *Apple *Plum
5 4/01/09 *Apple *Plum
6 5/01/09 *Apple *Plum
7 6/01/09 *Apple *Plum
8 7/01/09 *Apple *Plum
9 8/01/09 *Apple *Plum
10 9/01/09 *Apple *Plum
11 10/01/09 *Plum *Mango
12 11/01/09 *Plum *Mango
13 12/01/09 *Plum *Mango




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sorting data in new sheet.

Welcome, glad it worked, Sam
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---


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
Sorting data in one sheet Gwen Excel Worksheet Functions 4 May 20th 09 11:36 PM
sorting data in another sheet adib Excel Worksheet Functions 2 March 9th 09 11:09 PM
Sorting data from one sheet to another Khawajaanwar Excel Discussion (Misc queries) 1 March 29th 08 04:14 PM
SORTING DATA TO ANOTHER SHEET cityfc Excel Worksheet Functions 0 January 11th 06 11:40 PM
SORTING DATA TO ANOTHER SHEET cityfc Excel Worksheet Functions 0 January 11th 06 11:39 PM


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