[Solved] Count if multiple Conditions met in Multiple ranges

Discuss the spreadsheet application
Post Reply
JoeyDragonSales
Posts: 5
Joined: Mon Feb 04, 2013 10:47 am

[Solved] Count if multiple Conditions met in Multiple ranges

Post by JoeyDragonSales »

Hi, I am a sales specialist working leads received by phone as well as internet leads. When I sell someone, I record Phone lead(ph) or Internet lead(int). In column A range a10:a65 I I record the customers name in each Cell. Range b10:65 is Ph or int. Range D10:D65 I Record "Yes" or "No" in the sold section.

I'd like to be able to record in Cell h2 the number of leads that have "Ph" in range B10:B65 AND "Yes" in Range D10:65.

In cell I2 I'd like to record the Numer of leads that have "Int" in range B10:B65 AND "Yes" in Range D10:D65.

I have tried =SUM((B10:B65="ph")*(D10:D65="yes")) but it will only work in h2, I cannot duplicate it into I2 and simply Change "ph" to "int" in the formula.

I am lost.. Please help.
Last edited by Hagar Delest on Mon Feb 04, 2013 10:15 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.4.1 on windows 8
User avatar
karolus
Volunteer
Posts: 1233
Joined: Sat Jul 02, 2011 9:47 am

Re: Counting if multiple Conditions met in Multiple ranges

Post by karolus »

Hallo
use

Code: Select all

=SUMPRODUCT($B$10:$B$65="ph";$D$10:$D$65="yes")
Karolus
Libreoffice 25.2… on Debian 13 (trixie) (on RaspberryPI5)
Libreoffice 25.8… flatpak on Debian 13 (Bookworm) (on RaspberryPI5)
JoeyDragonSales
Posts: 5
Joined: Mon Feb 04, 2013 10:47 am

Re: Counting if multiple Conditions met in Multiple ranges

Post by JoeyDragonSales »

Karolus thank you for your reply, I tried that, tried with and without the $ sign. Didn't work.
OpenOffice 3.4.1 on windows 8
User avatar
RoryOF
Moderator
Posts: 35101
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Counting if multiple Conditions met in Multiple ranges

Post by RoryOF »

Did you try whatever variation of "ph" "PH" etc you used on the main form?
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
JoeyDragonSales
Posts: 5
Joined: Mon Feb 04, 2013 10:47 am

Re: Counting if multiple Conditions met in Multiple ranges

Post by JoeyDragonSales »

Yes. I used lower case everything to initially write the formula set, but I cant seem to figure out this multi Condition thing.
OpenOffice 3.4.1 on windows 8
JoeyDragonSales
Posts: 5
Joined: Mon Feb 04, 2013 10:47 am

Re: Counting if multiple Conditions met in Multiple ranges

Post by JoeyDragonSales »

I've used =COUNTIF(D10:D65;"=Ph") for a running phone tally. Now If I could figure out how to add another condition to that I'd have exactly what I need
OpenOffice 3.4.1 on windows 8
User avatar
Villeroy
Volunteer
Posts: 31348
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Counting if multiple Conditions met in Multiple ranges

Post by Villeroy »

SUMPRODUCT works for everyone but you.
SUMIF/COUNTIF works with one criterion only.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
thinman3
Volunteer
Posts: 382
Joined: Sat Jul 11, 2009 8:53 pm

Re: Counting if multiple Conditions met in Multiple ranges

Post by thinman3 »

Attached is an example using your data scheme.
Ph, Int --SUMPRODUCT.ods
(7.72 KiB) Downloaded 1050 times
thinman3
3.4.1 & 4.1.5 on MS Windows 7 Pro x64
JoeyDragonSales
Posts: 5
Joined: Mon Feb 04, 2013 10:47 am

Re: Counting if multiple Conditions met in Multiple ranges

Post by JoeyDragonSales »

Thinman3,
That worked perfectly. Thank you very much.
OpenOffice 3.4.1 on windows 8
Post Reply