Results 1 to 5 of 5

Thread: SUMIF function depend on the cell value

  1. #1

    SUMIF function depend on the cell value



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi everyone, I have a problem with sumif function. I have a report sheet and I want to calculate Total of "Efavirenz 600mg" export from E8 cell value to G8 cell value (pls see the attack file)
    Attached Files Attached Files

  2. #2
    Super Moderator NBVC's Avatar
    Join Date
    May 2011
    Location
    Mississauga, Canada
    Posts
    1,437
    Articles
    0
    Excel Version
    Excel 2016
    If you sort the list in N1:N7 in ascending order, then you can use this formula:

    =SUMPRODUCT(SUMIF(INDIRECT("'"&INDEX($N$1:$N$7,MATCH($E$8,$N$1:$N$7,0)):INDEX($N$1:$N$7,MATCH($G$8,$N$1:$N$7,0))&"'!B:B"),$C15,INDIRECT("'"&INDEX($N$1:$N$7,MATCH($E$8,$N$1:$N$7,0)):INDEX($N$1:$N$7,MATCH($G$8,$N$1:$N$7,0))&"'!G:G")))


  3. #3
    perfect. Thank you so much.

  4. #4
    Hi Everyone,

    Continuing this topic, i don't know use VBA (see the attach file).
    Pls help me.
    Attached Files Attached Files

  5. #5
    Super Moderator NBVC's Avatar
    Join Date
    May 2011
    Location
    Mississauga, Canada
    Posts
    1,437
    Articles
    0
    Excel Version
    Excel 2016
    Please start a new thread with new questions. You can link to this thread if desired and if relevant.


Posting Permissions

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