+ Reply to Thread
Results 1 to 7 of 7

Need to sum the minimum value from each named range ( from 1 -50) that is larger than Zero

  1. #1
    Registered User
    Join Date
    03-15-2019
    Location
    Oslo; Norway
    MS-Off Ver
    Professional Plus 2016
    Posts
    4

    Need to sum the minimum value from each named range ( from 1 -50) that is larger than Zero

    Hi

    I am working on a project and need some help on a array formula!
    I have named ranges from named_range_01 to named_range_50.

    What i want to do is to sum the lowest value from each of these named rages if the value is above zero.

    I am learning new things in excel all the time, and have been trying to learn how and when to use array formulas and this seems like the perfect solution to solve my problem.
    I have searched the forums to some extent, but i am not finding a solution to my problem.

    so far the only way i am getting this to work is by inserting the following formula:

    =SUM(MIN(IF(range_01:range_01>0;range_01));MIN(IF(range_02:range_02>0;range_02));MIN(IF(range_03:range_03>0;range_03));MIN(IF(range_04:range_04>0;range_04))) ect and would have to continue this all the way up to 50

    In my mind this is not the simplest way i could use an array formulas to solve this , is there a way i can do this without using the above formula all the way up to 50?

    Hope you guys can help me!

    Thanks in advance
    Attached Files Attached Files
    Last edited by sebs; 02-08-2020 at 04:33 PM.

  2. #2
    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,288

    Re: =SUM(MIN(IF "Array Formula"

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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.

  3. #3
    Registered User
    Join Date
    03-15-2019
    Location
    Oslo; Norway
    MS-Off Ver
    Professional Plus 2016
    Posts
    4

    Re: =SUM(MIN(IF "Array Formula"

    Hi

    Hope the new title meets the requirements

  4. #4
    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,288

    Re: Need to sum the minimun value from a set of named ranges that is larger than Zero

    Much better - thank you.

    Please attach a sample workbook - instructions at the top of the page.

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,780

    Re: Need to sum the minimun value from a set of named ranges that is larger than Zero

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  6. #6
    Registered User
    Join Date
    03-15-2019
    Location
    Oslo; Norway
    MS-Off Ver
    Professional Plus 2016
    Posts
    4

    Re: Need to sum the minimun value from a set of named ranges that is larger than Zero

    Small sample with fictive data is attached now

    I can do it as shown in the sample, but to continue this all the way up to 50 seems like i am missing out on the Array part of the array formula?

    Hope you guys can help

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

    Re: Need to sum the minimum value from each named range ( from 1 -50) that is larger than

    Although this doesn't make use of the named ranges it may be easier than continuing the formula to 50 ranges.
    1. Helper column G is populated using: =IF(B5=0,"",COUNTIFS(A$5:A5,1))
    2. Helper column H is populated using: =B5=MIN(IF(B$5:B$79>0,IF(G$5:G$79=G5,B$5:B$79)))
    Note that the helper columns may be moved and/or hidden for aesthetic purposes.
    3. The sum of the min value from each data set is in cell J7 and is calculated using: =SUMIFS(B5:B79,H5:H79,TRUE)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Brief formula to convert time values to "shift1", "shift2", "shift3".
    By darekpawel in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 04-11-2019, 07:05 AM
  2. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  3. Replies: 4
    Last Post: 06-11-2017, 02:03 PM
  4. Replies: 4
    Last Post: 03-14-2017, 02:08 AM
  5. Replies: 7
    Last Post: 04-11-2013, 12:46 AM
  6. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  7. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 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