Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 328
Default one column to multiple

I have one very long column, with 14 repeating rows for different printers.
I would like each printer on a row, so 14 elements side-by-side for each
item. This way I can sort by one item, etc.

Can anyone help me with a macro to transpose the info this way.

Thanks,

Lisa


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default one column to multiple


With all credit to Biff

With your values in column A, type this in B1:

=INDEX($A:$A,(ROWS($1:1)-1)*14+COLUMNS($A:B)-1)

and copy it through to O1.

Then copy B1:O1 down the page as far as you think you'll need them.

Your blocks of 14 repeating values will now appear in rows across th
page.

Regards
Mik

--
Mikeopol
-----------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...fo&userid=1857
View this thread: http://www.excelforum.com/showthread.php?threadid=57135

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 328
Default one column to multiple

Hi,

I get the value in cell A1 14 times, but not the 14 values across the one row.

Lisa

"Mikeopolo" wrote:


With all credit to Biff

With your values in column A, type this in B1:

=INDEX($A:$A,(ROWS($1:1)-1)*14+COLUMNS($A:B)-1)

and copy it through to O1.

Then copy B1:O1 down the page as far as you think you'll need them.

Your blocks of 14 repeating values will now appear in rows across the
page.

Regards
Mike


--
Mikeopolo
------------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...o&userid=18570
View this thread: http://www.excelforum.com/showthread...hreadid=571352


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default one column to multiple


Can you please "cut/post" the formula you have in B1?

Many thanks
Mike


--
Mikeopolo
------------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...o&userid=18570
View this thread: http://www.excelforum.com/showthread...hreadid=571352

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 328
Default one column to multiple

B1 has =INDEX($A:$A,(ROWS($1:1)-1)*14+COLUMNS($A:B)-1)
C1 has =INDEX($A:$A,(ROWS($1:1)-1)*14+COLUMNS($A:C)-1)
and each one is taking 2 cells, so the first is taking B1 and B2, the next
C1 and C2

Lisa


"Mikeopolo" wrote:


Can you please "cut/post" the formula you have in B1?

Many thanks
Mike


--
Mikeopolo
------------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...o&userid=18570
View this thread: http://www.excelforum.com/showthread...hreadid=571352




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default one column to multiple


If you press F9 does the result change?

If so, your calculation was set to manual - change to automatic (tools,
Options, Calculation, and set to auto.

Regards
Mike


--
Mikeopolo
------------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...o&userid=18570
View this thread: http://www.excelforum.com/showthread...hreadid=571352

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 328
Default one column to multiple

One more prablem, it is still taking up 2 rows, so the formala is taking B1
and B2, not just B1.

Lisa

"Mikeopolo" wrote:


If you press F9 does the result change?

If so, your calculation was set to manual - change to automatic (tools,
Options, Calculation, and set to auto.

Regards
Mike


--
Mikeopolo
------------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...o&userid=18570
View this thread: http://www.excelforum.com/showthread...hreadid=571352


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 328
Default one column to multiple

Sorry, just the cut and paste from the post made the extra rows, it work now!

THANKS!

Lisa

"Lisa" wrote:

One more prablem, it is still taking up 2 rows, so the formala is taking B1
and B2, not just B1.

Lisa

"Mikeopolo" wrote:


If you press F9 does the result change?

If so, your calculation was set to manual - change to automatic (tools,
Options, Calculation, and set to auto.

Regards
Mike


--
Mikeopolo
------------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...o&userid=18570
View this thread: http://www.excelforum.com/showthread...hreadid=571352


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default one column to multiple


Excellent!
Mike


--
Mikeopolo
------------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...o&userid=18570
View this thread: http://www.excelforum.com/showthread...hreadid=571352

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
Returning multiple text data into 1 column from many column entrie Roger Excel Worksheet Functions 1 March 4th 10 08:07 AM
Plotting multiple Y column data versus single X column in Excel 20 RossM Charts and Charting in Excel 3 June 28th 09 01:39 AM
Adding multiple values in one column based on multiple values of the same value (text) in another column [email protected] Excel Discussion (Misc queries) 1 May 16th 07 06:02 PM
Display multiple lines of text within a cell from multiple column. Zeeshan Zaheer Excel Worksheet Functions 3 August 23rd 06 10:08 AM
Problem when trying to convert one column with multiple rows to one row with multiple column marcello Excel Programming 1 February 23rd 04 03:03 AM


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

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"