Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cherrynich
 
Posts: n/a
Default transposing question...

There's an article he
http://office.microsoft.com/en-gb/as...260381033.aspx

It explains exactly what I'm trying to do almost, I want to transpose this
array (from the article close to the bottom):
=IF(ISERROR(INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$ 10,ROW($A$1:$A$7)),
ROW(1:1)),2)),"",INDEX($A$1:$B$7,SMALL(IF($A$1:$A$ 7=$A$10,ROW($A$1:$A$7)),
ROW(1:1)),2))
I want it to list the numbers not vertically but horizontally. Is there any
way I could make the array display it that way by entering something into
this formula?
I will award an imperial silver medal to anyone who can answer this.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default transposing question...

First of all there is a more waterproof way of doing this, using the same
ranges

=IF(ROWS(B$1:B1)<=COUNTIF($A$1:$A$7,$A$10),INDEX($ B$1:$B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7)-ROW($A$1)+1),ROWS(B$1:B1))),"")

also entered with ctrl + shift & enter

compare the 2 formulas, then insert an empty row at the top and you'll see
what I mean, the formula you posted will return wrong answer


Example can be downloaded here

http://nwexcelsolutions.com/Download/

to extract the values across you can use

=IF(COLUMNS(B$1:B1)<=COUNTIF($A$1:$A$7,$A$10),INDE X($B$1:$B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7 )-COLUMN($A$1)+1),COLUMNS($B:B))),"")

or if you prefer the first formula

=IF(ISERROR(INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$ 10,ROW($A$1:$A$7)),COLUMN(A:A)),2)),"",INDEX($A$1: $B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7)),COLU MN(A:A)),2))


now I am eagerly waiting the imperial silver medal <bg

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com









"cherrynich" wrote in message
...
There's an article he
http://office.microsoft.com/en-gb/as...260381033.aspx

It explains exactly what I'm trying to do almost, I want to transpose this
array (from the article close to the bottom):
=IF(ISERROR(INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$ 10,ROW($A$1:$A$7)),
ROW(1:1)),2)),"",INDEX($A$1:$B$7,SMALL(IF($A$1:$A$ 7=$A$10,ROW($A$1:$A$7)),
ROW(1:1)),2))
I want it to list the numbers not vertically but horizontally. Is there
any
way I could make the array display it that way by entering something into
this formula?
I will award an imperial silver medal to anyone who can answer this.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cherrynich
 
Posts: n/a
Default transposing question...

shabaz! *Imperial Silver Medaled* Thanks Peo!

"Peo Sjoblom" wrote:

First of all there is a more waterproof way of doing this, using the same
ranges

=IF(ROWS(B$1:B1)<=COUNTIF($A$1:$A$7,$A$10),INDEX($ B$1:$B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7)-ROW($A$1)+1),ROWS(B$1:B1))),"")

also entered with ctrl + shift & enter

compare the 2 formulas, then insert an empty row at the top and you'll see
what I mean, the formula you posted will return wrong answer


Example can be downloaded here

http://nwexcelsolutions.com/Download/

to extract the values across you can use

=IF(COLUMNS(B$1:B1)<=COUNTIF($A$1:$A$7,$A$10),INDE X($B$1:$B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7 )-COLUMN($A$1)+1),COLUMNS($B:B))),"")

or if you prefer the first formula

=IF(ISERROR(INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$ 10,ROW($A$1:$A$7)),COLUMN(A:A)),2)),"",INDEX($A$1: $B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7)),COLU MN(A:A)),2))


now I am eagerly waiting the imperial silver medal <bg

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com









"cherrynich" wrote in message
...
There's an article he
http://office.microsoft.com/en-gb/as...260381033.aspx

It explains exactly what I'm trying to do almost, I want to transpose this
array (from the article close to the bottom):
=IF(ISERROR(INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$ 10,ROW($A$1:$A$7)),
ROW(1:1)),2)),"",INDEX($A$1:$B$7,SMALL(IF($A$1:$A$ 7=$A$10,ROW($A$1:$A$7)),
ROW(1:1)),2))
I want it to list the numbers not vertically but horizontally. Is there
any
way I could make the array display it that way by entering something into
this formula?
I will award an imperial silver medal to anyone who can answer this.




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
Is this the proper place to ask my question? amkazen Excel Discussion (Misc queries) 1 March 1st 06 05:20 PM
Pivot table question gary Excel Discussion (Misc queries) 1 January 10th 06 06:25 PM
Benefits many people - Question ebgehringer Excel Discussion (Misc queries) 0 October 7th 05 09:22 PM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM


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