+ Reply to Thread
Results 1 to 12 of 12

Weighted Average Calculation

  1. #1
    Registered User
    Join Date
    12-01-2022
    Location
    Wales
    MS-Off Ver
    MS 365 For Business
    Posts
    22

    Weighted Average Calculation

    Hello,

    Please refer to attached spreadsheet. I am trying to split the KW of electricity equally between the machines in the factory. I can do this by multiplying the KW by the % use of each machine to give me a flat usage (column I). Where I am struggling is that each machine uses Varying amounts of electricity based on machine size (column J). Is there a formula I can put in K that will adjust the usage based on the machine size?

    Any help would be greatly appreciated.

    Kind regards,

    OM
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Weighted Average Calculation

    May be:

    K2:
    Please Login or Register  to view this content.
    Not sure it works, because the results quite different from column I
    Quang PT

  3. #3
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,944

    Re: Weighted Average Calculation

    Cell K2 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 04-16-2024 at 05:14 AM.

  4. #4
    Registered User
    Join Date
    12-01-2022
    Location
    Wales
    MS-Off Ver
    MS 365 For Business
    Posts
    22

    Re: Weighted Average Calculation

    Thank you. Thats pulling through a revised KW usage for Machine 2 although it didn't run on that day?

    Kind regards,

    OM

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,944

    Re: Weighted Average Calculation

    Hi omlette_boy At the beginning, it is important to clarify that not everyone understands your structure file
    May I know Which column is your Machine 2 ?

  6. #6
    Registered User
    Join Date
    12-01-2022
    Location
    Wales
    MS-Off Ver
    MS 365 For Business
    Posts
    22

    Re: Weighted Average Calculation

    Apologies, Machine Number is column B. (this is recurring each day as No of machines doesn't change). The runtime in Minutes for each machine, each day is column C. There is a maximum availability of hours at 16 hours per day (column D)

    In column I, i have calculated the KW that each machine would have used if all were the same size (multiplied the % of total hours each machine used by the total KW each day), however, that hasnt taken into account the varying machine sizes and therefore omits the fact that some machines use more KW than others. Looking for a formula that will come back to the daily usage weighted to each machine type.

    Again I apologise if not clear.

    Thank you for helping.

    OM

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Weighted Average Calculation

    Please try in K2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-01-2022
    Location
    Wales
    MS-Off Ver
    MS 365 For Business
    Posts
    22

    Re: Weighted Average Calculation

    That is amazing. Please can I ask what the *(A2=A$2:A$999)) is doing? (the only bit I'm struggling to follow.)

    Thanks so much

    Regards,

    OM

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Weighted Average Calculation

    How about:

    Please Login or Register  to view this content.
    In fact, this is an average value of (hour %) and (size %)

  10. #10
    Registered User
    Join Date
    12-01-2022
    Location
    Wales
    MS-Off Ver
    MS 365 For Business
    Posts
    22

    Re: Weighted Average Calculation

    Thank you, that returns a KW value even if the machine was inactive during the day?

    Thanks again

    OM

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Weighted Average Calculation

    Quote Originally Posted by omlette_boy View Post
    what the *(A2=A$2:A$999) is doing?
    A2 is the date.
    *(A2=A$2:A$999) ensures that the total per day remains correct.
    Last edited by HansDouwe; 04-16-2024 at 06:51 AM.

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Weighted Average Calculation

    If you haven't already, please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.
    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Weighted Average inaccurate calculation
    By Serpan75 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-27-2021, 04:58 PM
  2. [SOLVED] Weighted average calculation in difference set of data
    By Chocobo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-16-2018, 11:04 AM
  3. Weighted Average Calculation When #N/A is present
    By Atom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2017, 01:45 PM
  4. Weighted Average Calculation
    By maxhecht2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2017, 11:56 AM
  5. weighted average % calculation in pivot table
    By maymano in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-28-2013, 10:33 PM
  6. Calculation weighted average of Percent Change
    By bml63 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-24-2013, 11:34 AM
  7. weighted average calculation in pivot table
    By carlossaltz in forum Excel General
    Replies: 0
    Last Post: 06-06-2008, 08:13 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