+ Reply to Thread
Results 1 to 12 of 12

Count whole numbers

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Count whole numbers

    Hi All

    I have a string of numbers in cells E4:Z4, i want cell AH to count the number of Whole numbers

    Have found various answers to this on this and other forums but seem to always get #VALUE errors

    Thanks

    Ian

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Count whole numbers

    Hi ian,

    welcome to the forum...

    It will be helpful, if you can post the URL where you exactly facing error.. or a sample file..

    in the meanwhile.. try this.. Array Formula..

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


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Count whole numbers

    this will work IF the decimal is indicated with "." (eg: 2.2 ) it will return error when using "," (eg: 2,2)
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved , to mark your thread as Solved select Thread Tools and click Mark thread as Solved.

    I can't read the mind of my wife so then I get picture but no sound .... and then I mostly get the idea, same goes here picture your outcome and I get the idea.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count whole numbers

    Hi,

    Perhaps you could share with us the solutions which you've already tried? Without seeing the format of your data, it's difficult to be sure of a solution, but perhaps:

    =SUM(IFERROR(--(MOD(E4:Z4,1)=0),0))

    Note: must be array-entered

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count whole numbers

    @Debraj Roy, hulpeloos

    What if some of the entries are non-numeric?

    Regards

  6. #6
    Registered User
    Join Date
    09-19-2013
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Count whole numbers

    Thank you, I still get the #value error (even after a CTRL-SHFT-ENTER)

    How do I attach a file? I (hopefully) have attached a screen grab to show what I am trying to do. the red text is actually a number with .001 after it.

    ave.PNG
    Attached Files Attached Files

  7. #7
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Count whole numbers

    Thanks for the catch & guidance..

  8. #8
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Count whole numbers

    Just combining your & XOR LX 's idea..

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


    @ XOR LX .. "every case has some what if..
    Last edited by Debraj Roy; 09-19-2013 at 09:56 AM.

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count whole numbers

    "@ XOR LX .. "every case has some what if.. ""

    Too true, my friend! Too true!

  10. #10
    Registered User
    Join Date
    09-19-2013
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Count whole numbers

    Sorry guys, i'm not sure i have explained myself very well, let me try and go back a few steps...

    I am trying to calculate a batting average for a cricketer (or more accurately a league full of them)

    Therefore i am trying to calculate "Total Runs / (Total Innings - Not outs)" = Average. I can count innings (cells containing a number) and i want away of inputting not out number so it can be input and the formula counts it differently to subtract it from total innings. DNB is entered to prove the player appeared in a game, but did not bat

  11. #11
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Count whole numbers

    Ok.. so can you please re-upload the file.. with some manual inputs.. in Not Out section..

    just want to figure out.. how you decide .. a player is "Not put".. and

    why few runs are 0.001 and what does a red font denotes..

  12. #12
    Registered User
    Join Date
    09-19-2013
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Count whole numbers

    2014.xlsx

    I have left a single row with example data, and descriptions for what function i want each cell to use.

    The decimal point 1.001 was just part of my attempt to solve he issue.

    Thanks in advance

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count If Function To Count Frequency Of Long Numbers
    By RowanB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 05:18 AM
  2. Replies: 6
    Last Post: 12-22-2012, 05:04 PM
  3. [SOLVED] Count numbers between two values in a coma delimited string of numbers
    By van23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2012, 11:42 PM
  4. [SOLVED] How do i count numbers and letters to find a total count of all
    By Linda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2005, 12:55 PM
  5. [SOLVED] Count comma separated numbers, numbers in a range with dash, not t
    By Mahendra in forum Excel General
    Replies: 0
    Last Post: 08-08-2005, 01:05 PM

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