Closed Thread
Results 1 to 11 of 11

Dynamic range from which to use =SUMPRODUCT()

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007/2010, Outlook 2007/2010
    Posts
    60

    Dynamic range from which to use =SUMPRODUCT()

    I need to check if a name falls within a validation range. For that I'm using =SUMPRODUCT(--(D2=NamedRange). Now, I need to make sure that the NamedRange has no blanks, or it screws it all up. But the data change on a frequent basis, which is usually just appending or deleting a name from the range. The range from which names may be appended or deleted is 3 columns and ~30 rows. I tried an array formula of {=INDEX($A$1:$A$10,SMALL(IF($A$1:$A$10<>"",ROW($A$1:$A$10)),ROWS($A$1:$A1)))}, but that returns #NUM ! errors whenever it is too long, and so the SUMPRODUCT() doesn't return any data, only the #NUM ! error. How can I do this?

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Dynamic range from which to use =SUMPRODUCT()

    Have you tried using a Dynamic Named Range?

    If that doesn't solve try uploading a representative Excel workbook sample of what you have. Please include samples of what you have tried that does not work and hand typed examples of desired output.

    If you are not familiar with how to do this:

    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Dave

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007/2010, Outlook 2007/2010
    Posts
    60

    Re: Dynamic range from which to use =SUMPRODUCT()

    Dynamic Named Range? How do I do such a thing?

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Dynamic range from which to use =SUMPRODUCT()

    If you upload a representative sample workbook it will be easier to explain in context. Please see instructions post #2.

  5. #5
    Registered User
    Join Date
    03-07-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007/2010, Outlook 2007/2010
    Posts
    60

    Re: Dynamic range from which to use =SUMPRODUCT()

    I tried to do that. I click on the Attachment icon and I get a thin beige bar with no visible buttons.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Dynamic range from which to use =SUMPRODUCT()

    If you tried the paperclip icon that hasn't worked for some time.

    Follow the instructions post #2 exactly. That's the "new" way. It's never failed me yet.

  7. #7
    Registered User
    Join Date
    03-07-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007/2010, Outlook 2007/2010
    Posts
    60

    Re: Dynamic range from which to use =SUMPRODUCT()

    I think I got it?
    Attached Files Attached Files

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Dynamic range from which to use =SUMPRODUCT()

    There is nothing "wrong" with the named range 'tt'. The formula in column C just needs to have IFERROR wrapped around it.

    Try array entering this in C1 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit Same with D1.
    Last edited by FlameRetired; 06-29-2018 at 07:51 PM.

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

    Re: Dynamic range from which to use =SUMPRODUCT()

    Isn't this the same question that you asked here, just asked in a differnt way?

    https://www.excelforum.com/excel-gen...n-a-range.html

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Dynamic range from which to use =SUMPRODUCT()

    Rule 08: Cross-posting Without Telling Us

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    If you have less than 10 posts, do not try to copy and paste the link. Instead, type the link out in your thread.

    No further help to be offered, please, until the OP has complied with this request.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,693

    Re: Dynamic range from which to use =SUMPRODUCT()

    This is also a duplicate, and will be closed.

    https://www.excelforum.com/excel-gen...n-a-range.html
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 01-20-2017, 04:27 PM
  2. Sumproduct of Dynamic Range
    By deepak2jadav in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-28-2014, 09:01 AM
  3. [SOLVED] Sumproduct with a dynamic range...is that the only way?
    By som3on3_10 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2014, 02:35 AM
  4. Sumproduct for dynamic range
    By Bob@Sun in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2010, 06:32 AM
  5. SUMPRODUCT & Dynamic Range Problem
    By cedarhill in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2009, 06:22 AM
  6. Sumproduct, dynamic range
    By jmicdk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2008, 08:43 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