+ Reply to Thread
Results 1 to 5 of 5

Getting a Sum in 1 Column Based on Criteria from 2 other columns.

  1. #1
    Registered User
    Join Date
    10-01-2008
    Location
    Bowie
    Posts
    13

    Getting a Sum in 1 Column Based on Criteria from 2 other columns.

    I have a spreadsheet with 5 columns

    Training Type Title Requirement Points Notes


    I would like to create a formula that calculates how many points a person with a particular employee title could accumulate if they took the courses that contained the words: Suggested and Required in the column: Requirement. (i.e., how many points could a Superintendent get if he took all the courses that were either required of his title or suggested for his title). I have enclosed a copy of my worksheet).
    Attached Files Attached Files
    Last edited by tkaye; 10-09-2008 at 03:29 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =SUMPRODUCT((B2:B260="SUPERINTENDENT")*(C2:C260={"Suggested","Required"})*(D2:D260))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    10-01-2008
    Location
    Bowie
    Posts
    13

    SumProduct

    It worked, but I had to expand on it just a little to capture all my requireds and suggesteds. Is there a way to throw a wildcard in there?

    =SUMPRODUCT((B2:B260="SUPERINTENDENT")*(C2:C260={"REQUIRED","SUGGESTED","SUGGESTED (IF ON MD JOB)","SUGGESTED (IF ON VA JOB)","REQUIRED (IF ON VA JOB)","REQUIRED (IF ON MD JOB)","REQUIRED IF NEW"})*(D2:D260))

    tkaye

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =SUMPRODUCT((B2:B260="SUPERINTENDENT")*(ISNUMBER(SEARCH({"Suggested","Required"},C2:C260))*(D2:D260)))
    VBA Noob

  5. #5
    Registered User
    Join Date
    10-01-2008
    Location
    Bowie
    Posts
    13

    SumProduct

    Yup that worked! Thank you so much for the fast assistance!!

+ 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. Merge Columns B,C,D,E and F, If duplicates exist in Column A
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 84
    Last Post: 03-25-2014, 03:37 PM
  2. Assigning Multiple Rankings to Data based on different columns
    By Mike610 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2008, 07:43 PM
  3. Sum columns based on 3 criteria, where the column summed is dynamic!
    By bdance in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2007, 03:22 AM
  4. Adding up a column based on Criteria
    By halvy52 in forum Excel General
    Replies: 2
    Last Post: 07-27-2007, 06:12 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