+ Reply to Thread
Results 1 to 4 of 4

countif function

  1. #1
    Registered User
    Join Date
    04-09-2008
    Posts
    2

    countif function

    I have a small problem with countif, but no time to investigate it.

    A B
    1 60952-8-86-1 1
    2 60965---93 0 or nothing

    The countif function should work that when the valua is like in cell A1 it must mention 1 (in cell B1. So there must be four valuas within between -.
    If values are missing like in cell A2 then in cel B2 a 0 or nothing must be mention.

    I know, it is simple but due to lack of time...

    Rubio

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Try this

    =IF(ISERROR(FIND("--",A1,1)),"",1)

    Does that work for you?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    04-09-2008
    Posts
    2
    Quote Originally Posted by oldchippy
    Hi,

    Try this

    =IF(ISERROR(FIND("--",A1,1)),"",1)

    Does that work for you?
    Thankyou, worked out fine!

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to help - thanks for the feedback

+ 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