+ Reply to Thread
Results 1 to 5 of 5

How to solve SUM with several requirements

  1. #1
    Registered User
    Join Date
    11-27-2023
    Location
    Zug, Switzerland
    MS-Off Ver
    Microsoft 365
    Posts
    2

    How to solve SUM with several requirements

    Hi everyone,

    I'm stuck with following issue:

    In Cells B9 to B15, I have a list of "Training functions". On the second worksheet, I have a reference table with the training requirements. So for example if someone need the function "ELW 2 Drone", he needs to attend 6 lessons "ELW 2" and 6 lessons "Drone". Someone else requiring "ELW Drone" (without the "2") only needs to attend 5 drone lessons according to the table.

    Now I'd like to have an overview in Cells A2 to A4 on the total amount of lessons needed for the specific requirement.

    Let's say I have 3 guys aspiring for "ELW 2 Drone" and 1 guy for "ELW Drone", I should have the total amount of lessons in Cell B2 for the Drone (e.g. 3x 6 lessons + 1x 5 lessons = 23) and the total amount of "ELW 2" lessons in Cell B4 (3x 6 lessons = 18).

    I startet trying with =IF(COUNTIF(B$9:B$15;"*Drone*");COUNTIF(B$9:B$15;"*Drone*");"") but then got stuck referencing to the amount of lessons in the second worksheet's reference table. In addition, this way I need to manually update the search terms.

    Every help is highly appreciated!
    Attached Files Attached Files
    Last edited by Roman1994; 11-27-2023 at 11:33 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to solve SUM with several requirements

    Is the range B3:D5 expected results? and those formulas did not work?
    Try to manual input the expected outcome, not formulas that did not work.
    Quang PT

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

    Re: How to solve SUM with several requirements

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

  4. #4
    Registered User
    Join Date
    11-27-2023
    Location
    Zug, Switzerland
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: How to solve SUM with several requirements

    Yes, the results should be in B3:D5. I updated the attached file with the expected results.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to solve SUM with several requirements

    Are you open for an UDF solution (User define formula, using VBA)?

+ 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] the way we solve Solve equation. Can Excel solve this?
    By tta.akmal in forum Excel General
    Replies: 3
    Last Post: 08-10-2020, 07:49 AM
  2. Training requirements
    By sentinela in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2020, 11:30 AM
  3. How to extract requirements from QC using VBA?
    By vijayabhaarathy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2014, 03:36 AM
  4. [SOLVED] IF Statment with 2 requirements
    By mjfox52610 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-20-2013, 02:55 AM
  5. LOOKUP with AND requirements
    By m1chaelewins in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-26-2010, 06:53 PM
  6. [SOLVED] MVP Prerequisites/requirements
    By roadkill in forum Excel General
    Replies: 4
    Last Post: 04-04-2006, 02:40 PM
  7. [SOLVED] Name Range with three requirements
    By Carole O in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2005, 04:06 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