udprocks Member Jan 10, 2015 #1 Dear All, Can Anyone please help me with this, I want sum of days as per value define. Thanks in Advance. Attachments test.xlsx 9.2 KB · Views: 7
Dear All, Can Anyone please help me with this, I want sum of days as per value define. Thanks in Advance.
Khalid NGO Excel Ninja Jan 10, 2015 #2 Hi Jitendra, Good day. Can you confirm this: =SUMPRODUCT(COUNTIF(D2:D19,"P")+COUNTIF(D2:D19,"Leave")) Regards,
Hi Jitendra, Good day. Can you confirm this: =SUMPRODUCT(COUNTIF(D2:D19,"P")+COUNTIF(D2:D19,"Leave")) Regards,
Khalid NGO Excel Ninja Jan 10, 2015 #3 Edit: Just realized Half day requirement instead of leave: =SUMPRODUCT((D2:D19="P")+((D2:D19="H")/2)) Last edited: Jan 10, 2015
Edit: Just realized Half day requirement instead of leave: =SUMPRODUCT((D2:D19="P")+((D2:D19="H")/2))
Debraj Excel Ninja Jan 10, 2015 #4 if you can sort the table.. then it will be much easier to sum.. like this. =SUMPRODUCT(LOOKUP(D2:D19,A2:B6))
if you can sort the table.. then it will be much easier to sum.. like this. =SUMPRODUCT(LOOKUP(D2:D19,A2:B6))
Somendra Misra Excel Ninja Jan 10, 2015 #5 Hi Jitendra, Try below formula: =SUMPRODUCT(COUNTIF(D2:D19,A2:A6),B2:B6) Regards,
udprocks Member Jan 10, 2015 #6 Hallo Khalid & Debraj sir, Thank you for your quick support... both formulas are brilliant for me... But as sweet and short way "Debraj" sir yes i can short that table no worries,.. Many thanks''' sir's.
Hallo Khalid & Debraj sir, Thank you for your quick support... both formulas are brilliant for me... But as sweet and short way "Debraj" sir yes i can short that table no worries,.. Many thanks''' sir's.
udprocks Member Jan 10, 2015 #7 Somendra Misra said: Hi Jitendra, Try below formula: =SUMPRODUCT(COUNTIF(D2:D19,A2:A6),B2:B6) Regards, Click to expand... Nice one again. thank you somendra sir.
Somendra Misra said: Hi Jitendra, Try below formula: =SUMPRODUCT(COUNTIF(D2:D19,A2:A6),B2:B6) Regards, Click to expand... Nice one again. thank you somendra sir.