+ Reply to Thread
Results 1 to 5 of 5

Sumproduct with multiple named ranges

  1. #1
    Registered User
    Join Date
    09-21-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    8

    Sumproduct with multiple named ranges

    Thanks for the help in advance - Below is a sumproduct formula that works:

    =SUMPRODUCT(--($D$6:$Q$6='Pro-Forma'!$H$5)*('RENT ROLL'!$U12="Insurance"),INDIRECT('Operating Expenses'!$C$7))

    This one doesn't:

    =SUMPRODUCT(--($D$6:$Q$6=$H$5)*('RENT ROLL'!$U12="Ins"),INDIRECT('Operating Expenses'!$C$7)+('RENT ROLL'!$V12="Util"),INDIRECT('Operating Expenses'!$C$8))

    Range D6:Q6 is a series of year end dates (12/31/2015- 2028), and H6 is the date that I am looking for. The cell following the indirect is a named range for a specific line item.

    I need to be able to add or remove line items...There are 8 named range line items altogether.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Sumproduct with multiple named ranges

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-21-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sumproduct with multiple named ranges

    See dummy workbook attached
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Sumproduct with multiple named ranges

    firstly, if you intend to copy whatever formula you have in C28, all the way across to P28, why even test for the year? You could just use the range above - or am I missing something here?

    Also, (forget the formula for now) what exactly are you trying to do/calculate?

  5. #5
    Registered User
    Join Date
    09-21-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sumproduct with multiple named ranges

    Thanks,

    I do not intend to copy that formula from C28 to P28; I was only showing that as indicative of a working first segment of a formula.

    The goal is to have "Switches" in C3:J3 (or C4:J4, etc, by company), that determine how much of the operating costs on a per year basis is each company responsible for.

    E.G Company 1 would be responsible to pay (25%, since they are 1/4 of the companies of) $371,319 out of a total of 393,040, because their deal, excludes Legal & Professional and Licenses & Permits.

    For our purposes, I don't need to calculate the 25% now, only the line items to be included, by year (which will be dragged).

    Additionally, the reason for two different dates lines, is that in the non-dummy version, the formula & dates will be on a different sheet than the switches, and a different sheet than the operating expenses.
    Last edited by NYmerc; 06-06-2018 at 05:02 PM.

+ 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 with named dynamic ranges
    By Juolupuki in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2017, 06:19 AM
  2. Combining Multiple Named Ranges
    By ptmuldoon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2014, 12:11 PM
  3. Replies: 0
    Last Post: 10-15-2012, 07:24 AM
  4. Replies: 2
    Last Post: 05-10-2012, 10:38 AM
  5. Sumproduct refers to named ranges in closed workbook
    By Bob@Sun in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-25-2010, 11:35 AM
  6. SUMPRODUCT and named ranges
    By clayton in forum Excel General
    Replies: 3
    Last Post: 11-02-2006, 09:08 PM
  7. sumproduct using array of named ranges
    By Exceler in forum Excel General
    Replies: 1
    Last Post: 08-27-2006, 12:35 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