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

Need help on a multiple occurrence array formula

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


Joined: 25 Jul 2012
Posts: 2

PostPosted: Wed Jul 25, 2012 1:10 pm    Post subject: Need help on a multiple occurrence array formula Reply with quote

This is what I have presently:

Code:
=IF(ISERROR(INDEX(EventsList;SMALL(IF(EventsList=A$1;ROW(EventsList));ROW(1:1));2));"";INDEX(EventsList;SMALL(IF(EventsList=A$1;ROW(EventsList));ROW(1:1));2))


It isn't pulling up the next occurrence in the "EventsList" range; what am I missing or doing wrong?
Back to top
View user's profile Send private message
ken johnson
Super User
Super User


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

PostPosted: Wed Jul 25, 2012 5:44 pm    Post subject: Reply with quote

Immediately identifiable problem is your use of ROW(1:1).
This works in xl but not in Calc, where A1:AMJ1 must be used instead of 1:1.

However, I don't think using ROW(A1:AMJ1) will be any good either as it will simply keep returning 1 and SMALL(IF(EventsList=A$1;ROW(EventsList));ROW(1:1)) will only return the smallest value in the array generated by IF(EventsList=A$1;ROW(EventsList))

Perhaps you should be using something like SMALL(IF(EventsList=A$1;ROW(EventsList);"");ROW(EventsList)-MIN(ROW(EventsList))+1) instead of SMALL(IF(EventsList=A$1;ROW(EventsList));ROW(1:1)).


Also, how many columns makes up the EventsList named range?
The 2 in your formula (the INDEX function's third parameter) implies more than one column, while "EventsList=A$1" (the IF function's first parameter) implies one column.

Ken Johnson
_________________
If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button).
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