count formula _1

hi experts, can you help me with a formula for the following;

                  ESTIM
    AB          y
    AC          n
    SC          y
    JM          n
   total       x 2

to count/sum 1 for each cell value with a "y", and to display total as x 2, so the formula needs to be in the "x 2" cell
Frank .SBuilding EstimatorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wayne Taylor (webtubbs)Commented:
Assuming the 4 cells to count are in cell B2:B5, you can use this formula...

=COUNTIF(B2:B5, "y")
0
Frank .SBuilding EstimatorAuthor Commented:
hi expert, I know you have already answered this question but this formula no longer works now that I have added letters to the numeric value, ie
10 (s4)
20 (s1)
40 (d2)
the result here should still = 3 because there are 3 values in this column, but with your formula above it no longer works? is it because of the value in brackets? the bracket value is in the same cell as the numeric value.
0
Wayne Taylor (webtubbs)Commented:
You'll need to post an example workbook so I can see what's going on.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Rob HensonFinance AnalystCommented:
As mentioned in your previous question, there are numerous COUNT functions. To count cells that include text you have to use COUNTA which counts cells that are not empty, assuming range suggested by Wayne:

=COUNTA(B2:B5)

Thanks
Rob
0
aikimarkCommented:
@Frank

You went from "count the 'y' instances" to something completely different.  Please post a comment that describes your problem completely.
0
Rob HensonFinance AnalystCommented:
I think the comment above (42388092) was meant for previous question (if statement) as that was referring to counting numeric data (dates to be more precise).
0
Frank .SBuilding EstimatorAuthor Commented:
hi experts, sorry for the confusion, what i wanted was to count the cell range values other than "y" so for each value other than "y" the sum is to add 1.
0
Wayne Taylor (webtubbs)Commented:
=COUNTIF(B2:B5, "<>y")
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Frank .SBuilding EstimatorAuthor Commented:
hi wayne if i wanted to count everything other than "y" and say "z" would the formula be =COUNTIF(B2:B5, "<>y,z")
0
Rob HensonFinance AnalystCommented:
As per previous question, use COUNTIFS for multiple criteria.

=COUNTIFS (B2:B5,"<>Y",B2:B5,"<>z")
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.