+ Reply to Thread
Results 1 to 4 of 4

IF & MROUND

  1. #1
    phuser
    Guest

    IF & MROUND

    =IF(ISERROR(F151-L151),"",IF(SUM(F151-L151<=0),"-",MROUND((F151-L151),10)))


    if there are numbers in either cells I get a #NAME Error, what am I missing?



  2. #2
    Peo Sjoblom
    Guest

    Re: IF & MROUND

    make sure analysis toolpak is installed, mround is not a native excel
    function although it comes with excel, so tools>add-ins and select analysis
    toolpak and if necessary keep the cd handy

    --

    Regards,

    Peo Sjoblom

    Excel 95 - Excel 2007
    Northwest Excel Solutions
    www.nwexcelsolutions.com
    "It is a good thing to follow the first law of holes;
    if you are in one stop digging." Lord Healey


    "phuser" <[email protected]> wrote in message
    news:[email protected]...
    > =IF(ISERROR(F151-L151),"",IF(SUM(F151-L151<=0),"-",MROUND((F151-L151),10)))
    >
    >
    > if there are numbers in either cells I get a #NAME Error, what am I
    > missing?
    >
    >




  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,792
    You don't need MROUND if you're rounding to the nearest 10

    =ROUND(A1,-1) does the same as

    =MROUND(A1,10)

    so change your formula to

    =IF(ISERROR(F151-L151),"",IF(L151>=F151,"-",ROUND(F151-L151,-1)))

  4. #4
    phuser
    Guest

    Re: IF & MROUND

    thanks so much daddy, worked like a charm

    "daddylonglegs" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > You don't need MROUND if you're rounding to the nearest 10
    >
    > =ROUND(A1,-1) does the same as
    >
    > =MROUND(A1,10)
    >
    > so change your formula to
    >
    > =IF(ISERROR(F151-L151),"",IF(L151>=F151,"-",ROUND(F151-L151,-1)))
    >
    >
    > --
    > daddylonglegs
    > ------------------------------------------------------------------------
    > daddylonglegs's Profile:
    > http://www.excelforum.com/member.php...o&userid=30486
    > View this thread: http://www.excelforum.com/showthread...hreadid=555802
    >




+ 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