+ Reply to Thread
Results 1 to 3 of 3

enter formula w/ repeated cells

Hybrid View

  1. #1
    Registered User
    Join Date
    06-05-2006
    Posts
    26

    enter formula w/ repeated cells

    Here is the formula I created >>

    =COUNTIF(C31:C32,"d")+COUNTIF(C31:C32,"d/s")+COUNTIF(C12:C19,"d/s") +COUNTIF(C12:C19,"d")

    Is there a way to combine COUNTIF(C31:C32,"d") AND COUNTIF(C31:C32,"d/s")
    I would like to shorten this formula if possible.

    I'd tired =COUNTIF(C12:C19,"d/s","d")+COUNTIF(C31:C32,"d/s","d") but it wouldn't let me.

    Any help would be great.

  2. #2
    Registered User
    Join Date
    03-24-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: enter formula w/ repeated cells

    I am not sure what your intent behind shortening the formula is, because it already seems small. I tried it doing in other ways but it's tending to be longer. But there are options that you can use if you want to shorten formula in this cell but you are ok with adding a column and writing (a larger) formula in that column.

  3. #3
    Forum Contributor
    Join Date
    03-12-2009
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 365
    Posts
    236

    Re: enter formula w/ repeated cells

    You can replace both with =countif(C31:C32,"d*")
    If you can't figure out how a formula works, try stepping through it using "Evaluate Formula" in the Formula Auditing menu item in the tools menu!

    If you want to see where your code went wrong, try stepping through it by clicking in the code and pressing F8 and watch as the magic happens!


    If you are happy with any of the results, please add to the contributor's reputation by clicking the star icon.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1