+ Reply to Thread
Results 1 to 10 of 10

Help with two Criterias Formula

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 365
    Posts
    105

    Help with two Criterias Formula

    Hello All,

    I've been trying to perform a productivity report but I have problem with a formula that has to verify the date as the first criteria.

    This is the story, I receive a weekly report from 20 workers with the following informationis in the general table in the attached excel file)
    1- Data
    2-Initials
    3-Data
    4-total Field
    5-Total time

    Then I have to summirize it which was easy to do but also want to be able to do it by day of the week starting from Wednsday to Monday, I can't find a formula that work.

    Can any one take a look at this and help me or point me to the right direccion?

    I really appreciate any help
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Help with two Criterias Formula

    hi odoualex. correct the spelling in E4 to "Wednesday". then try:
    =SUMPRODUCT(--(TEXT($A$17:$A$100,"dddd")=E4))

    for number of fields:
    =SUMPRODUCT(--(TEXT($A$17:$A$100,"dddd")=E4),$D$17:$D$100)

    Total number of "1" records
    =SUMPRODUCT(--(TEXT($A$17:$A$100,"dddd")=E4),--($C$17:$C$100=1))

    Total time:
    =SUMPRODUCT(--(TEXT($A$17:$A$100,"dddd")=E4),$E$17:$E$100)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Help with two Criterias Formula

    Hi,

    See the attached file.

    E5: =COUNTIF($F$16:$F$78,E$4)
    E6: =SUMIF($F$16:$F$78,E$4,$D$16:$D$78)
    E7: =COUNTIFS($C$17:$C$78,"1",$F$17:$F$78,E$4)
    E8: =COUNTIFS($C$17:$C$78,"2",$F$17:$F$78,E$4)
    E9: =COUNTIFS($C$17:$C$78,"3",$F$17:$F$78,E$4)
    E10: =COUNTIFS($C$17:$C$78,"4",$F$17:$F$78,E$4)
    E11: =SUMIF($F$16:$F$78,E$4,$E$16:$E$78)
    E12: =AVERAGE(E11/E5)
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    03-14-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Help with two Criterias Formula

    Hello Benishiryo,

    Thank you very much for the spelling error, is better you pointing it out than my boss she will be
    Thank you for the formulas and the time you spend on it, your response were very quick and i really appreciate it, only tha the function for the total time return zero, if you can take a look at that?
    But again thank you very much.

    Sincerely,

    Alex

  5. #5
    Forum Contributor
    Join Date
    03-14-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Help with two Criterias Formula

    Hello, Cbatrody,

    Thank you for your quick response and the time helping me, only one question, the columm you add with the day of the week, do i need to add it to the other reports, I don't have it in the report I get from the employee but its no bad to have it if it can be done automatically which i might be able to do.

    Thanks again, but solutions work beautifull yours and the one from Benishiryo, sure my boss will thank you too, I hope

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Help with two Criterias Formula

    Hi Alex,

    Yes and there is formula to convert the date into Days in text format.

  7. #7
    Forum Contributor
    Join Date
    03-14-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Help with two Criterias Formula

    Hi Cbarody,

    Great, I can do that using a macro.

    Thanks again.

    Respectfully,

    Alex

  8. #8
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Help with two Criterias Formula

    Quote Originally Posted by odoualex View Post
    Hello Benishiryo,

    Thank you very much for the spelling error, is better you pointing it out than my boss she will be
    Thank you for the formulas and the time you spend on it, your response were very quick and i really appreciate it, only tha the function for the total time return zero, if you can take a look at that?
    But again thank you very much.

    Sincerely,

    Alex
    for the total time, you have to format your cells like you did for D11. custom -> [h]:mm
    hope that helps.
    =)

  9. #9
    Forum Contributor
    Join Date
    03-14-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Help with two Criterias Formula

    Hello Benishiryo,

    Yes, that was the problem.

    thank you very much!

    Respectfully,

    Alex

  10. #10
    Forum Contributor
    Join Date
    03-14-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Help with two Criterias Formula

    Hello Moderator,

    I'm back with one more problem with the same workbook, i don't know if I can post in this one which is mark as solved or I have to create a new one. please advice.

    Respectuflly,

    Alex

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. One Formula Searching for 2 Criterias
    By juicypeanut in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2015, 12:54 AM
  2. [SOLVED] Match formula with different criterias
    By pezalmendra in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2013, 05:05 PM
  3. [SOLVED] Countif formula with two criterias
    By masben in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2013, 03:21 AM
  4. Formula with two/three criterias
    By angie.chang in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-28-2012, 05:02 AM
  5. Formula to sum a range if two criterias met
    By paulponnion in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-19-2009, 03:49 AM
  6. IF and MAX in one formula but two criterias
    By Enviro1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2006, 10:59 AM
  7. [SOLVED] Formula requiring two different criterias
    By MJMP in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-01-2005, 07:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1