[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
wuming79
General User

Joined: 29 Aug 2009
Posts: 7

 Posted: Sat Aug 29, 2009 4:31 pm    Post subject: How to copy display cell information according to another ce 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,""),
wuming79
General User

Joined: 29 Aug 2009
Posts: 7

 Posted: Mon Aug 31, 2009 7:23 pm    Post subject: Help help.
ken johnson
Super User

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

 Posted: Mon Aug 31, 2009 10:00 pm    Post subject: 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
wuming79
General User

Joined: 29 Aug 2009
Posts: 7

Posted: Tue Sep 01, 2009 12:16 am    Post subject:

 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!!

[/list]
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
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