+ Reply to Thread
Results 1 to 12 of 12

How many numbers does it take to make a specified number full

  1. #1
    Registered User
    Join Date
    10-22-2018
    Location
    South Africa
    MS-Off Ver
    Office 2013
    Posts
    4

    Smile How many numbers does it take to make a specified number full

    Good day, hope you guys are doing well. I have a little problem with some calculation regarding a specific number, and the different numbers it takes to make that number full. I will try and explain to the best of ability, so here goes.

    example.png

    What I want to do is, in the green cells, I want to display the hours for the categories that makes up the max specified hours. I have no idea how to make this happen except a manual exercise. Any help would be appreciated

    Thanks

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: How many numbers does it take to make a specified number full

    What values would you want displayed in the green cells? And can you explain the rules that you would want followed?
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How many numbers does it take to make a specified number full

    Hi roelf888. Welcome to the forum.

    Try this in L6:L8
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Registered User
    Join Date
    10-22-2018
    Location
    South Africa
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: How many numbers does it take to make a specified number full

    Thanks for the reply, but not really what I was looking, I did however find an answer at Stackoverflow

    Thanks for the replies, really appreciated ! !

  5. #5
    Registered User
    Join Date
    10-22-2018
    Location
    South Africa
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: How many numbers does it take to make a specified number full

    I cant paste links, but let me know if someone want to see the other solution

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: How many numbers does it take to make a specified number full

    What you COULD do is re-read rule 3....

    https://www.excelforum.com/forum-rul...rum-rules.html
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How many numbers does it take to make a specified number full

    Quote Originally Posted by roelf888 View Post
    I cant paste links, but let me know if someone want to see the other solution
    Well then could you at least post the solution? There is no rule prohibiting this.

    (I've gotten lost in the S-O labyrinth before.)

  8. #8
    Registered User
    Join Date
    10-22-2018
    Location
    South Africa
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: How many numbers does it take to make a specified number full

    Here is what the one guy proposed I do, I works up to 10, but as soon as the values in the data inout, goes to like 11 or 9, it does not properly allocate them into the categories.

    CpsxE.png

    It seems like you first need to calculate hours to date, check if that has reached 10, then start counting once limit is reached.


    Where overflow is calculated by =IF(HoursToDate>10,HoursAddedOnThatDay,0)

    And then IncludedHours = Sum(HoursAdded)-Sum(Overflow)

    You can hide choose to hide/move the Overflow table as you like.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: How many numbers does it take to make a specified number full

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  10. #10
    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,916

    Re: How many numbers does it take to make a specified number full

    Roel - this forum requires you to tell us WHERE you asked the same question. You can do this without links - just name the forum or forums, please. There will be no further help here until you have done so. Thanks.
    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.

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How many numbers does it take to make a specified number full

    Ali,
    Didn't OP do that in post #4?

    Quote Originally Posted by roelf888 View Post
    Thanks for the reply, but not really what I was looking, I did however find an answer at Stackoverflow

    Thanks for the replies, really appreciated ! !

  12. #12
    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,916

    Re: How many numbers does it take to make a specified number full

    Ah, yes - missed that. The OP had completely ignored my post, anyway!

+ 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. How to find numbers to make up the average number
    By Shaf in forum Excel General
    Replies: 3
    Last Post: 12-21-2017, 10:40 AM
  2. [SOLVED] How to change point digit numbers to full number?
    By vengatvj in forum Excel General
    Replies: 1
    Last Post: 07-31-2016, 12:14 AM
  3. [SOLVED] VBA to Make Excel Find Combination of Numbers that Equal a Different Number
    By OpieWinston in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2016, 01:01 PM
  4. How do I make Excel stay in Full-screen ?
    By white-k in forum Excel General
    Replies: 2
    Last Post: 04-10-2015, 12:30 PM
  5. Make a number up to six numbers long
    By MAButler in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2011, 06:03 PM
  6. Replies: 2
    Last Post: 12-22-2009, 08:06 AM
  7. How to make user forms FULL SCREEN?
    By Fendic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-24-2005, 02:05 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