Results 1 to 5 of 5

Thread: Qty required to get to the next 100th
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    May 2010
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Qty required to get to the next 100th

    Hello, I have a a big list of varying numbers and I need to calculate how many are needed to reach the next 100. eg

    145 result needed would be 55 (next 100 is 200)
    23 result needed would be 77 (next 100 is 100)
    412 result needed would be 88 (need 100 is 500)

    I've got around this by sorting and changing the figure required each time but as the list grows, this is a bit tiresome. Is there a formula that would do this easily?

    Thanks

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    29,248
    Post Thanks / Like
    Mentioned
    483 Post(s)
    Tagged
    49 Thread(s)

    Default Re: Qty required to get to the next 100th

    How about
    =CEILING(A1,100)-A1
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  3. #3
    Board Regular alansidman's Avatar
    Join Date
    Feb 2007
    Location
    Steamboat Springs
    Posts
    5,008
    Post Thanks / Like
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Qty required to get to the next 100th

    Data Range
    A
    B
    C
    1
    145
    =MOD(A1,100)
    =100-B1
    2
    23
    =MOD(A2,100)
    =100-B2
    3
    412
    =MOD(A3,100)
    =100-B3

    or

    Data Range
    A
    B
    1
    145
    =100-MOD(A1,100)
    2
    23
    =100-MOD(A2,100)
    3
    412
    =100-MOD(A3,100)
    Last edited by alansidman; Apr 26th, 2019 at 09:52 AM.
    Let me know if that works for you
    Alan

    Am Yisrael Chai

    Win 10--Office 2019
    When Posting Code, please use code tags.
    How to insert Mcode to Power Query https://excel.solutions/2017/11/powe...te-code-video/


  4. #4
    New Member
    Join Date
    May 2010
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Qty required to get to the next 100th

    Thank you so much. We all need more Fluff! brilliant!

  5. #5
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    29,248
    Post Thanks / Like
    Mentioned
    483 Post(s)
    Tagged
    49 Thread(s)

    Default Re: Qty required to get to the next 100th

    You're welcome & thanks for the feedback
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •