+ Reply to Thread
Results 1 to 3 of 3

Can you create a formula that will count the occurances of a number (say "25")

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Oceanside, CA
    MS-Off Ver
    Excel 2008 MAC
    Posts
    2

    Can you create a formula that will count the occurances of a number (say "25")

    Say you have the number 25 and you want to count its occurances on different sheets in a workbook and then display the amount that 25 occurs in a cell.
    Can this be done?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Can you create a formula that will count the occurances of a number (say "25")

    Hi allenratta,

    If the sheet number in the workbook is fixed, you can use formula, else vba macro is best fit. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Can you create a formula that will count the occurances of a number (say "25")

    If the sheets are called Sheet1, Sheet2 etc then you can use the formula below. Adapt the range to suit

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If the sheet names are different create a named range (in this case named range is called "MySheets") listing the sheet names and use the formula below. Adapt the range to suit.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  4. #4
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Can you create a formula that will count the occurances of a number (say "25")

    RE-POSTED BECAUSE WASN'T REGISTERED AS A REPLY

    If the sheets are called Sheet1, Sheet2 etc then you can use the formula below. Adapt the range to suit

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If the sheet names are different create a named range (in this case named range is called "MySheets") listing the sheet names and use the formula below. Adapt the range to suit.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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