+ Reply to Thread
Results 1 to 4 of 4

Formula to check if any decimal exist in the range of values

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Formula to check if any decimal exist in the range of values

    Hi All

    I was trying to work on a formula which determines if any decimal exist in the given range.
    say A1=5.00 A2=5.32 A3=9.64 A4="" A5=0.0, it should return me false as thers decimal in A2 and A3.
    =IF(SUMPRODUCT(A1:A5/ROUND(A1:A5,0))/COUNTIF(A1:A5,">=0")<>1,FALSE,TRUE)
    this formula works if there's no blank or zeros in the range, how to modify to exclude zeros and blanks?

    Thanks in advance

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: Formula to check if any decimal exist in the range of values

    =SUMPRODUCT(--(MOD(A1:A5,1)>0))
    Try this
    or
    =SUMPRODUCT(--(MOD(A1:A6,1)>0))>0
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula to check if any decimal exist in the range of values

    Try htis array formula (set with CTRL-SHIFT-ENTER)

    =COUNTA(A1:A5)=SUM(IF(ISNUMBER(A1:A5),IF(ROUND(A1:A5,0)-A1:A5=0,1,0)))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Re: Formula to check if any decimal exist in the range of values

    Thanks a lottt

+ 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] Check First IF Sheet Is Exist With The Name Of Cell K7 If exist Then run the code
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2015, 10:08 AM
  2. Replies: 3
    Last Post: 06-06-2014, 05:55 PM
  3. Replies: 0
    Last Post: 02-23-2014, 10:31 PM
  4. Check range if multiple names exist then show msgbox
    By c.pedersen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 06:23 AM
  5. Replies: 4
    Last Post: 03-04-2012, 08:34 AM
  6. when typing to a cell check if this number exist in a range of cells (in sheet 2)
    By gtserkou in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-28-2008, 01:18 PM
  7. Check if files exist in a formula
    By dvent in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2007, 08:18 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