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

Author Message
rjshen43
General User

Joined: 06 Aug 2011
Posts: 12

 Posted: Wed Feb 15, 2012 7:09 pm    Post subject: [SOLVED]Which Function to use MAX and???? Hello and Thanks: In cells A1-A10 and C1-C10 are numbers. in cells B1-B10 and D1-D10 are times. In cell E10 I need a formula to find the max number in cells A1:A10 and C1:C10. In cell F10 I need the adjacent cell that has the max number. Say if A2 has the max number 21 and the cell next to it B2 has "0:12:23" then 21 should be returned in cell E10 and "0:12:23" should be returned in cell F10. Thank You_________________open office 3.2 on Ubuntu 10.10Last edited by rjshen43 on Thu Feb 16, 2012 7:47 am; edited 1 time in total
ken johnson
Super User

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

Posted: Wed Feb 15, 2012 7:21 pm    Post subject:

Try...
 Code: =MAX(A1:A10;C1:C10)
in E10, and...
 Code: =IF(ISNUMBER(MATCH(E10;A1:A10;0));INDEX(B1:B10;MATCH(E10;A1:A10;0));INDEX(D1:D10;MATCH(E10;C1:C10;0)))
in F10.

Ken Johnson
_________________
If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button).
rjshen43
General User

Joined: 06 Aug 2011
Posts: 12

 Posted: Thu Feb 16, 2012 7:48 am    Post subject: Thanks works great!!!_________________open office 3.2 on Ubuntu 10.10
 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

Powered by phpBB © 2001, 2005 phpBB Group