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]count numbers present in BOTH row 1 and 2

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


Joined: 09 Apr 2012
Posts: 60

PostPosted: Sat Jun 16, 2012 11:51 am    Post subject: [SOLVED]count numbers present in BOTH row 1 and 2 Reply with quote

Hi, i´d like to know how to write a formula that´ll Count how many numbers that is present in BOTH row 1 and 2... Look at this example...

ROW 1: 22,65,11,44
ROW 2: 32,22,44,56
=2


The formula would show the number 2 as there are two numbers present in BOTH row 1 and 2 (22 and 44)

Thanks for any help, and have a great day


Last edited by fivefootnine on Sat Jun 16, 2012 11:15 pm; 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: 2032
Location: Sydney, Australia

PostPosted: Sat Jun 16, 2012 2:35 pm    Post subject: Reply with quote

If those numbers are in A1:D2 then try...
Code:
=SUMPRODUCT(ISNUMBER(MATCH(A1:D1;A2:D2;0)))

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