+ Reply to Thread
Results 1 to 8 of 8

I am trying to write an array with multiple if conditions

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Arrow I am trying to write an array with multiple if conditions

    I have some data in an excel sheet with columns as date, total calls, total acd time and etc.,
    I need to calculate multiple things like the AHT of the whole month and AHT of a pirticular period of time also.
    I am trying to write the code as
    Please Login or Register  to view this content.
    It is not working at all. It says that there is an error. I dont know how to solve this. Please help.

    The formula what I need in the form of headdings is :
    (Total Hold time+Total ACW time+total ACD time)/Total ACD Calls. The problem is I dont want to take the avarage by calculating the details as individial and I want to use the above formula for a pirticular period only.

    I have to calculate it at a time and get the result datewise.
    I mean if i enter two dates it should give the required output for me.
    I am also attaching the file for reference.
    Please help....
    Last edited by kishoremcp; 01-25-2012 at 03:51 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: I am trying to write an array with multiple if conditions

    Hard to tell what you are really wanting.. . you have different range sizes, etc...

    Does this do it?

    =SUMPRODUCT(--(A2:A20000<=I11),C2:C20000+D2:D20000+E2:E20000)-SUMPRODUCT(--(A2:A20000<=I12),C2:C20000+D2:D20000+E2:E20000)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: I am trying to write an array with multiple if conditions

    I am sorry, It is not what I want. As I said I need to calculate (Total Hold time+Total ACW time+total ACD time)/Total ACD Calls for a pirticular range of dates. I hope I am clear now.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: I am trying to write an array with multiple if conditions

    Then:

    =SUMPRODUCT(--(A2:A20000>=I11),--(A2:A20000<=I12),C2:C20000+D2:D20000+E2:E20000)

  5. #5
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: I am trying to write an array with multiple if conditions

    Hi
    I am not well in excel2010 but i notice that there is missing inverted comma (") after <=.
    May this help
    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  6. #6
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: I am trying to write an array with multiple if conditions

    Duplicated

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: I am trying to write an array with multiple if conditions

    that is true, mahju, but SUMIFS, like SUMIF doesn't all range references like: c2:c147+d2:d147+E2:E147...

    you could add 3 SUMIFS together to get same result though:

    =SUMIFS(C2:C20000,A2:A20000">="&I11,A2:A20000,"<=&I12)+SUMIFS(D2:D20000,A2:A20000">="&I11,A2:A20000,"<="&I12)+SUMIFS(E2:E20000,A2:A20000">="&I11,A2:A20000,"<="&I12)

  8. #8
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: I am trying to write an array with multiple if conditions

    Quote Originally Posted by NBVC View Post
    that is true, mahju, but SUMIFS, like SUMIF doesn't all range references like: c2:c147+d2:d147+E2:E147...

    you could add 3 SUMIFS together to get same result though:

    =SUMIFS(C2:C20000,A2:A20000">="&I11,A2:A20000,"<=&I12)+SUMIFS(D2:D20000,A2:A20000">="&I11,A2:A20000,"<="&I12)+SUMIFS(E2:E20000,A2:A20000">="&I11,A2:A20000,"<="&I12)
    Thanks Sir
    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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