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

(solved)assign number each time conditions are met

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


Joined: 10 May 2011
Posts: 23

PostPosted: Fri Mar 23, 2012 7:22 am    Post subject: (solved)assign number each time conditions are met Reply with quote

column a1:a4 = shaun david roger kev
column b1:b4 = shaun david 0 kev
column c1:c4 = shaun david roger kev
i want to assign a different number to each time all 4 names occur so a5 = 1 b5 = 0 c5=2
can this be done without writing lads of different formulas


Last edited by dwarfer1 on Sat Apr 21, 2012 10:14 am; edited 1 time in total
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: Fri Mar 23, 2012 3:55 pm    Post subject: Reply with quote

I think you need to use a helper row.
Assuming the absence of a zero is enough to indicate that all four names are present, then...
Code:
=COUNTIF(A1:A4;0)=0
in A6 filled across to C6 will return TRUE, FALSE, TRUE in A6:C6.
Then this formula in A5 filled across to C5...
Code:
=IF(A6;SUM($A6:A6);0)
will return 1, 0, 2 in A5:C5.

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