Consulting

Results 1 to 3 of 3

Thread: Sumif multiple criteria

  1. #1
    VBAX Regular
    Joined
    Jul 2019
    Posts
    36
    Location

    Sumif multiple criteria

    =SUM(SUMIF(B:B, {233,263,273,323,332,58,"XX","RR","EE","CC","6Y","KA"},D: D ))

    Can put the bits in curly brackets into a cell where it can be maintained by the user?, instead of hard coding it in here?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You could put the values in separate cells, say M1, M2, …, and use

    =SUM(SUMIF(B:B, OFFSET(M1,0,0,COUNTA(M:M)),D:D ))
    ____________________________________________
    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 Regular
    Joined
    Jul 2019
    Posts
    36
    Location
    thanks xld

Tags for this Thread

Posting Permissions

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