+ Reply to Thread
Results 1 to 3 of 3

if multiple conditions are met, perform sum function using index function

  1. #1
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    111

    if multiple conditions are met, perform sum function using index function

    I am using 2 separate work books (but I'll simulate using 2 worksheets within the same workbook) in which I am trying to list a result in a worksheet in one workbook if multiple conditions are met in another worksheet within a 2nd workbook. In my attachment, I am wanting the result to be listed on the "result tab" in E15(I have what the result should be in E15 on that tab).

    The formula would be: sum (the corresponding value in the column named time*D9/ the corresponding value in column named %) if the text "Blue1" is in the color column and the text "Pear" is in the fruit column and the text "C" is in the lane column)...in this example if the conditions are met it would sum(G14*D9/H14)...if the text "Blue1" is in the color column and the text "Pear" is in the fruit column and the text "C" is in the lane column) the result would = sum(G15*D9/H15).

    I've tried using a SUM(SUMIF formula but need to incorporate a INDEX function also (I think)...not sure how to make it work.

    Thanks for any advice.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: if multiple conditions are met, perform sum function using index function

    Based on your sample sheet,

    =SUMIFS($G$8:$G$17,$J$8:$J$17,"Blue1",$F$8:$F$17,"C",$I$8:$I$17,"Pear")*$D$9/SUMIFS($H$8:$H$17,$J$8:$J$17,"Blue1",$F$8:$F$17,"C",$I$8:$I$17,"Pear")

    This should be enough to get you started.

  3. #3
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    111

    Re: if multiple conditions are met, perform sum function using index function

    Thanks, that worked.

+ 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: 4
    Last Post: 04-20-2016, 02:05 PM
  2. Index match with multiple conditions and nearest function
    By Suzann in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 04-05-2016, 04:16 AM
  3. [SOLVED] VBA to perform an index/match function to retrieve data
    By mji006 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-07-2014, 04:23 PM
  4. [SOLVED] Need Macro to perform TEXT and SUM function in multiple worksheets
    By alexxgalaxy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-12-2013, 07:59 PM
  5. Sum if Conditions embedded in a INDEX MATCH function
    By DaNmAc26 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2012, 01:30 PM
  6. Perform function in multiple worksheets
    By PTCMax in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-13-2011, 08:02 PM
  7. Linking multiple IF statements to perform different Function Based on criteria
    By Kimberly@TM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2010, 02:44 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