IF, THEN Formula?

Adas

New Member
Joined
Jun 16, 2011
Messages
15
I'm kinda stuck.



I have created a chart where I have hours posted for each employee per day. I have created another chart where it calculates total amount of hours worked each day for the whole week. What I'm trying to do next is:

If the total hours for the day = to 8.5 somehow I need to subtract .5(lunch) from that total before I total all the days worked for that given week.

Any ideas?:eeek:
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I have hound a solution.

I have created another chart and pluged in a formula function under "Insert" and selected function/IF. I just wish that there would be an easier way to do the whole chart that to type it this formula to all 210 cells.
 
Upvote 0
When you say "chart" are you meaning "table"? When I (and I think most others) hear "chart" we think of a graphical representation of data.

If that is the case, then you can use the following formula:

=SUM(E7:H7)-COUNTIF(E7:H7,">="&8.5)*0.5

If i'm way off, then disregard. :)
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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