+ Reply to Thread
Results 1 to 16 of 16

Rounding up and down then reducing to 2 numbers

  1. #1
    Registered User
    Join Date
    04-07-2021
    Location
    Birmingham england
    MS-Off Ver
    office 2013
    Posts
    15

    Rounding up and down then reducing to 2 numbers

    Hi All Newbie here hopefully some one will be able to answer my question, i am creating a spreadsheet for work whereas we equate 4 figures, these figures are then rounded up or down to the nearest thousand but then reduced to 2,3 or 4 numbers depending on the 1000's 10000's or 100000's used , probably not making a lot of sense so an example is 1100+1200+15000+9000=26300 this then needs to be reduced to 26 or 27 if the equation went the other way, it would then be added to an accumulative . i have searched the web but to no avail any help would be gratefully received Adrian

    1000 would =10
    10000 would =100
    100000 would =1000 etc

    26510 would = 27
    26490 would = 26 just examples

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Rounding up and down then reducing to 2 numbers

    If your numbers are in a1:a4

    =LEFT(SUM(A1:A4),2)+IF(MID(SUM(A1:A4),3,1)*1>=5,1,0)

    take the leftmost 2 characters, then if the 3rd character is >=5 add 1 to the answer

  3. #3
    Registered User
    Join Date
    04-07-2021
    Location
    Birmingham england
    MS-Off Ver
    office 2013
    Posts
    15

    Re: Rounding up and down then reducing to 2 numbers

    thank you that worked perfectly is there a way for the sum to recognize whether it is able to reduce 5 numbers down to 2 6 number down to 3 and 7 numbers down to 4 all in the same equation i:e 12300=12 123000=123 and 1230000=1230 many thanks again for your help

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: Rounding up and down then reducing to 2 numbers

    How about this?

    =INT(SUM(A1:A4)/100)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Rounding up and down then reducing to 2 numbers

    You need to think how you round either as individual terms or the aggregate. Ali may be right but would get 200 in the below circumstance, but how you have explained it it is 198. Arguably /1000 not 100 but the same issue persists

    what would 6670, 6660, 6660 return if summed (20000/100) so 200 or 66+66+66 = 198 0r 67+ 67 +67=201
    Last edited by davsth; 04-08-2021 at 09:17 AM.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: Rounding up and down then reducing to 2 numbers

    It was an opening gambit, really - like you, I am uncertain exactly what is wanted and what rounding actually needs to occur. What you don't ever really want is for rounding to have to happen twice.

  7. #7
    Registered User
    Join Date
    04-07-2021
    Location
    Birmingham england
    MS-Off Ver
    office 2013
    Posts
    15

    Re: Rounding up and down then reducing to 2 numbers

    Hi in work we have a cumulative Figure that has been going since I started work 20 years ago and is added to by either 2 numbers lets say 26 but that figure would actually be either 25910 rounded up or 26390 rounded down (these are hypothetical figures) however if the figure is greater than 5 numbers say 259100 then this would round down to 259 (3 numbers) add another figure say 2591100 then this would be rounded up or down to the nearest thousand 4 numbers, this equation=LEFT(SUM(A1:A4),2)+IF(MID(SUM(A1:A4),3,1)*1>=5,1,0) was perfect for rounding down to 2 numbers but what I require is a calculation that can recognise if its dealing with 5 numbers to reduce to 2 ,6 numbers to 3, and 7 numbers to 4 but still rounding up or down I am hoping this is possible as running 3 spreadsheets for the same calculation is not really viable Please help

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: Rounding up and down then reducing to 2 numbers

    Did you try my suggestion in post #4? If that doesn't work, then it's time for you to provide a sample workbiook with some real-life examples of the calculations you want the formula to perform.

    There's little point in simply repeating what you've told us already: the question is not about WHAT you want to do, rather exactly HOW it needs to be done.

  9. #9
    Registered User
    Join Date
    04-07-2021
    Location
    Birmingham england
    MS-Off Ver
    office 2013
    Posts
    15

    Re: Rounding up and down then reducing to 2 numbers

    my apologies for being repetitive ,yes I tried the equation in #4 many thanks it does work however it only reduces 5 numbers to the nearest 100 (3 numbers) eg 12510 becomes 125 and I require it to go to the nearest 1000 eg 13 rounding up or 12 rounding down the same with 6 numbers to the nearest 10000 and 6 numbers 100000 rounding up or down please be patient with my questions not every one was parachuted into excel

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Rounding up and down then reducing to 2 numbers

    I'm not sure I understand. When I want to "round to the nearest number of significant digits", I use a TEXT() function with a scientific format to round to number of significant digits, then a VALUE() function to convert the resulting text back to a number. =VALUE(TEXT(number,"0.0E+0")).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: Rounding up and down then reducing to 2 numbers

    please be patient with my questions not every one was parachuted into excel
    Nobody is being impatient - I merely said that there's no point repeating what you have already said. I have learnt everything I know about Excel by myself through a lot of trial and error, so I wasn't parachuted in, either.

    The issue that is bothering us all is the nature of the rounding. It's not to do with the reduction of digits - that bit is clear.

    What I asked for was a small, sample workbook giving us some manually mocked up examples of what you want. This should include the rounding quirks you've asked for. Seeing things in a workbook will make it easier for us to deduce what's really required here.

    Don't mistake asking for clarification as impatience: it's quite the opposite.

  12. #12
    Registered User
    Join Date
    04-07-2021
    Location
    Birmingham england
    MS-Off Ver
    office 2013
    Posts
    15

    Re: Rounding up and down then reducing to 2 numbers

    Sorry not having a lot of luck uploading the excel sheet or a pic of it

  13. #13
    Registered User
    Join Date
    04-07-2021
    Location
    Birmingham england
    MS-Off Ver
    office 2013
    Posts
    15

    Re: Rounding up and down then reducing to 2 numbers

    does this help as you see under the A+b+c+d box is the figure that goes through the meters this can range from 1000 to 1000000 then underneath you will see under the daily loading total it reduces to 3 numbers using the one equation I can get this down to the 2 numbers requires for figures of 10000 and above rounding off to the nearest 1000 but what I also requires for the same figure to reduce to 3 numbers for 100000 and 4 numbers for 1000000 rounding up or down to the nearest 1000 I hope this has a better understanding thank you in advance Attachment 727490
    Attached Images Attached Images

  14. #14
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Rounding up and down then reducing to 2 numbers

    =ROUND(number,-3) will round to the nearest 1000. So 12400 will round to 12000. Then, you can divide 100 to get 120 or divide by 1000 to get 12. Are we getting any closer?

  15. #15
    Registered User
    Join Date
    04-07-2021
    Location
    Birmingham england
    MS-Off Ver
    office 2013
    Posts
    15

    Re: Rounding up and down then reducing to 2 numbers

    This equation got me close=LEFT(SUM(A1:A4),2)+IF(MID(SUM(A1:A4),3,1)*1>=5,1,0) this round the 5 numbers down to 2, this equation=INT(SUM(A1:A4)/100) rounded the 5 numbers to 3 so to the nearest hundred what I require is the same principle as the first equation but for the equation to realise its 5,6 or 7 numbers does that make any sense as I am finding it difficult to explain

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: Rounding up and down then reducing to 2 numbers

    There are instructions at the top of the page explaining how to attach your sample workbook.

+ 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. Reducing numbers based on new input
    By faith926 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-17-2016, 04:28 PM
  2. Replies: 4
    Last Post: 12-17-2015, 12:33 AM
  3. Rounding Numbers after a cancatenation of two numbers with a hyphen
    By daszlosek in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-24-2015, 12:30 PM
  4. Replies: 5
    Last Post: 01-25-2014, 05:58 PM
  5. Reducing digits without rounding
    By merusselljr1 in forum Excel General
    Replies: 3
    Last Post: 04-01-2010, 08:28 AM
  6. Replies: 3
    Last Post: 02-22-2010, 07:29 AM
  7. Excel 2007 : rounding numbers
    By joemoran in forum Excel General
    Replies: 5
    Last Post: 03-26-2009, 02:24 PM

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