Calculating 0.5 leave days

SRoux

New Member
Joined
Jan 29, 2019
Messages
1
Hi,

I have created an annual leave calendar with drop down lists for each day making it possible to select the type of leave (annual leave (1day) and annual half day leave (0.5day), in a table below I have a summary where the annual leave for each month is added up, providing an annual total at the end with the amount of days available. I managed to let it autosum the annual leave days, but it calculates the half days as one whole day, how do I assign the value of 0.5 days to the annual half day leave when it is selected from the drop down list.

Regards,
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi, welcome to the forum!

It's not clear what gets selected from the dropdown but maybe you could adapt something like this.


Excel 2013/2016
ABC
11day3.5
20.5day
30.5day
41day
50.5day
Sheet1
Cell Formulas
RangeFormula
C1=SUMPRODUCT(COUNTIFS(A:A,{"1day","0.5day"}),{1,0.5})
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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