Max Sum Condition Formula

dfulm219

New Member
Joined
Mar 23, 2011
Messages
8
I have a range of cells that have numbers in them. When the range reaches a specific number, I need this formula to yield a specific value. When it reaches another maximum, I need it to yield a different specific formula.

For Example:

A1=8, A2=8, A3=8, A4=8, A5=8, A6=8, A7=8, etc.

I need a formula that serves the function of:

When the above cells reach 40, read "A" until it reaches 80 then read "B" until it reaches 120 then read "C" until it reaches 160, then read "D".

Does this make sense?
 
For what I'm using this for, the formula would never go past "D" because I will not have more than 4 shifts ever.

mail


This screen shot shows exactly what the formula that I need would yield in cells D12:J15.

As the "Maximum Weekly Hours" is met, the next letter in the sequence begins until that letter reaches the "Maximum Weekly Hours" and so forth and so on. Ideally, I could continue this formula out to a larger range of cells but for not, this would be sufficient.

Once "D" has met the "Maximum Weekly Hours", the series would start at the beginning again with "A".

Any thoughts? Is this even possible?
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I don't think it's quite right but see what this does.

=CHAR(65+(MOD(SUM(D11:J11),J3*4)/(J3+1)))
 
Upvote 0
Sorry, I can't see the picture you attached.
Click the link in my signature and install ExcelJeanie.
This is a much better way to show your sheet on the board.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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