formula
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: formula

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I have a database that looks like this

    A

    1287
    1287-3345
    1287-6785

    I want to write a formula that can count the number of times 1287 has occured in the same column.

    Thanks in advance

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,821
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-04-10 04:42, jaco wrote:
    I have a database that looks like this

    A

    1287
    1287-3345
    1287-6785

    I want to write a formula that can count the number of times 1287 has occured in the same column.

    Thanks in advance
    Try:

    =SUMPRODUCT(ISNUMBER(SEARCH(E1,A1:A3))+0)

    where A1:A3 is the range of interest and E1 houses the target value to count.

    Addendum: If the range of interest houses text-formatted entries only,

    =COUNTIF(A1:A3,"*"&E1&"*")

    will suffice.



    [ This Message was edited by: Aladin Akyurek on 2002-04-10 05:31 ]

  3. #3
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Hi Jayco

    Man=ybe even:

    =COUNTIF(A1:A5000,1287)+COUNTIF(A1:A5000,"1287*")

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com