+ Reply to Thread
Results 1 to 3 of 3

count decimal nos in a range

  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 Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    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")

  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.

+ 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