Programming Excel Spreadsheet for Hours Determination

cgmacias1

New Member
Joined
Sep 22, 2011
Messages
3
Thanks all for looking at this post. Here is my dilemma:

I'm trying to calculate Work Hours from Total Cost using base Rates.

$ 13,450 = $125(x) + $80(y) + $145(z)

x = should be between 4 hours and 50 hours
y = should be between 10 hours and 200 hours
z = should be between 10 hours and 200 hours

So if I enter in $ 13,450, the final result should look like this:

$ 13,450
= $125(10) + $80(80) + $145(40)

IS THERE A WAY TO DO THIS IN EXCEL??
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to the board.

Why that particular solution among many others, e.g.,

= $125(10) + $80(51) + $145(56)
 
Upvote 0
Thanks for responding....

Actually the combinations can vary, I just chose these particular numbers because they were at arms length.:)

As long x, y, and z are whole numbers and not decimals
 
Upvote 0
You could use Solver.

Enter random values for x, y, and z in A1:C1. In D1,

=SUMPRODUCT(A1:C1, {125,80,145})

Data > Solver, set D1 = Value of: 13450 By Changing Cells: A1:C1, subject to the constraints

A1:C1 = integer
A1 <= 10
A1 >= 4
B1:C1 <= 200
B1:C1 >= 10

 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top