Consulting

Results 1 to 8 of 8

Thread: Sum on the basis of mutiple criteria

  1. #1
    VBAX Contributor
    Joined
    Jul 2017
    Posts
    110
    Location

    Sum on the basis of mutiple criteria

    Hi,

    i am looking forsum of Jano the basisof mutiple creteria and nmbers should update as and when we change month.

    Details are given in sheet attached.

    Thanks
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    This works for me

    =SUMPRODUCT(($G$7:$G$18=$G22)*($H$7:$H$18=$H22)*(ISNUMBER(MATCH($I$7:$I$18,$I22:$I24,0)))*($K$7:$K$18=J$21)*$L$7:$L$18)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    Jul 2017
    Posts
    110
    Location
    Thanks but that will not solve my problem.

    Right now my month is Jan in J21 but next month march dat will get updated then ...J21 will be feb and K21 will be Mar'18.

    Please assist

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Well, as I said it works for me on your workbook, even when I update the date in the base cells.

    Why doesn't it work for you?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Contributor
    Joined
    Jul 2017
    Posts
    110
    Location
    Yes....but i guess we link J21 n K 21 to B6 n C6 and then go for if condition it will make work....so formula will looks like it is in sheet attached.
    Attached Files Attached Files

  6. #6
    VBAX Contributor
    Joined
    Jul 2017
    Posts
    110
    Location
    Thanks for looking at it...

  7. #7
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Not sure what you were saying there, so are you happy with the solution now?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  8. #8
    VBAX Contributor
    Joined
    Jul 2017
    Posts
    110
    Location
    Yes thank you...

Posting Permissions

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