+ Reply to Thread
Results 1 to 5 of 5

Trying to sum non-contiguous cells based on criteria in another row.

  1. #1
    Registered User
    Join Date
    05-17-2024
    Location
    Missouri US
    MS-Off Ver
    LTSC Standard 2021
    Posts
    3

    Trying to sum non-contiguous cells based on criteria in another row.

    I download a database from an LMS where the courses are organized alphabetically and as a result are randomized from three different levels (tiers) of completion. I am trying to find a way to automatically populate the "hours completed" cells for each level; I can get the total number of classes completed and the total number of hours completed just fine, but this last formula is stumping me.
    Attached Files Attached Files

  2. #2
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,453

    Re: Trying to sum non-contiguous cells based on criteria in another row.

    Welcome to the forum.

    To count the dates:

    =SUMPRODUCT(($B3:$X3<>"")*(LEFT($B$1:$X$1,7)="Level 1"))

    To sum the hours:

    =SUMPRODUCT(($B3:$X3<>"")*(LEFT($B$1:$X$1,7)="Level 1")*$B$2:$X$2)
    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.

  3. #3
    Registered User
    Join Date
    05-17-2024
    Location
    Missouri US
    MS-Off Ver
    LTSC Standard 2021
    Posts
    3

    Re: Trying to sum non-contiguous cells based on criteria in another row.

    Thank you for your quick reply; that works exactly as I needed!

    But unfortunately I was unintentionally misleading for simplicity's sake. The courses themselves in real life don't actually have the words "Level 1/2/3" in the titles. They all have different random names. How could I do the same thing when I can't search for specific language?

    My fault for not being clearer.

  4. #4
    Registered User
    Join Date
    05-17-2024
    Location
    Missouri US
    MS-Off Ver
    LTSC Standard 2021
    Posts
    3

    Re: Trying to sum non-contiguous cells based on criteria in another row.

    Nevermind; I don't know what I was thinking. I can rename the courses in my master copy (I just paste the updated data).

    Thank you so much for your help!

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Trying to sum non-contiguous cells based on criteria in another row.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon (Next to Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Dave

+ 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. [SOLVED] Creating An Array Based on Conditions from a Non-Contiguous Cells which are Sheet Names
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-29-2023, 08:47 AM
  2. [SOLVED] Counting values matching multiple criteria in non-contiguous set of cells
    By gdunmore2765 in forum Excel General
    Replies: 9
    Last Post: 09-27-2022, 09:10 AM
  3. Calculating XIRR on Non-Contiguous Rows and Columns based on Criteria
    By e4excel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-22-2021, 09:56 AM
  4. Sum non contiguous cells based on criteria
    By mariec_06 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-02-2018, 06:30 AM
  5. [SOLVED] Macro to select non-contiguous union of cells based on values in other column
    By gutkinma in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2014, 07:41 AM
  6. [SOLVED] copy and paste from contiguous cells to non-contiguous cells using the = function
    By shameus in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2013, 06:48 PM
  7. [SOLVED] How to sum non-contiguous columns applied as a formula on contiguous cells
    By figo12 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2013, 01:07 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