Hi,
Need to count Mother OR Father - but not both.
Father OR Mother were found 5 times in A1:A6
Pls see attached WB.
Thanks, Elm
Hi,
Need to count Mother OR Father - but not both.
Father OR Mother were found 5 times in A1:A6
Pls see attached WB.
Thanks, Elm
Last edited by ElmerS; 09-26-2010 at 09:03 AM.
Hi. Try this one
=COUNT(SEARCH({"Mother*","Father*"},A1:A6))-COUNT(SEARCH({"Mother Father","Father Mother"},A1:A6))
Last edited by contaminated; 09-26-2010 at 04:35 AM.
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, ?Born in USSR?
Vusal M Dadashev
Baku, Azerbaijan
Thank you, Vusal,
You understood what I'm looking for but it seems I was not clear enough.
The 5 cells were only a short and simple example.
There could be many combinations - such as:
Mother Son Father
Mother Daughter Father
or should I say "endless" combinations in each cell.
Elm
Last edited by ElmerS; 09-26-2010 at 05:44 AM.
This?
=COUNTIF(A1:A10, "Mother") + COUNTIF(A1:A10, "Father")
Never use Merged Cells in Excel
Thanks but I don't think so - because "this" returns 2 instead of 7 - as shown in the attached pic.
Elm
Then this,..
=COUNTIF(A1:A10,"*"& "Mother"&"*") + COUNTIF(A1:A10, "*"&"Father"&"*")
If it only would return 7 (as per the last pic I have attached).
At my end it returns 11.
Elm
Hi ElmerS
a poor second choice will be code
![]()
Please Login or Register to view this content.
or![]()
Please Login or Register to view this content.
time for bed
this is set up as a udf
![]()
Please Login or Register to view this content.
Three !!! separate thanks and good night.
Elm
try
=SUMPRODUCT(--(INDEX(--ISNUMBER(SEARCH("mother",A1:A10))&--ISNUMBER(SEARCH("father",A1:A10)),0)<>"00"))
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
This time a HUGE thank you.
Have a nice afternoon,
Elm
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks