Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GCC GCC is offline
external usenet poster
 
Posts: 12
Default how do I add words, holiday =1, holiday am=0.5

I am trying to set up a holiday spreadsheet for work and I have got it so it
adds up all the words holiday to say how many days each employee has taken
but I need to to add up the holiday AM and holiday PM as 0.5. Does anyone
know the formula to do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default how do I add words, holiday =1, holiday am=0.5

=SUMPRODUCT(--((EXACT(E1:E20,"hAM"))+(EXACT(E1:E20,"hPM"))))*0.5 +COUNTIF(E1:E20,"h")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"GCC" wrote in message
...
I am trying to set up a holiday spreadsheet for work and I have got it so
it
adds up all the words holiday to say how many days each employee has taken
but I need to to add up the holiday AM and holiday PM as 0.5. Does anyone
know the formula to do this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default how do I add words, holiday =1, holiday am=0.5

GCC,

Try:

=COUNTA(G1:G10)-SUM(--(RIGHT(G1:G10,2)={"AM","PM"}))/2

Array entered with Ctrl + Shift Enter

or

=COUNTA(G1:G10)-SUMPRODUCT(--(RIGHT(G1:G10,2)={"AM","PM"})/2)

Entered normally

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"GCC" wrote in message
...
I am trying to set up a holiday spreadsheet for work and I have got it so
it
adds up all the words holiday to say how many days each employee has taken
but I need to to add up the holiday AM and holiday PM as 0.5. Does anyone
know the formula to do this?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Happy Holiday Rookie 1st class Excel Discussion (Misc queries) 0 December 19th 06 07:58 PM
Holiday Planner show holiday taken? Mac5 Excel Worksheet Functions 0 July 18th 06 11:29 PM
Holiday Dates Alpur Excel Worksheet Functions 3 November 16th 05 06:14 PM
Holiday Pay johnrann New Users to Excel 5 July 17th 05 02:33 PM
Holiday chart Edgar Thoemmes Excel Worksheet Functions 2 January 21st 05 12:47 PM


All times are GMT +1. The time now is 10:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"