+ Reply to Thread
Results 1 to 7 of 7

Calculate only visible Cells in a =sum(sumproduct scnario

  1. #1
    Registered User
    Join Date
    04-13-2020
    Location
    Johannesburg
    MS-Off Ver
    2019
    Posts
    4

    Calculate only visible Cells in a =sum(sumproduct scnario

    Good day

    I have searched all threads and cant seem to find a specific solution to my scenario.

    I have a table of various csv files imported through power query.

    I need to add up certain numeric prefixes based on value. The below formula is the only way i could get it to work.

    The issue now is to only calculate visible rows, issue is getting more functions in my formula.

    =SUM(SUMPRODUCT(--(LEFT(To,4)=2787&""),Cost))

    To= c76:C400
    Cost= F76:F400

    How can i fit a ROW or Count Feature into this formula.

    Regards
    Jason

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Calculate only visible Cells in a =sum(sumproduct scnario

    You can combine SUBTOTAL and OFFSET for detect.

  3. #3
    Registered User
    Join Date
    04-13-2020
    Location
    Johannesburg
    MS-Off Ver
    2019
    Posts
    4

    Re: Calculate only visible Cells in a =sum(sumproduct scnario

    Do you mind writing me an example? Would this go in my name field?

  4. #4
    Registered User
    Join Date
    04-13-2020
    Location
    Johannesburg
    MS-Off Ver
    2019
    Posts
    4

    Exclamation Re: Calculate only visible Cells in a =sum(sumproduct scnario

    Hi All

    I have tried adding a Subotal, Sum formula to my name reference but my values return 0.

    When trying to do SUBTOTAL with OFFSET i get REF#

    =SUBTOTAL(9,'Customer Xdrs'!$F$76:$F$4460)
    =SUBTOTAL(9,'Customer Xdrs'!$C$76:$C$4460)

    Please help, iv struggle with this last step to my spreadseet since last week

    Regards

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

    Re: Calculate only visible Cells in a =sum(sumproduct scnario

    Hello Jason30 and Welcome to Excel Forum.
    It may help contributors here to help you, if you could upload a sample workbook that illustrates the issue. The banner at the top of the page has instructions for uploading.
    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.

  6. #6
    Registered User
    Join Date
    04-13-2020
    Location
    Johannesburg
    MS-Off Ver
    2019
    Posts
    4

    Re: Calculate only visible Cells in a =sum(sumproduct scnario

    Hi

    Please see attached.

    Regards
    Attached Files Attached Files

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

    Re: Calculate only visible Cells in a =sum(sumproduct scnario

    As illustrated in the attached file, a formula that will yield the sum of the Charged Amounts for To's with the prefix of 2787 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that the four digit prefix is typed into cell I222
    Let us know if you have any questions.
    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. [SOLVED] function SUMPRODUCT with visible cells
    By brainzlp in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 11-20-2021, 08:37 AM
  2. Only calculate visible cells?
    By Bundi999 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2017, 06:35 PM
  3. SUMPRODUCT from only visible cells
    By Gobble in forum Excel General
    Replies: 5
    Last Post: 06-01-2017, 06:29 AM
  4. [SOLVED] Sumproduct visible cells
    By Even in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-25-2013, 04:13 PM
  5. Calculate MEDIAN of VISIBLE cells only
    By JP Romano in forum Excel General
    Replies: 3
    Last Post: 10-05-2009, 11:49 AM
  6. Calculate Max and Min Value for only Visible Cells
    By deaerator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2009, 08:56 PM
  7. [SOLVED] SUMPRODUCT TO CALCULATE VISIBLE CELLS ONLY
    By Lisa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-11-2005, 09:06 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