+ Reply to Thread
Results 1 to 5 of 5

I am looking for advice on using Sumproduct and referencing cells

Hybrid View

  1. #1
    Registered User
    Join Date
    08-09-2019
    Location
    Ireland
    MS-Off Ver
    MS Office for Mac
    Posts
    2

    I am looking for advice on using Sumproduct and referencing cells

    I have managed to construct a formula that calculates a tiered discount based on the input of two cells (D6 & D7):

    =(SUMPRODUCT(--(((D6+D7)/12)>{0,50000,150000,300000,500000,1000000}),--(((D6+D7)/12)-{0,50000,150000,300000,500000,1000000}),{0.55,-0.1,-0.1,-0.1,-0.1,-0.05}))*12

    I am now looking to make the formula variable, i.e. rather than using values for bands and the pricing, I would like to reference cells for those values. When I try to replace a value with a cell reference, I get the following error:
    There's a problem with this formula

    Not trying to type a formula?
    When the first character is an equal (=) or minus (-) sign, Excel thinks it's a formula:

    • you type: =1+1, cell shows: 2

    To get around this, type an apostrophe ( ' ) first:

    • you type: '=1+1, cell shows: =1+1
    Any suggestions?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,972

    Re: I am looking for advice on using Sumproduct and referencing cells

    Welcome to the forum.

    What does it look like with raw values? Paste the formula here so we can compare and troubleshoot.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: I am looking for advice on using Sumproduct and referencing cells

    Try this:

    =SUMPRODUCT(--((($D$6+$D$7)/12)>$H$3:$H$8),--((($D$6+$D$7)/12)-$H$3:$H$8),$I$3:$I$8)*12

    See sheet for context.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    08-09-2019
    Location
    Ireland
    MS-Off Ver
    MS Office for Mac
    Posts
    2

    Re: I am looking for advice on using Sumproduct and referencing cells

    Thank you so much Glenn!

    That did the trick. Much obliged.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: I am looking for advice on using Sumproduct and referencing cells

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] SumProduct Referencing Help
    By 1Stacy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-09-2017, 05:32 PM
  2. [SOLVED] SumProduct Referencing Help
    By 1Stacy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2017, 04:25 PM
  3. [SOLVED] Advice needed - SUMIFS/SUMPRODUCT Issues
    By mo4391 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2015, 02:35 PM
  4. [SOLVED] SUMPRODUCT #DIV/0! Error When Referencing Different Worksheet
    By NoMotion in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2015, 07:48 AM
  5. VBA code advice/Excel advice for summing groups of numbers
    By paulblower in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2014, 05:47 AM
  6. Sumproduct Help - Referencing Text String
    By mrsogmax76 in forum Excel General
    Replies: 6
    Last Post: 04-08-2010, 01:06 PM
  7. Replies: 3
    Last Post: 02-18-2006, 07:07 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