Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Yan
 
Posts: n/a
Default Display Excel list from vertical to horizontal

Hi,

I would like to know the advanced Excel function or formula on how to
display a list of data from vertical listing and be able to identify and
display the next occurence of the same text, to be displayed horizontally for
the return column. Here is an example:

Sample data:
Name Favourite colour
John Smith Black
John Smith Blue
John Smith Orange
Mary Singh Purple
Sally Hansen Red
Sally Hansen Green

The layout I want to display is as follows:
Name Favourite colour1 Favourite colour2
Favourite colour3
John Smith Black Blue
Orange
Mary Singh Purple
Sally Hansen Red Green

Much appreciate your help.

--
Yan
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Ron Coderre
 
Posts: n/a
Default Display Excel list from vertical to horizontal

Try something like this:

Note: ALL of the below formulas are ARRAY FORMULAS. Commit them by holding
down the [ctrl] and [shift] keys when you press [enter].

With your list in A1:B10

E1: Name
E2:
=IF(SUMPRODUCT(($A$2:$A$10<"")*ISERROR(MATCH($A$2 :$A$10,$E$1:E1,0)))<0,INDEX($A$2:$A$10,MATCH(TRUE ,ISERROR(IF(ISBLANK($A$2:$A$10),FALSE,MATCH($A$2:$ A$10,$E$1:$E1,0))),0),1),"")

F1 through J1: Fav_1, Fav_1....to Fav_5

F2:
=IF($E2="","",IF(COUNTIF($A$1:$A$10,$E2)<COLUMNS($ F:F),"",INDEX($A$1:$B$10,SMALL(IF($A$1:$A$10=$E2,R OW($A$1:$A$10 )),COLUMNS($F:F)),2)))

follow these next steps carefully<<<

Copy from F2 and Paste into G2 through J2
Copy from E2:J2 and Paste DOWN into E3 through E10

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Yan" wrote:

Hi,

I would like to know the advanced Excel function or formula on how to
display a list of data from vertical listing and be able to identify and
display the next occurence of the same text, to be displayed horizontally for
the return column. Here is an example:

Sample data:
Name Favourite colour
John Smith Black
John Smith Blue
John Smith Orange
Mary Singh Purple
Sally Hansen Red
Sally Hansen Green

The layout I want to display is as follows:
Name Favourite colour1 Favourite colour2
Favourite colour3
John Smith Black Blue
Orange
Mary Singh Purple
Sally Hansen Red Green

Much appreciate your help.

--
Yan

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
Calendar Control in Excel 2000 can't display date in Excel 2003? Lewis Excel Discussion (Misc queries) 0 April 21st 06 05:07 PM
"Microsoft Excel can't display Clip Art" Jim Cone Excel Discussion (Misc queries) 0 February 27th 06 12:40 AM
How do I create a List in Excel 2000 Watch Online Excel Worksheet Functions 1 January 31st 06 07:45 PM
When running a SAP report Excel will only display results if Excel isn't already open peternoy Excel Discussion (Misc queries) 0 January 19th 06 11:03 AM
I cannot get time format to display in a drop-down list Mighty Mike Excel Discussion (Misc queries) 0 February 1st 05 09:47 PM


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