• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formula for finding a range

adamuce

Member
Hi,

Hope everyone is well. I hope someone can share a formula where within a range I can find the highest and smallest magnitude. An example is provided and the desired results are in the yellow shaded area


1731687189831.png
Thanks in advance
 

Attachments

  • 1731686796014.png
    1731686796014.png
    8.5 KB · Views: 12
Last edited:
Another emergent approach would be to use GROUPBY
Code:
= LET(
      group, IFS(changes > 0, "Increase", changes < 0, "Decline", TRUE, ""),
      GROUPBY(group, ABS(changes), VSTACK(MAX, MIN), , 0, -1, changes)
  )
An alternative layout would be achieved using HSTACK(MAX, MIN).
 
GROUPBY is still only available to Office Insiders, I believe.
True. In many instances the GROUPBY and PIVOTBY functions will allow the concept of pivot tables to be replaced by standard Excel functions that do not require the use of refresh, provided calculation is not set to manual. My interest in this particular case was that it required the zero values to be filtered out to prevent them appearing in the calculated results. I had never used the filter within GROUPBY so this provided an opportunity. Here 'changes' as the final parameter acts as a Boolean filter.
 
Let us know.
Hi. Sorry for the late response but I had to go into hospital for an emergency operation on my calf. Came back to work last week.

Thanks again for your support.

I have info and two columns to find the highest and lowest decline. The MINIFS seems to have worked. The MAXIFS comes up wit "0" as the answer
 
Back
Top