Adding 2 colums of data

M

Mamagga

I would like to count 2 colums of data for a sum

Ex: =countif((Sheet3!C5:C35="name")*(Sheet3!E5:E35="O**"))

Please advise.
 
J

Jacob Skaria

Try
=SUMPRODUCT((Sheet3!C5:C35="name")*(LEFT(Sheet3!E5:E35,1)="O"))

If this post helps click Yes
 
B

Bernard Liengme

=SUMPRODUCT(--(Sheet3!C5:C35="name"), --(Sheet3!E5:E35="O"))
will count (not sum) all row having 'name' in column E and "O" in column E

What your meaning of "O**" ?
best wishes
 
M

Mamagga

Hi Jacob,
I used the formula below and a was somewhat successful - it added but not
the right total. Maybe if you explained the formula (ie. what is "left" for
and the ,1 after the array?) I could figure it out.
Thaks
 
M

Mamagga

Hi Bernard,

I tried your formula and it is not adding up. The "O" is a letter. What I
would like the formula to do is count if the "name" is in column C and the
letter "O" is in column E add.
 
D

Dave Peterson

I'm betting that Bernard wanted to know what those ** represented?

Did you mean for them to be wildcards (and why did you use 2 of them)?
=SUMPRODUCT(--(Sheet3!C5:C35="name"), --left((Sheet3!E5:E35,1)="O"))
(=left(a1,1) returns the first/leftmost character in A1.)

Or are they the characters that appear in the cell?
=SUMPRODUCT(--(Sheet3!C5:C35="name"), --(Sheet3!E5:E35="O**"))
 
J

Jacob Skaria

=SUMPRODUCT((Sheet3!C5:C35="name")*(LEFT(Sheet3!E5:E35,1)="O"))
Count the number of rows with colC = "name" and the text in Column E starts
with O
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top