+ Reply to Thread
Results 1 to 3 of 3

Summing Multiple Rows with Criterion

  1. #1
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Summing Multiple Rows with Criterion

    I'm looking for another push in the right direction, please!

    I have two tables in columns B to K and M to P:

    Excel 2016 (Windows) 32 bit
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    3
    Department Staff
    KS3
    KS4
    KS5
    Games
    Compass
    RHS+
    EPQ
    Other
    Staff
    Total
    Allocation
    +/-
    4
    MFL AGW
    10
    7
    6
    6
    AGW
    29
    31
    5
    JER
    6
    NJM
    7
    RGE
    8
    AGW
    1
    9
    SMG
    10
    MCJ
    11
    TP
    12
    FLA Fr
    13
    FLA Gm
    14
    FLA Sp
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    N
    4
    =SUM(VLOOKUP(M4, $C$4:$K$14, {2,3,4,5,6,7,8,9}, FALSE))
    Sheet: Sheet1

    I had hoped that the formula in N4 would allow me to sum any row where my initials (AGW) occur in column C, but it doesn't work as I had hoped. The correct answer in N4 is 30, but it's returning 29, so it's only summing the first row where my initials occur. Could some kind soul tell me what to tweak to make it do what I'd like it to?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Summing Multiple Rows with Criterion

    Try:

    =SUMPRODUCT(($B$3:$B$13=L3)*$C$3:$J$13)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Summing Multiple Rows with Criterion

    That's the one, Glenn - thanks!

+ 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. Auto Filter to delete Rows on Multiple criterion
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2015, 01:55 PM
  2. Merging multiple rows to one row and summing the variables
    By dhobbs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2013, 05:47 PM
  3. Summing Amounts from Multiple Rows
    By Valmanway in forum Excel General
    Replies: 5
    Last Post: 06-25-2009, 04:34 AM
  4. Summing multiple rows using logic??
    By manzano16 in forum Excel General
    Replies: 6
    Last Post: 02-04-2009, 02:04 PM
  5. Deleting Rows NOT EQUAL to multiple criterion
    By ballgameaddict in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-29-2008, 02:25 PM
  6. [SOLVED] Summing Rows with Multiple Criteria
    By Reggie Mitchell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2005, 03:29 AM
  7. [SOLVED] summing multiple rows with like references
    By cardinalred in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2005, 09:06 AM

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