+ Reply to Thread
Results 1 to 2 of 2

adding values from multiple rows

  1. #1
    Registered User
    Join Date
    08-17-2017
    Location
    Newport, Wales
    MS-Off Ver
    2007
    Posts
    3

    adding values from multiple rows

    hi, i have a spreadsheet which lists drivers and the values that they have earned
    there are 10+ drivers all on different rows. their name is in one column and the value is in another column. their names are not always in the consecutive rows.

    how on earth do I create a table at the bottom of the sheet totalling the drivers individual totals as I input their details?

    help!

    Thanks
    Jo

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: adding values from multiple rows

    From your description (and I hope I understand your request), this could be done using Index Match and SUMPRODUCT

    1. In another column (say D2), gather the unique drivers name: =IFERROR(INDEX($A$2:$A$101,MATCH(0,COUNTIF($D$1:D1,$A$2:$A$101),0)),"")
    • This is an array formula, so you will have to simultaneously press the SHIFT+CTRL+ENTER keys
    • Drag formula down until you receive a blank field


    2. In another column (Say E2), use SUMPRODUCT to total the earnings for each driver: =SUMPRODUCT(--($A$2:$A$101=D2),$B$2:$B$101)
    • This is NOT an array formula, so just press the ENTER key
    • Drag formula down until you receive a blank field

    See attachment
    Attached Files Attached Files

+ 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. Code adding rows to multiple tables in multiple worksheets
    By gabriel78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2017, 05:26 AM
  2. Replies: 6
    Last Post: 08-19-2015, 07:46 PM
  3. Adding rows to multiple sheets when adding new item using DataForm
    By pandora1a2b in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2014, 01:00 PM
  4. Look up Single list value & Return multiple corresponding values While Adding New Rows
    By fahadahmad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2014, 03:40 PM
  5. adding of cell values to corresponding rows values
    By raj10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-01-2013, 07:05 AM
  6. Replies: 4
    Last Post: 06-28-2012, 07:08 AM
  7. Adding values in rows
    By kktk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2007, 06:39 PM

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