Formula to Round Up to Nearest Hundreth - InfoPath Dev
in

InfoPath Dev

Formula to Round Up to Nearest Hundreth

Last post 03-23-2010 11:39 AM by daniel.gruesso. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 03-22-2010 02:16 PM

    Formula to Round Up to Nearest Hundreth

    Hello all,

    I have an excel form which I am exporting to infopath.

    One of the fields round UP the value to the nearest hundredth - for example 348 becomes 400.

    Does anyone know how to accomplish this in infopath?

     

     

    Thanks 

    Filed under: , ,
  • 03-22-2010 07:28 PM In reply to

    Re: Formula to Round Up to Nearest Hundreth

    Round up to the nearest hundredth ->  ceiling(field * 100) div 100

    Round up to the nearest hundred ->  ceiling(field div 100) * 100

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 03-23-2010 06:54 AM In reply to

    Re: Formula to Round Up to Nearest Hundreth

     Jimmy, when I enter as follows i receive an error:

    (ceiling(field * 100)/100)

     

    What would be the proper way to enter?

  • 03-23-2010 07:21 AM In reply to

    Re: Formula to Round Up to Nearest Hundreth

     Jimmy,

    I am unsure your formula will help.

    What I'm trying to achieve is to round UP to the nearest hundreth, for example, if users enters the value 458, the output would be 500, etc.

     

    Thanks

  • 03-23-2010 07:27 AM In reply to

    Re: Formula to Round Up to Nearest Hundreth

    You are saying you want to round up to the nearest hundredth, but what you are describing is rounding up to the nearest hundred [no th] so you should be using the second formula I gave you.

    You need to type div not /, and you need to add a reference to the field (use the Insert field or group... button), not type the word "field."

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 03-23-2010 11:39 AM In reply to

    Re: Formula to Round Up to Nearest Hundreth

     Worked! Thanks.

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.