=Sum([Total])

Fitz

New Member
Joined
May 29, 2003
Messages
25
I have daily hours on different equipment, I seperate them by Equipment name. I sum the hours of each =Sum([Totall Hours]). Depending on the amount of hours used I want to apply the following formula:
=Sum(IIf([Total Hours]<=26.4,[Total Hours]*[Daily]/8,IIf([Total Hours]<=40,[Daily]*4,IIf([Total Hours]<=119,[Total Hours]*[Weekly]/40,IIf([Total Hours]<=176,[Monthly],IIf([Total Hours]>=177,[Total Hours]*[Monthly]/176))))))

This formula works for daily, but not for =Sum([Total Hours])

No Luck
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I think you'll have to create a query off the query you already have to sum the "Total Hours".
 
Upvote 0
Parra:
Thanks for your reply. I'am Not sure how I would apply Query Query.
This is what I have.

Date TotallHours Daily Weekly Monthly TotalCost
3/6/03 8 50 150 450
3/7/03 8 50 150 450
3/8/03 8 50 150 450
3/9/03 8 50 150 450
3/9/03 8 50 150 450
---------------------------------------------------------------
56 ??????
---------------------------------------------------------------
When the =Sum([TotalHours]) meet a certain amount the IIf formula will do it's thing.

Thanks

Fitz
 
Upvote 0

Forum statistics

Threads
1,221,530
Messages
6,160,351
Members
451,639
Latest member
Kramb

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