Results 1 to 25 of 25

Count only items in cell with black font

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Count only items in cell with black font

    Hello all

    I found this formula and it works great, but I need to count only items with black font. We use red font to identify lost items so don't want to count them as part of our inventory. Any help would be appreciated!!

    Thanks,
    Andrew

    Formula to count the number of words separated by a character in a cell
    The following formula counts the number of words in a cell that are separated by a specific character:

    =IF(LEN(TRIM(<cell_ref>))=0,0,LEN(<cell_ref>)- LEN(SUBSTITUTE(<cell_ref>,<char>,""))+1)
    where <cell_ref> is the cell reference and <char> is the character separating the words.

    My formula:

    =IF(LEN(TRIM(E4))=0,0,LEN(E4)- LEN(SUBSTITUTE(E4,",",""))+1)
    Last edited by drewship; 11-17-2009 at 08:40 AM.

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