+ Reply to Thread
Results 1 to 5 of 5

If formula error

Hybrid View

Netaji If formula error 01-11-2015, 12:06 PM
Glenn Kennedy Re: If formula error 01-11-2015, 12:11 PM
mrice Re: If formula error 01-11-2015, 12:13 PM
Netaji Re: If formula error 01-11-2015, 12:19 PM
Glenn Kennedy Re: If formula error 01-11-2015, 12:24 PM
  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    53

    If formula error

    Hi,

    I have an issue with IF formula as explained below.

    A1=102.10
    B1=102.103

    C1=IF(A1=B1,"EQUAL","UN EQUAL")

    All the 3 cells are formatted to general.I just want excel to consider only 2 decimals for equation.I just want to ignore the 3rd decimal in Cell "B1".

    If that's the case the result should show "EQUAL".

    How can i achieve that? Can anyone help me?

    Thanks,

    Netaji

  2. #2
    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: If formula error

    There will be lots of ways of doing this. Here's one:

    =IF(INT(A1*100)/100=INT(A2*100)/100,"EQUAL","UN EQUAL")
    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

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: If formula error

    Try

    =IF(ROUND(A1,2) = ROUND(B1,2), "EQUAL","UNEQUAL")

  4. #4
    Registered User
    Join Date
    02-07-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: If formula error

    Thank you Glenn and Mrice.

    Both the solutions worked like charm.

    Thanks once again.

    Netaji

  5. #5
    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: If formula error

    Thanks, and you're welcome1

+ 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] Inputbox error message. Formula you typed contains an error.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-09-2013, 02:25 PM
  2. Excel 2007 : Formula error:bring up an #VALUE! Error.
    By burner007 in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 06:10 AM
  3. [SOLVED] Formula Error-Error Message
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2006, 04:15 PM
  4. Error values:DIV/0! error in SumProduct formula with no division
    By Jerry W. Lewis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  5. Formula error with Mac resulting in '#NAME' error
    By Linking to specific cells in pivot table in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2005, 03:05 AM

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