IF Statement Or Select Case Help Please

bloodmilksky

Board Regular
Joined
Feb 3, 2016
Messages
202
Good Morning Guys, I hope you are all well.

I am just in the process of setting up a new part time employee on a Holiday Spreadsheet I have made which uses NETWORKDAYS to determine the amount of holiday the user is after.

So when the User selects for example 12.04.17-13.04.17 that would be 2 work days.

This would then book these dates on the calendar and using a simple sum takes this of their total days.

However with this new user her full days are as follows

  • Monday 6.75hrs
  • Tuesday 6.75hrs
  • Wednesday 6.50hrs
  • Thursday 5.00
  • Friday 5.00

What I wanted to know was if there is anyway of amending the below to show that IF "Jane Doe" appears in cell B7 then the value of one day changes depending on the day that she requests or that if "Jane Doe" Requests a Whole Week it would only come to 30hrs

=IF(OR(D21="AM",D21="PM"),NETWORKDAYS(B21,C21)/2,NETWORKDAYS(B21,C21))

Or if anyone knows how I could set up a select case to reflect the same thing.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
You could probably use a lookup if the name is Jane Doe.

=if(B7="Jane Doe",lookup,IF(OR(D21="AM",D21="PM"),NETWORKDAYS(B21,C21)/2,NETWORKDAYS(B21,C21)))
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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