OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to copy display cell information according to another ce

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
wuming79
General User
General User


Joined: 29 Aug 2009
Posts: 7

PostPosted: Sat Aug 29, 2009 4:31 pm    Post subject: How to copy display cell information according to another ce Reply with quote

I'm trying to do the following. Sheet 2 is initially blank until user input in column A of sheet 2. Column B in sheet 2 will depends on column Sheet 2's column A's input and grab data from Sheet 1 according to what was input into Sheet2's column A's input.

I know there is a way to do it with "if" loops many many times n 1 cell but it's not logically to do if conditions for 130 items. Any possibility of shortening this process?

On Sheet 1:
A1 = 1, B1 = Class 1
A2 = 2, B2 = Class 2
A3 = 3, B3 = Class 3
A4 = 4, B4 = Class 4
A5 = 5, B5 = Class 5

On Sheet 2:
A1 = 3, B1 = if(A1=Sheet1!B3,""),
A2 = 1, B2 = if(A2=Sheet1!B1,""),
A3 = 2, B3 = if(A3=Sheet1!B2,""),
Back to top
View user's profile Send private message
wuming79
General User
General User


Joined: 29 Aug 2009
Posts: 7

PostPosted: Mon Aug 31, 2009 7:23 pm    Post subject: Reply with quote

Help help.
Back to top
View user's profile Send private message
ken johnson
Super User
Super User


Joined: 23 Apr 2009
Posts: 2032
Location: Sydney, Australia

PostPosted: Mon Aug 31, 2009 10:00 pm    Post subject: Reply with quote

Perhaps, and this is a really big perhaps, you should be using the VLOOKUP function in column B of Sheet2.

In Sheet2.B1...
=IF(A1="";"";VLOOKUP(A1;Sheet1.$A$1:$B$5;2;0)) filled down to B5

I know this doesn't agree with the suggestion supplied, but I can't extract anything sensible from your suggestion.

Ken Johnson
Back to top
View user's profile Send private message
wuming79
General User
General User


Joined: 29 Aug 2009
Posts: 7

PostPosted: Tue Sep 01, 2009 12:16 am    Post subject: Reply with quote

ken johnson wrote:
Perhaps, and this is a really big perhaps, you should be using the VLOOKUP function in column B of Sheet2.

In Sheet2.B1...
=IF(A1="";"";VLOOKUP(A1;Sheet1.$A$1:$B$5;2;0)) filled down to B5

I know this doesn't agree with the suggestion supplied, but I can't extract anything sensible from your suggestion.

Ken Johnson


Hi Ken, thanks for the sample. I finally made it work with your example!! Smile

[/list]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group