+ Reply to Thread
Results 1 to 7 of 7

Adding cells related to search criteria

  1. #1
    Registered User
    Join Date
    10-11-2007
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2302 Build 16.0.16130.20806) 64-bit
    Posts
    27

    Adding cells related to search criteria

    In Column T, I would like to search for each team listed in Column S. The search field is K2:O743. When the search criteria is found I would then like to sum what is found in column L.

    For instance Arkansas is found in cells K3, K145 and K215. Arkansas’ win totals are found in cells L3, L145 and L215.

    So, I would like for the formula to find the Arkansas search criteria and then sum the 3 cells in column L and place it in cell T8 beside Arkansas.

    Thank you in advance,

    Greg
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Adding cells related to search criteria

    You can use this in cell T8 for Arkansas:

    =SUMIFS(L:L,$K:$K,$S8)

    and copy it across into U8:V8 if you also want the totals for Lost and Tied. You can also copy the 3 formulae up and down if you want to complete the table for the other teams.

    Hope this helps.

    Pete

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,454

    Re: Adding cells related to search criteria

    If you have upgraded to 365 or 2021, try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Adding cells related to search criteria

    Please try in T2 and copy to the right and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-11-2007
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2302 Build 16.0.16130.20806) 64-bit
    Posts
    27

    Re: Adding cells related to search criteria

    This function works but there is also data in columns O, P, Q and R

  6. #6
    Registered User
    Join Date
    10-11-2007
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2302 Build 16.0.16130.20806) 64-bit
    Posts
    27

    Re: Adding cells related to search criteria

    Quote Originally Posted by Pete_UK View Post
    You can use this in cell T8 for Arkansas:

    =SUMIFS(L:L,$K:$K,$S8)

    and copy it across into U8:V8 if you also want the totals for Lost and Tied. You can also copy the 3 formulae up and down if you want to complete the table for the other teams.

    Hope this helps.

    Pete
    This function works but there is also data in columns O, P, Q and R

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Adding cells related to search criteria

    Please try in T2 and copy to the right and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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. Searching related value based on search criteria list
    By marc.boom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-13-2019, 07:11 PM
  2. [SOLVED] Adding Wildcard to VBA Search Criteria to Produce a Message Box
    By katkth7533 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2015, 09:26 AM
  3. [SOLVED] Adding cell contents of related cells with criteria
    By Hellkeeper in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2012, 08:03 PM
  4. Replies: 1
    Last Post: 10-18-2012, 05:52 AM
  5. [SOLVED] Adding cells containing/related to certain text in different sheets
    By JackieChrist in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-27-2012, 11:49 AM
  6. [SOLVED] Adding cells containing/related to certain text
    By JackieChrist in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2012, 09:29 AM
  7. Replies: 3
    Last Post: 06-26-2012, 04:40 PM

Tags for this Thread

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