+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    07-07-2009
    Location
    Karachi
    MS-Off Ver
    Excel 2007
    Posts
    26

    Post count decimal nos in a range

    Hi all!

    i'm using following formula in column"B" to find decimal nos.

    =IF(ISNUMBER(FIND(".",A1)),"Decimal","Whole")

    after this i just use simple countif function to count decimal in column C.

    =COUNTIF(B1:B10,"decimal")

    i want to know how can combine these two formulas into one that return only count of decimal number without using helper column.

    regars
    Last edited by sheryar; 12-12-2009 at 05:41 AM.

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: count decimal nos in a range

    maybe like this:

    Counting the decimals in B1 to B10:

    =SUMPRODUCT(--(MOD(B1:B10,1)>0))

    identifying the decimal in B1:

    =IF(MOD(B1,1)>0,"decimal","integer")
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Registered User
    Join Date
    07-07-2009
    Location
    Karachi
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: count decimal nos in a range

    Hi!

    Thanks for your help.

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.2.0