+ Reply to Thread
Results 1 to 6 of 6

How to calculate lamps per fixture based on lamp type & lamps per fixture?

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    Brampton, ON
    MS-Off Ver
    Excel 2016
    Posts
    135

    Question How to calculate lamps per fixture based on lamp type & lamps per fixture?

    MATH PROBLEM:

    I have 1000 light bulbs.

    I need to put all of them into light fixtures that hold the following number of lights:
    8 lights per fixture
    4 lights per fixture
    2 lights per fixture
    1 light per fixture

    I need to know how to allot the lights to the fixtures when:
    60% of the fixtures are 8-lights
    14% of the fixtures are 4-lights
    14% of the fixtures are 2-lights
    12% of the fixtures are 1-light

    I cannot wrap my mind around how to write a formula to accomplish this. I will be using this formula on a list of 40 different light bulb totals. Example: "John has 1000 lights, Mary has 3115 lights, Jimmy has 5900 lights, how many fixtures of each type will they each end up with?"

    Here's a file that may help:
    FORUMLA FOR LAMPS PER FIXTURE.xlsx
    Last edited by Sandcastle; 04-27-2015 at 03:07 PM. Reason: Thread Title Sucked

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to calculate lamps per fixture based on lamp type & lamps per fixture?

    Here is a solution but your percentages do not yield a whole number of any type of fixture. How do you want to resolve that?


    P.S. I see that you have commented that your thread title was "not perfect"; to be clear, it gave no insight at all to your question and that's why I flagged it.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    Brampton, ON
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: How to calculate lamps per fixture based on lamp type & lamps per fixture?

    I'm somewhat amazed that you've found a solution, this is great!
    The decimals will be rounded.

  4. #4
    Registered User
    Join Date
    05-23-2013
    Location
    Brampton, ON
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: How to calculate lamps per fixture based on lamp type & lamps per fixture?

    Here's the solution that you provided, with edits to the formula to become named ranges.
    FORUMLA FOR LAMPS PER FIXTURE SOLUTION.xlsx
    Thanks for the fix!

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to calculate lamps per fixture based on lamp type & lamps per fixture?

    This version rounds each number of fixtures to a whole number and then uses the 1-lamp fixtures to resolve the rounding errors.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-23-2013
    Location
    Brampton, ON
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: How to calculate lamps per fixture based on lamp type & lamps per fixture?

    SWEET!
    Thanks

+ 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: 11
    Last Post: 06-06-2014, 03:34 PM
  2. 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

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