+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT - Index and Match function two possible outcomes

  1. #1
    Registered User
    Join Date
    12-01-2017
    Location
    Manc, England
    MS-Off Ver
    2007
    Posts
    20

    SUMPRODUCT - Index and Match function two possible outcomes

    Hello all,

    I am currently using the following formula to bring me back a gross margin from my source data - Column K

    =SUMPRODUCT(INDEX(Starters!$X$1:$AA$8,MATCH(F6,Starters!C:C,0),)*{-1,1,-1,1})*5

    Which works fine except in the latest iteration I am using the source data some other values are present which don't tally correctly.

    The '*5' is to take the Gross Margin of workers daily rates and times it by 5 for the week (Example Example), however, I now have values present in 'Starters!$X$1:$AA$8' which are hourly rates, so I would need it be the value times 8, then times 5 but without it multiplying a daily rate by 8 and then 5 (Test Test).

    I have included a crude test file to illustrate.
    Attached Files Attached Files
    Last edited by 6StringJazzer; 03-19-2018 at 12:22 PM. Reason: Solved

  2. #2
    Registered User
    Join Date
    12-01-2017
    Location
    Manc, England
    MS-Off Ver
    2007
    Posts
    20

    Re: SUMPRODUCT - Index and Match function two possible outcomes

    Can anyone assist?

  3. #3
    Registered User
    Join Date
    12-01-2017
    Location
    Manc, England
    MS-Off Ver
    2007
    Posts
    20

    Re: SUMPRODUCT - Index and Match function two possible outcomes

    Hi all, I was wondering if inserting a new column for hours to be entered would be a suitable fix?

    But I am not sure how to amend - =SUMPRODUCT(INDEX(Starters!$X$1:$AA$8,MATCH(F6,Starters!C:C,0),)*{-1,1,-1,1})*5 - to include the option of multiplying the value this formula produces by a number of hours from another cell.

    Is this possible?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: SUMPRODUCT - Index and Match function two possible outcomes

    If I understand correctly the values in columns X:Y are daily and in columns Z:AA are hourly. Since the two cases are exclusive try the following in K6 and down on the Cont 1 sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    12-01-2017
    Location
    Manc, England
    MS-Off Ver
    2007
    Posts
    20

    Re: SUMPRODUCT - Index and Match function two possible outcomes

    Thank you, that has worked!

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,717

    Re: [SOLVED] SUMPRODUCT - Index and Match function two possible outcomes

    Chambew, it looks like you edited your title to show it's solved. The correct way to mark a thread SOLVED is to:

    Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    I did it for you this time since you are a new-ish user.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: SUMPRODUCT - Index and Match function two possible outcomes

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved' (with Jeff's help). I hope that you have a blessed day.

+ 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] Use Weekday function with (Countif Sumproduct, +Index) also If(IsError(search(mid +Index
    By Brian.Aerojet in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-09-2018, 06:16 AM
  2. Index match with multiple criteria and multiple outcomes
    By plakatown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2016, 02:41 AM
  3. [SOLVED] Multiple outcomes using INDEX MATCH
    By g2015 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-24-2015, 09:34 AM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  6. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  7. Sumproduct, vlookup, index match function
    By jrammb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2010, 04:05 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