+ Reply to Thread
Results 1 to 6 of 6

Finding the Minimum value across multiple sheets.

Hybrid View

  1. #1
    Registered User
    Join Date
    03-25-2013
    Location
    Srinagar, JK, India
    MS-Off Ver
    Microsoft 365, Office 2007, 2010 & 2016
    Posts
    23

    Finding the Minimum value across multiple sheets.

    Hi,

    I am working on a data arranged in 3D format, that is, similar data across multiple sheets, and I want to compare data items in a certain cell on all the worksheets that meet certain criteria. For understanding, I have attached a sample workbook for reference.

    Nesting IF within MIN condition, I can get the required result if all the data points are on a single worksheet, as in Single Sheet Results worksheet of the attached sample, below is the formula used:
    Normal Formula
    =MIN(IF($B$4:$B$32=D$1,$C$4:$C$32))
    However, if the same data is spread across multiple sheets, the formula fails to generate the result, irrespective if I am using a normal or array formula (example below):
    Normal Formula (Result: #REF!):
    =MIN(IF(Sheet1:Sheet29!$C$1=D1,Sheet1:Sheet29!$C$2))
    Array Formula (Result: #REF!):
    {=MIN(IF(Sheet1:Sheet29!$C$1=D1,Sheet1:Sheet29!$C$2))}
    How do I fix the formula so that I can compare the data broken across multiple sheets.
    Attached Files Attached Files
    With regards,
    Mullah Raheil.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Finding the Minimum value across multiple sheets.

    You can't do conditional calcs in 3d syntax.

    You could try something like...

    Formula: copy to clipboard
    D2: =MIN(INDEX(N(+INDIRECT("'Sheet"&ROW($1:$29)&"'!C2"))+9.99E+307*(T(+INDIRECT("'Sheet"&ROW($1:$29)&"'!C1"))<>D$1),0))
    copied to E2
    but, given INDIRECT, it's volatile.

  3. #3
    Registered User
    Join Date
    03-25-2013
    Location
    Srinagar, JK, India
    MS-Off Ver
    Microsoft 365, Office 2007, 2010 & 2016
    Posts
    23

    Re: Finding the Minimum value across multiple sheets.

    Thanks for the solution. But this definitely complicates things for me a bit. The actual workbook contains approximately 200 sheets and the sheets are not so generously named as Sheet1, Sheet2, etc., but in a proper way to help identify sheets properly. Is there a way here that can allow me to access all the sheets, in somewhat similar way as the formula that you shared above. What I mean is that is there a generic way to access all the worksheets in a workbook, irrespective of the name I assigned (without using VBA)?

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Finding the Minimum value across multiple sheets.

    Hi,

    =SUMPRODUCT(0+(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",,Sheet1:Sheet29!$C$1)&"</b></a>","//b")=D1),FILTERXML("<a><b>"&TEXTJOIN("</b><b>",,Sheet1:Sheet29!$C$2)&"</b></a>","//b"))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Finding the Minimum value across multiple sheets.

    Quote Originally Posted by XLent
    You can't do conditional calcs in 3d syntax
    gets schooled by XOR LX... again ;-)

  6. #6
    Registered User
    Join Date
    03-25-2013
    Location
    Srinagar, JK, India
    MS-Off Ver
    Microsoft 365, Office 2007, 2010 & 2016
    Posts
    23

    Re: Finding the Minimum value across multiple sheets.

    Thank you, XOR LX and XLent. The two of you made my day. Love you for the support and you both deserve Reps. Thanks once again.

+ 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. Replies: 1
    Last Post: 03-13-2015, 09:39 AM
  2. [SOLVED] Finding the minimum value of maximum values from multiple, changing worksheets
    By kwhelanne in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-05-2014, 05:17 AM
  3. [SOLVED] Finding minimum and maximum values based on multiple criteria and filtered data
    By jndreece in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2014, 10:42 AM
  4. Replies: 7
    Last Post: 04-17-2013, 03:53 PM
  5. Replies: 11
    Last Post: 01-02-2013, 10:14 AM
  6. Replies: 1
    Last Post: 07-17-2012, 05:28 AM
  7. Finding multiple instances of the minimum value
    By mworth01 in forum Excel General
    Replies: 2
    Last Post: 11-10-2006, 05:17 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