OR statement inside a COUNTIF statement

  • Thread starter Thread starter Carla
  • Start date Start date
C

Carla

I am trying to get a formula that will count numbers
within a range that begin with a 1 OR 2 OR 3 OR 4.

Thank you.
 
One way

=SUMPRODUCT(--(LEFT(TRIM(A1:A20))={"1","2","3","4"}))

--

Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)
 
Thank you! You are awesome! It's works great!
-----Original Message-----
One way

=SUMPRODUCT(--(LEFT(TRIM(A1:A20))={"1","2","3","4"}))

--

Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)





.
 
=OR(logical, logical) and
=AND(logical, logical)

Are themselves worksheet functions.
 

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

Back
Top