I have found quite a lot of answer about rounding decimals, however I need to sort out a simple formula for LibreOffice Calc that allows me to draw up estimates ending to the nearest 7 so for example if the quote is 1372 it should be rounded down to 1367 while if it is 1375 becomes 1377 what would be a really simply formula that does not involve coding or macros?
Making a number end to the nearest 7 (no decimals)
141 views Asked by Ritardi.Net At
2
There are 2 answers
0
tohuwawohu
On
You could use the default ROUND() function while "shifting" the values by 3:
=ROUND(A1+3;-1)-3
This gives the following results:
In other words: add your offset "3" to the initial value, ROUND() it to the nearest multiple of ten, and subtract the offset again.
But this will round 1372 to 1377, since it's a "shifted" 1375 which will round up to 1380 (see Matthew Strawbridge's comment to the question).
Related Questions in MATH
- How to restrict vpasolve() to only integer solutions (MATLAB)
- Need clarification on VHDL expressions involving std_logic_vector, unsigned and literals, unsure about compiler interpretation
- What is the algorithm behind math.gcd and why it is faster Euclidean algorithm?
- How to throw a charged particle in a electric vector field?
- Issues with a rotation gizmo and sign flips when converting back to euler angles
- Solving the area of a 2 dimensional shape
- WorldToScreen function
- Algorithm to find neighbours of point by distance with no repeats
- Detecting Circles and Ellipses from Point Arrays in Java
- three parameter log normal distribution
- Bound for product of matrices
- Javascript animation taking incorrect amount of time to reach desired location
- Converting Math.js-like Expressions to Runnable Python Code
- Looking for a standard mathematical function that returns 0 if x = 0 and a constant k when x <> 0
- Partitions in co-lexicographic order (PARI/GP algorithm without recursion)
Related Questions in ROUNDING
- In the python fractions module, why is a result of round() sometimes incorrect?
- How to round values in pyplot table
- why does the default round function in python fix double rounding errors?
- SSRS - Do not want to round a percent
- Understanding Python's Decimal.quantize method
- Isometric Tilemap is Not Lining Up Properly
- Algorithm for rounding and clamping a number to specific ends
- Character and Numeric vectors, preserve decimal points in R
- Rounding error for residuals in GARCH mean model
- Why does gcc -O1 affects std::rint()?
- How can I round numbers with three or more digits after the decimal point accurately?
- How do I make the rounding function of athena match redshift?
- Rounding of binary floating point number's mantissa
- Round prices in woocommerce without rounding the total tax at cart and checkout
- Floating point serialization/parsing rounding
Related Questions in LIBREOFFICE
- How to switch encoding of LibreOffice strings in Java UNO API?
- Is there a way to automatically export OpenOffice/LibreOffice drawings to bitmaps, with options?
- LibreOffice. Getting OutOfMemoryException while execute Conversion to PDF not instantly, but after long time of work
- Calculate the average of a filtered list/column with a condition (libre office calc)
- LibreOffice converts files from RTF to PDF to plain RTF text
- How to turn off LibreOffice API SDK Reference Browser?
- I compiled LibreOffice on Windows using Cygwin, but after running 'C:/cygwin64/opt/lo/bin/make', I encountered numerous errors
- How do I this shell (.zsh) script to put files into nested folders?
- win32gui SendMessage not working correctly in libreoffice
- Is there a way to program macros to finely tune animations in LibreOffice Impress?
- problem invoking msgbox after closing one document in python. object has no attribute 'getCurrentController'
- Add Image to Libre Office Writer with VB.Net
- How do I get content of a text cursor in Libreoffice Writer?
- How to convert excel to PDF using nodeJS? Getting issues using libreoffice-convert
- Libreoffice classes not available in java code
Related Questions in LIBREOFFICE-CALC
- Merge same data in different lines (libreoffice)
- I am trying to sum a cell from many sheets dependent on a condition in each sheet. using libreoffice calc
- How to sum/process portions of a pivot table results?
- Calculate the average of a filtered list/column with a condition (libre office calc)
- How can I use VLOOKUP in LibreOffice Calc?
- How to query image information in a Libreoffice macro?
- Excel/Calc gives wrong comparison result (after sending file)
- How to select entire row in a Libreoffice Basic macro?
- LibreOffice Calc SECOND function returning wrong value - why?
- Configure libreoffice calc such that default search is by columns not rows
- How to Print LibreOffice Calc Document on A2 or Larger Paper When Default Settings Limit to A4?
- From one column generate a table with two columns
- LibreOffice Calc, make row height adjust automatically to show all cell content
- Formulas with data ranges and hidden cells
- Modifying a named range with openpyxl causing LibreOffice pivot table to stop using range
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

As for now the solution I found is this one:
The problem with this is that does not round to the nearest 7 but to 7 so for example 362,00 becomes 367,00 and not 357,00 as intended.
Edit: this resolve the issue above, hope this helps:
Removing 10 from the total
I25due to theROUNDfunction will correct the result, so for example 362 becomes 35,2 rounded to 35 + 0.7 we get 35.7 and finally 357 as intended. While for upper values, say 365 rounding 35.5 gives us 36 + 0.7 we get 367,00 again to nearest 7 units as intended!