+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT - Applying a rule of precedence.

  1. #1
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    SUMPRODUCT - Applying a rule of precedence.

    Please Login or Register  to view this content.
    Having trouble with this one. These are the rules I want to include in that formula above:

    * If there is a date in column: ((TEXT('Overview - 2013'!$D$15:$D$5000,"mmmm")=B3) then use THIS date range that is eqal to "B3" in the formula above. If there is NOT a date in there, then use: ((TEXT('Overview - 2013'!$M$15:$M$5000,"mmmm")=B3)

    So basically, column D takes precedence over Column M... Not sure how to include that rule?

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: SUMPRODUCT - Applying a rule of precedence.

    Hi ,

    upload a sample sheet

    Punnam

  3. #3
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: SUMPRODUCT - Applying a rule of precedence.

    I will upload if this is till vague... but something like this:

    HTML Code: 
    What do you think? It's returning an error though?

  4. #4
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: SUMPRODUCT - Applying a rule of precedence.

    Quote Originally Posted by Punnam View Post
    Hi ,

    upload a sample sheet

    Punnam
    Here is an example spreadsheet
    Attached Files Attached Files

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: SUMPRODUCT - Applying a rule of precedence.

    You are only uploading part of your ongoing problem. Without the rest, it is nearly impossible to give you an answer. The formula that you give is part of a solution given earlier addressing cells that are not present in the current post.

    You want Column M to take precedence over column D if column D doesn't have a date matching B3.....What is the aim of this as there might be a better way of accomplishing the goal?

    What is the final goal for this worksheet?
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: SUMPRODUCT - Applying a rule of precedence.

    Whoops! I left a column out!!

    Column I will have £25 or £50 in it (Mixture - just put a random combination all the way down on the rows that contain data...)

    Here is what currently works at the moment: =SUMPRODUCT((TEXT('Overview - 2013'!$M$15:$M$5000,"mmmm")=B3)*('Overview - 2013'!$I$15:$I$5000>0),('Overview - 2013'!$I$15:$I$5000))

    This formula is placed into B8 on "Monthly Bonus 2013"

    Hope this helps?

  7. #7
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: SUMPRODUCT - Applying a rule of precedence.

    Here you go, this should give more transparency!

    Sorry for being vague
    Attached Files Attached Files

+ 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. How to Calculate Precedence
    By aarzu.maknojia in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-09-2012, 10:37 AM
  2. IF Statement Precedence
    By Phoenix5794 in forum Excel General
    Replies: 4
    Last Post: 02-16-2012, 06:49 PM
  3. Operator Precedence
    By berniecole in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 07-11-2008, 03:46 PM
  4. Module precedence?
    By mtq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2006, 01:13 AM
  5. [SOLVED] VBA Precedence Problem
    By Mike King in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-16-2005, 06:05 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