Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How do I count the total of repeating day that staff abset on the following
month? example : From 1 to 30 of every month Mon Tue Wed Thu Fri Sat Sun Mon Tue We Thu Fri Sat Sun Mon & etc staff a 1 1 1 staff b 1 1 1 1 1 staff c 1 1 1 1 Result shall be at following: Mon Tues Wed Thu Fri Sat Sun Staff a 1 1 1 Staff b 1 2 1 What's your recommended formula to the above result? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
I put my result matrix at A13:H22 and assumed the data was in A1:AE11 Change your locations and ranges to suit in cell B14 enter =SUMPRODUCT(($A$3:$A$11=$A14)*(B$2:AF$2=B$13)*B3:A F3) copy across through C14:H14, then copy B14:H14 down -- Regards Roger Govier "chau" wrote in message ... How do I count the total of repeating day that staff abset on the following month? example : From 1 to 30 of every month Mon Tue Wed Thu Fri Sat Sun Mon Tue We Thu Fri Sat Sun Mon & etc staff a 1 1 1 staff b 1 1 1 1 1 staff c 1 1 1 1 Result shall be at following: Mon Tues Wed Thu Fri Sat Sun Staff a 1 1 1 Staff b 1 2 1 What's your recommended formula to the above result? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dear Roger,
Instead of using number to count of day, can I use text to represent the number of day absent Example : Abbreviation MC(1.0) - Medical Leave (one day) EL(1.0) - Emergency Leave (one day) ML (1.0)- Materity Leave (one day) Just like following Mon Tue Wed Thu Fri Sat Sun Mon Tue We Thu Fri Sat Sun Mon & etc staff a MC(1.0) MC(1.0) MC(1.0) staff b MC(1.0) MC(1.0) EL.0) staff c EL(1.0) EL(1.0) Then, result shall be same as following Mon Tues Wed Thu Fri Sat Sun Staff a 1 1 1 Staff b 1 2 1 "Roger Govier" wrote: Hi I put my result matrix at A13:H22 and assumed the data was in A1:AE11 Change your locations and ranges to suit in cell B14 enter =SUMPRODUCT(($A$3:$A$11=$A14)*(B$2:AF$2=B$13)*B3:A F3) copy across through C14:H14, then copy B14:H14 down -- Regards Roger Govier "chau" wrote in message ... How do I count the total of repeating day that staff abset on the following month? example : From 1 to 30 of every month Mon Tue Wed Thu Fri Sat Sun Mon Tue We Thu Fri Sat Sun Mon & etc staff a 1 1 1 staff b 1 1 1 1 1 staff c 1 1 1 1 Result shall be at following: Mon Tues Wed Thu Fri Sat Sun Staff a 1 1 1 Staff b 1 2 1 What's your recommended formula to the above result? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
Without distinguishing between the different types of leave, then =SUMPRODUCT(($A$3:$A$11=$A14)*(B$2:AF$2=B$13)*(B3: AF3<"")) -- Regards Roger Govier "chau" wrote in message ... Dear Roger, Instead of using number to count of day, can I use text to represent the number of day absent Example : Abbreviation MC(1.0) - Medical Leave (one day) EL(1.0) - Emergency Leave (one day) ML (1.0)- Materity Leave (one day) Just like following Mon Tue Wed Thu Fri Sat Sun Mon Tue We Thu Fri Sat Sun Mon & etc staff a MC(1.0) MC(1.0) MC(1.0) staff b MC(1.0) MC(1.0) EL.0) staff c EL(1.0) EL(1.0) Then, result shall be same as following Mon Tues Wed Thu Fri Sat Sun Staff a 1 1 1 Staff b 1 2 1 "Roger Govier" wrote: Hi I put my result matrix at A13:H22 and assumed the data was in A1:AE11 Change your locations and ranges to suit in cell B14 enter =SUMPRODUCT(($A$3:$A$11=$A14)*(B$2:AF$2=B$13)*B3:A F3) copy across through C14:H14, then copy B14:H14 down -- Regards Roger Govier "chau" wrote in message ... How do I count the total of repeating day that staff abset on the following month? example : From 1 to 30 of every month Mon Tue Wed Thu Fri Sat Sun Mon Tue We Thu Fri Sat Sun Mon & etc staff a 1 1 1 staff b 1 1 1 1 1 staff c 1 1 1 1 Result shall be at following: Mon Tues Wed Thu Fri Sat Sun Staff a 1 1 1 Staff b 1 2 1 What's your recommended formula to the above result? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Got it...thks a lot..
"chau" wrote: How do I count the total of repeating day that staff abset on the following month? example : From 1 to 30 of every month Mon Tue Wed Thu Fri Sat Sun Mon Tue We Thu Fri Sat Sun Mon & etc staff a 1 1 1 staff b 1 1 1 1 1 staff c 1 1 1 1 Result shall be at following: Mon Tues Wed Thu Fri Sat Sun Staff a 1 1 1 Staff b 1 2 1 What's your recommended formula to the above result? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
please help with dcounta | Excel Discussion (Misc queries) | |||
DCOUNTA question | Excel Worksheet Functions | |||
Formula in DCounta Criteria | Excel Worksheet Functions | |||
DCOUNTA & wildcards | Excel Discussion (Misc queries) | |||
Dcounta & dates | Excel Discussion (Misc queries) |