1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Excel 97 formula

Discussion in 'Business Applications' started by Dave J, Aug 29, 2000.

Thread Status:
Not open for further replies.
  1. Dave J

    Dave J Thread Starter

    Joined:
    Aug 29, 2000
    Messages:
    1
    I'm trying to use COUNTIF to to count the number of rows in a range that have "CD" as the first 2 characters. I've tried severals combinations along the lines of :
    =COUNTIF(LEFT(d2:d1040,2),"CD")
    Any ideas ?
     
  2. EAFiedler

    EAFiedler Moderator

    Joined:
    Apr 25, 2000
    Messages:
    14,145
    Try this one:

    =COUNTIF(A:A,"CD*")

    It will count any string that starts with CD and contains any alpha or numeric character following it.

    This one will count any string that has CD anywhere in the string.

    =COUNTIF(A:A,"*CD*")
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/37253

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice