Is there any way I can do this

B

Bryan De-Lara

I use this formula
=SUMPRODUCT(--(E6:E2036=1),--(E7:E2037<>1),--($A6:$A2036>=TODAY()-365)) to
count which works great, this counts 1's. I now need to add a P or a UP to
the same cell as the 1. Is there anyway I can leave the formula above as it
is and also do a count on the P or UP? Not all cells will have the same
contents. I've tried using an array
=--{SUM(LEN(A8:A15)-LEN(SUBSTITUTE(A8:A15,"pl","")))/LEN("pl")} along with
the sumproduct formula to count both, but with no joy. I've tried all manor
of ways, all with the same results. Can anyone guide me please.

Bryan.
 
P

Pete_UK

Do you mean that cells in column E could be something like 1UP or 1P ?

Please give more details of what your data looks like.

Pete
 
B

bryan.delara

Do you mean that cells in column E could be something like 1UP or 1P ?

Please give more details of what your data looks like.

Pete




- Show quoted text -

Yes Pete, the whole column could have either 1, 1p or 1up or obviously
an empty cell. I count the 1's no problem on their own. The formula I
use for that counts either singularly or blocks. That part is great.
But if I try to add to that formula nothing works. I need to try and
let that formula work as it is now and count then to p & or the up and
have the result in E5. I can use the LEN to count the p but then the
other formula doesn't work.
 

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