+ Reply to Thread
Results 1 to 4 of 4

ROUND with an IF exception

  1. #1
    Registered User
    Join Date
    02-03-2021
    Location
    Glasgow, UK
    MS-Off Ver
    2013
    Posts
    2

    ROUND with an IF exception

    Hi there,

    I have a sheet that totals pricing for a specific package by adding values from 3 different sections on my worksheet, and this is rounded to the nearest figure ending in 9 using the MROUND function as follows

    Please Login or Register  to view this content.
    This has always worked fine, but now I am required to apply an additional parameter whereby if the "Package Total" ends in 09, I need the value in the cell to be reduced by a further 10 to round it down to the next 99 value.

    How can I modify my formula to allow for this exception for values ending in 09? I've attached an example file below (the values in D3, D5 and D6 would not meet the new requirements as they currently end in 09, so I need these to show as £1,299, £1,499 and £1,299 respectively).

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: ROUND with an IF exception

    Without a helper column then one way

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-03-2021
    Location
    Glasgow, UK
    MS-Off Ver
    2013
    Posts
    2

    Re: ROUND with an IF exception

    Quote Originally Posted by Richard Buttrey View Post
    Without a helper column then one way

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Wonderful, thank you! That works perfectly for the purposes required - I had never used the RIGHT / LEFT function in Excel before, so it's great to learn of their usage

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: ROUND with an IF exception

    Hi

    Glad it's worked for you. Don't forget there's also the MID() string slicing function

    Also note what's often referred to as the 'double unary' operator. i.e. the two minus signs in succession --

    This is often used to convert numbers that appear as text into proper numbers. It's needed here since the RIGHT function returns a text string of the last two characters

+ 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] How to PRESENT round-down, but not perform round-down function?
    By superlative in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-02-2019, 12:06 PM
  2. [SOLVED] Custom formulas that will round up when a condition is met or round down
    By cinstanl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2016, 01:32 PM
  3. Replies: 5
    Last Post: 01-30-2015, 11:34 AM
  4. Replies: 2
    Last Post: 12-06-2014, 01:58 PM
  5. [SOLVED] How to round to nearest .01 and round down if thousands place is .005
    By dredre609 in forum Excel General
    Replies: 5
    Last Post: 09-29-2014, 11:47 AM
  6. Counting to a specified numberin round, then add one to round
    By McG_84 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-10-2013, 04:20 PM
  7. [SOLVED] How do I ROUND() round off decimals of a column dataset?
    By Højrup in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2005, 07:06 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