+ Reply to Thread
Results 1 to 4 of 4

If Cell = Name, Calculate Max/Min From Rows Where Cell = Name

  1. #1
    Registered User
    Join Date
    03-03-2020
    Location
    London, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    2

    If Cell = Name, Calculate Max/Min From Rows Where Cell = Name

    Hi all,

    First time posting so forgive me if there is a fairly straightforward formula that I am unaware of.

    I am looking to derive a maximum and minimum price for roughly 500 investments over a year where I have a daily price for almost each business day (~120,000 cells). I think I have articulated the rough formula that I am looking to create in the title of the thread but have been struggling to recreate this with MAXIFS & MINIFS formulas.

    Effectively, if the investment name (column B) = X, I want to calculate the maximum and minimum prices (in a range in column E), in all rows where column B = X.

    Any advice appreciated! I figured this would likely be quicker than going scrolling 120,000 cells and ensuring I have the right range for each investment...

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If Cell = Name, Calculate Max/Min From Rows Where Cell = Name

    Hi, and welcome to the forum.

    Presumably something like

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: If Cell = Name, Calculate Max/Min From Rows Where Cell = Name

    either should work something like these...
    =MAXIFS($E$2:$E$18,$B$2:$B$18,B2)
    and
    =MINIFS($E$2:$E$18,$B$2:$B$18,B2)
    but with extended ranges.
    and if you have a distinct list of the names point to that instead.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    03-03-2020
    Location
    London, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    2

    Re: If Cell = Name, Calculate Max/Min From Rows Where Cell = Name

    Fantastic both! Thank you so much.

+ 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: 19
    Last Post: 09-07-2018, 03:40 PM
  2. Replies: 6
    Last Post: 10-26-2017, 04:16 AM
  3. [SOLVED] Formula: If cell 3 is blank have cell 1 calculate, if cell 3 filled have cell 2 calculate
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2016, 09:34 AM
  4. Replies: 2
    Last Post: 08-04-2015, 10:32 PM
  5. [SOLVED] How do I calculate Absolute Value in a cell not aligned with rows used in the array?
    By TIFinance in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-28-2015, 07:27 PM
  6. [SOLVED] for range of cell = n, calculate sum of cell + n-1 previous cell
    By TNLNYC in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-02-2013, 10:20 PM
  7. [SOLVED] Delete rows if any cell in Sheet 1 rows matches any cell in Sheet2 column
    By newbie88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2012, 10:26 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