+ Reply to Thread
Results 1 to 13 of 13

Automatically Distribute Values

  1. #1
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Automatically Distribute Values

    Hello!

    I am working on a template that I am currently using to automatically distribute the total number of points to the number of meetings.

    Here are the steps:
    1.The user will encode the total number of points that will be automatically distributed.
    2. The user will encode the number of meetings.

    As the user encodes the number of meetings, excel will automatically assign how many points will be allotted for each meetings (I already have a working formula for this). I need to modify this formula in such a way that I would like to automatically subtract 9 from the total number of points so that only the difference will be distributed for each meetings.
    Attached Files Attached Files
    Last edited by Simply_Me; 10-06-2021 at 12:37 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Need help on my formula

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread:]
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Automatically Distributed Values

    I have already closed the initial thread - OP said they posted in the wrong forum, and re-posted here. OP also changed the title for the initial thread, so I used that same title here.

    Apologies for any confusion.

    Admin
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Automatically Distribute Values

    I have this workaround. I changed my original formula from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    User will just encode the value 9 (Y5) to be subtracted from the total number of points works okay but the total points is not equal to the total number points encoded earlier in step 1 (W40). How will I tell excel to assign 9 (Y5) in D9?
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Automatically Distribute Values

    I may be misunderstanding, however it would seem that the formula in D5 and down could be modified to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Automatically Distribute Values

    Thanks for the reply.
    What I would like to achieve is I want excel to do is subtract whatever value I typed in the last row of column D (whatever row it is) from the total points in column W10 and then automatically distribute the remaining points.
    I've attached my original work before the workaround I attached earlier. Below is my code for Column D down.
    Please Login or Register  to view this content.
    Note:
    I created the workaround because I am hoping that there is a code that will automatically assigned the value from Y5 in the last row of column D thereby ignoring the existing formula of the last row. I hope I explained it right.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Automatically Distribute Values

    Still not sure that I understand, however if the request is to modify the formula to find the row containing the total number of meeting hours as well as the manually placed value for total points in column W, then try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  8. #8
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Automatically Distribute Values

    Thanks for the reply and sorry for not opening responding here lately...been busy in the office lately. Anyway, here's an image of what I want to do.
    EDIT: The No. of Meetings (hours) are manually encoded too.
    Attached Images Attached Images
    Last edited by Simply_Me; 11-11-2021 at 08:50 AM.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Automatically Distribute Values

    It seems that you want the values in D5:D8 replaced so that D10 displays 40.
    I feel that can not be done.
    1. When the 9 is manually placed in cell D8 it will erase the formula.
    2. When I amend the formula for cells D5:D7 so that they include the difference between W10 and D10 in I get a circular reference.
    Perhaps another contributor will have a suggestion.

  10. #10
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Automatically Distribute Values

    1. When the 9 is manually placed in cell D8 it will erase the formula.
    Cell D8 will really have no formula but whatever its value will be subtracted from W10 and whatever will be the difference, the same will be distributed in cell D5:D7 depending on the number of hours.

    2. When I amend the formula for cells D5:D7 so that they include the difference between W10 and D10 in I get a circular reference.
    Cell D10 is a summation formula.

    I hope my explanation and is clear. Thank you.

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Automatically Distribute Values

    Try pasting the following into cell D5 and then dragging the fill handle down to cell D7:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  12. #12
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Automatically Distribute Values

    Quote Originally Posted by JeteMc View Post
    Try pasting the following into cell D5 and then dragging the fill handle down to cell D7:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Almost working! but the Total of column D will not equal to column W. I used the formula below instead and it is now working. The only thing is, sometimes, even if the number of meetings are the same, the distributed number of points are not the same. Perhaps it has something to do with rounding off.

    Please Login or Register  to view this content.

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Automatically Distribute Values

    Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Replies: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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