Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Change Cell Reference from vertical to horizontal
Change Cell Reference from vertical to horizontal
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
Hanniball
Blue Pill


Joined: Aug 06, 2007
Posts: 1

PostPosted: Mon Aug 06, 2007 6:31 am    Post subject: Change Cell Reference from vertical to horizontal

Hi,

I am new to NeoOffice. I hope what I want to do can be done in NeoOffice:

I have a column filled with names. On the next sheet I want to use these names as header for those columns.

Is that possible?

Regards

Hanniball
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Mon Aug 06, 2007 7:58 am    Post subject:

The answer is Yes if you're prepared to do it manually - there doesn't appear to be any way to do this using Fill (though someone may have written a macro to do this, with any luck - I'll see what I can find). The manual version - if your column of names on sheet1 is thus:
Code:
A1
Crosby
Godley
Oates
Ringo
Mick
Titch

Your row heading formulae on sheet2 should be thus:
Code:
A1          B1          C1
=sheet1.A1  =sheet1.A2  =sheet1.A3

and so on.

- padmavyuha
Back to top
jgd
Agent Smith


Joined: Feb 27, 2005
Posts: 1531
Location: France

PostPosted: Mon Aug 06, 2007 9:01 am    Post subject:

You can use the Array function: TRANSPOSE.

Select Cells A1 to F1 in Sheet2 (in your example) then enter =TRANSPOSE(Sheet1.A1:A6) (use the function wizard, I don't get that to work if I enter (Sheet1.A1:A6) by hand, why?) and press Return.

You can select only cell A1 in Sheet2, use TRANSPOSE, you get Crosby in that cell, then drag the mouse on the first row of Sheet2. The rows is filled with Godley, etc.

Hope that helps

Jacqueline
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Mon Aug 06, 2007 10:24 am    Post subject:

Neat function!

But I couldn't get the 'drag cell A1 in sheet2' to do anything.

I notice that the wizard creates an array across the cells in sheet2, so that each cell shows the same thing: {=TRANSPOSE(Sheet1.A1:Sheet1.A6)} - following the instructions in Help, if you select (in this example) cells A1 to F1 in sheet2, type =TRANSPOSE(Sheet1.A1:Sheet1.A6) in the formula bar and then hit cmd-shift-Enter, it creates the array above in the same way the wizard does.

- padmavyuha
Back to top
jgd
Agent Smith


Joined: Feb 27, 2005
Posts: 1531
Location: France

PostPosted: Mon Aug 06, 2007 11:06 am    Post subject:

yoxi wrote:
Neat function!

But I couldn't get the 'drag cell A1 in sheet2' to do anything.

It works for me only when I use the wizard.
Quote:
if you select (in this example) cells A1 to F1 in sheet2, type =TRANSPOSE(Sheet1.A1:Sheet1.A6) in the formula bar and then hit cmd-shift-Enter, it creates the array above in the same way the wizard does.
- padmavyuha

OK. It works fine with Cmd-Shift-Return, not with only Return.

The wizard enters in the TRANSPOSE function (Sheet1.A1:A6), not (Sheet1.A1:Sheet1.A6). I wonder if that matters?

Thanks yoxi.

Jacqueline
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Mon Aug 06, 2007 3:49 pm    Post subject:

jgd wrote:
The wizard enters in the TRANSPOSE function (Sheet1.A1:A6), not (Sheet1.A1:Sheet1.A6). I wonder if that matters?

Actually, either works - but sensibly enough, when you enter a range the Neo default is to assume that it's all contained within one sheet Smile so sheet1.A1:A6 is more what Marilyn Monroe would call jus' telegant.

I'm still geeking out about TRANSPOSE (sorry, just watched The Incredibles again...) - I'm glad that such an obvious need is met by the developers.

- padmavyuha
Back to top
jgd
Agent Smith


Joined: Feb 27, 2005
Posts: 1531
Location: France

PostPosted: Tue Aug 07, 2007 1:35 am    Post subject:

yoxi wrote:
I'm still geeking out about TRANSPOSE (sorry, just watched The Incredibles again...) - I'm glad that such an obvious need is met by the developers.

- padmavyuha

In French "The Incredibles" are "Les Indestructibles" Wink

Let's be serious…
TRANSPOSE is a mathematical function which applies to matrices, thus it's not "incredible" that the developers include it in OOo and Neo, as INVERSE, DETERMINANT, etc. (in English?, my interface is currently in French)

Tip to add to the wiki Smile

Jacqueline
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.