Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
andrewm
 
Posts: n/a
Default index / match /lookup ? help


Hi

I am trying to change sheet 1 into sheet 2 form

ie. sheet one is


date 15/7 16/7 ...
andrew E R
john R E
mary w R
Jim R w etc

to

date E W R R
15/7 andrew mary john jim
16/7 john jim andrew mary etc

I know what to do with the E and W's (as there are only one ), but
problem
with R's

andrewm


--
andrewm
------------------------------------------------------------------------
andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
View this thread: http://www.excelforum.com/showthread...hreadid=387140

  #2   Report Post  
Domenic
 
Posts: n/a
Default


Assumptions:

Sheet1!A1:C5 contains your source data

Sheet2!A2:A3 contains 15/7 and 16/7

Sheet2!B1:E1 contains E, W, R, and R

Formula:

Sheet2!B2, copied across and down:

=INDEX(Sheet1!$A$2:$A$5,SMALL(IF(INDEX(Sheet1!$B$2 :$C$5,0,MATCH($A2,Sheet1!$B$1:$C$1,0))=B$1,ROW(She et1!$A$2:$A$5)-ROW(Sheet1!$A$2)+1),COUNTIF($B$1:B$1,B$1)))

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

andrewm Wrote:
Hi

I am trying to change sheet 1 into sheet 2 form

ie. sheet one is


date 15/7 16/7 ...
andrew E R
john R E
mary w R
Jim R w etc

to

date E W R R
15/7 andrew mary john jim
16/7 john jim andrew mary etc

I know what to do with the E and W's (as there are only one ), but
problem
with R's

andrewm



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=387140

  #3   Report Post  
andrewm
 
Posts: n/a
Default


Hi,

Sorry

sheet 1 contains all of -
A B C
1 date 15/7 16/7 ...
2 andrew E R
3 john R E
4 mary w R
5 Jim R W etc

sheet 2

to A B C D
E W R R
15/7 andrew mary john jim
16/7 john jim andrew mary etc



andrewm


--
andrewm
------------------------------------------------------------------------
andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
View this thread: http://www.excelforum.com/showthread...hreadid=387140

  #4   Report Post  
Domenic
 
Posts: n/a
Default


I don't quite understand. Can you elaborate?

andrewm Wrote:
Hi,

Sorry

sheet 1 contains all of -
A B C
1 date 15/7 16/7 ...
2 andrew E R
3 john R E
4 mary w R
5 Jim R W etc

sheet 2

to A B C D
E W R R
15/7 andrew mary john jim
16/7 john jim andrew mary etc



andrewm



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=387140

  #5   Report Post  
andrewm
 
Posts: n/a
Default


Hi,

Sorry

sheet 1 contains all of -
column a column b column c column d
date 15/7 16/7 ...
andrew E R
john R E
mary W R
jim R W


it is a roster for 4 people showing what they are doing in each day
either E,R, or W

I would like to rearrange it to sheet 2 showing

column A column B column C column D
column
E W
R R
l
15/7 andrew mary john
jim
16/7 john jim
andrew mary etc

andrewm


--
andrewm
------------------------------------------------------------------------
andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
View this thread: http://www.excelforum.com/showthread...hreadid=387140



  #6   Report Post  
Domenic
 
Posts: n/a
Default


My solution will provide you with the results you're looking for. Have
you tried it?

andrewm Wrote:
Hi,

Sorry

sheet 1 contains all of -
column a column b column c column d
date 15/7 16/7 ...
andrew E R
john R E
mary W R
jim R W


it is a roster for 4 people showing what they are doing in each day
either E,R, or W

I would like to rearrange it to sheet 2 showing

column A column B column C column D
column
E W
R R
l
15/7 andrew mary john
jim
16/7 john jim
andrew mary etc

andrewm



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=387140

  #7   Report Post  
andrewm
 
Posts: n/a
Default


Hi,

will do

thanks

andrewm


--
andrewm
------------------------------------------------------------------------
andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
View this thread: http://www.excelforum.com/showthread...hreadid=387140

  #8   Report Post  
andrewm
 
Posts: n/a
Default


Hi, Dominec and others

I have tried the array formula

(copied and used control shift enter)

did not work

what am i doing wrong

(could you attach an example)

many thanks

andrewm


--
andrewm
------------------------------------------------------------------------
andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
View this thread: http://www.excelforum.com/showthread...hreadid=387140

  #9   Report Post  
Domenic
 
Posts: n/a
Default


Since I don't have a utility to zip files, I won't be able to attach a
sample. But, if you'd like, I can email you one. If you're
interested, send me your email address via Private Message.

andrewm Wrote:
Hi, Dominec and others

I have tried the array formula

(copied and used control shift enter)

did not work

what am i doing wrong

(could you attach an example)

many thanks

andrewm



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=387140

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
Index and Match issues Mo Excel Worksheet Functions 3 May 19th 05 07:16 PM
Match, Index, Vlookup, Large....Help Please [email protected] Excel Worksheet Functions 3 December 15th 04 01:38 PM
Match & Index Phyllis B. Excel Worksheet Functions 2 November 27th 04 03:26 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


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