+ Reply to Thread
Results 1 to 4 of 4

→ Smart Rounding - Max Values Array ← [SOLVED]

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    _
    MS-Off Ver
    Excel 2010
    Posts
    31

    → Smart Rounding - Max Values Array ← [SOLVED]

    I have searched numerous threads and many forums and have not come across a solution to the following problem. I would appreciate your help, plus I’m sure it would be useful for future posters.

    6.6%
    7.7% ← Ideally I would like to adjust this number to 7.6 and
    84.3% ← adjust this number to 84.2
    0.3%
    0.4%
    0.5%
    0.4%
    ======
    100.20%
    ======

    Therefore, if the different between 100.2 and 100 is .2; it would only adjust (rounddown) the largest (MAX) 2 numbers by -.1% . In another example if the total was 99.7 then the formula would adjust (roundup) the largest (MAX) 3 numbers by +.1%.

    Thanks in advance for your help!
    Last edited by xsoldoutx; 07-26-2012 at 03:19 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: → Smart Rounding - Max Values Array ←

    xsoldoutx,

    Welcome to the forum!
    Attached is an example workbook based on the criteria you described.

    Row 2 contains the column totals
    Row 3 and down contains the numbers that get summed
    Column B contains the original data
    Column C contains the formula results for the adjusted data

    In cell C3 and copied down to C100 is this formula:
    Please Login or Register  to view this content.
    Is something like that what you're looking for?
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-26-2012
    Location
    _
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: → Smart Rounding - Max Values Array ←

    Tigeravatar, this is exactly what I needed, however my goal is to find the exception to the rule so please see the below attachment / spreadsheet.

    I don't know why it isn't working because you have a RANK & a COUNTIF formula, therefore it shouldn't matter if more than three values are equal. While the attachment example would probably never happen I do not know why your formula isn't working in the below example. Thanks again!

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: → Smart Rounding - Max Values Array ←

    xsoldoutx,

    Ah, that is actually due to a miniscule rounding issue. It can be corrected by adding the Round() function. In cell C3 and copied down:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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