+ Reply to Thread
Results 1 to 2 of 2

formulas to add cells based on multiple conditions

  1. #1
    Registered User
    Join Date
    01-07-2020
    Location
    Missouri, United States
    MS-Off Ver
    2016
    Posts
    1

    Question formulas to add cells based on multiple conditions

    I am looking to automate some addition formulas. I have a table created already, with the first column being "area ID", and 4 columns with other values that correspond to each area ID. In the table to the right, I would like to manually list the IDs to be used. Then have formulas automate the math to add up the corresponding cells.

    In the example attached, the first combination of IDs is listed in column J. Below that, I have added up the cells for each category that correspond with the IDs included. Then in column K, the same situation, but a new set of IDs. I could have up to 100 combinations of area IDs, so if there is a way to automate this, that would be amazing.

    Thank you!

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: formulas to add cells based on multiple conditions

    Hello,
    You are going to want to use a sumproduct formula. in J15 of your example paste this formula:
    =SUMPRODUCT(--ISNUMBER(MATCH($B$4:$B$68,J$5:J$13,0)),$D$4:$D$68)

    You can drag this formula over to column K and it will give you desired results as well.
    Now for the 10 yr 25yr and 100yr just drag the formula down but change the reference in red above to the correct column.

    ayou can also change the reference areas for where you are manually entering data so that it includes 100 blank rows if you want, that way you dont need to update your formula depending on how many manually entries are entered.
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

+ 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. Replies: 0
    Last Post: 05-26-2016, 05:54 AM
  2. [SOLVED] Count unique cells based on multiple conditions
    By Sladamuss in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2016, 05:52 AM
  3. [SOLVED] Count unique cells based on multiple conditions
    By Sladamuss in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-04-2016, 09:23 AM
  4. [SOLVED] Summing values in cells based on multiple conditions
    By OregonSenior in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2014, 06:58 PM
  5. [SOLVED] Dynamic Count and Sum Array Formulas Based on Multiple Conditions
    By 5150 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-27-2014, 04:35 PM
  6. Combine text from multiple cells, Based on conditions
    By dark_horizon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2012, 11:07 AM

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