COUNTIF function

Nunung

New Member
Joined
Mar 23, 2018
Messages
1
Dear Mr.Excel,

kindly need your advice how is formula to COUNTIF function ? if I would like to :
1. I have data regarding annual leave monitoring for staff of company which there is a regulation internally that the staff could take annual leave for 1 day and half day. for half day leave will count 0.5 only and 1 day leave will count 1 (day ). For the abbreviation for 1 day leave is AL, for half day leave is HL.
I made a formula for 1 day leave with : COUNTIF(D1:D10,"AL"), for this formula was worked count 1 . How is the formula "COUNTIF" if I need the data count 0.5 day only for half day annual leave ?


thanks in advance for your kind support

regards,
NN
 

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.
Welcome to the MrExcel board!

Is this what you mean? If not please give a few sets of sample data and expected results.

=COUNTIF(D1:D10,"AL")+COUNTIF(D1:D10,"HL")/2
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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