+ Reply to Thread
Results 1 to 4 of 4

Changing range of max() formula based on a cell contents

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Changing range of max() formula based on a cell contents

    Hi, I am trying to change a max() formula on the fly.

    If I put 8 in a cell the max formula would have one range to check and return.
    If I put 10 in that cell the max formula would change range.

    I attached a sample.

    Heh. I thought this would be easy. But, Short of an eleven or twelve level If statement... I don't wanna do that.

    Thank you for looking.
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Changing range of max() formula based on a cell contents

    Try

    =MAX(OFFSET(L3,0,0,1,-O$15))

  3. #3
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Re: Changing range of max() formula based on a cell contents

    Quote Originally Posted by Jonmo1 View Post
    Try

    =MAX(OFFSET(L3,0,0,1,-O$15))
    My Friend! That worked just right. I have no idea what it means though. I will have to look it up and learn to parse it so I can explain it, but it works just what I needed. Thank you so much.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Changing range of max() formula based on a cell contents

    You’re welcome

    The syntax of offset is

    OFFSET(range,#ofrows,#ofcolumns,height,width)

    Maybe that will help

+ 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] Changing cell contents while formula is present
    By abrown502 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2017, 09:00 AM
  2. Replies: 2
    Last Post: 07-01-2013, 10:51 AM
  3. Replies: 5
    Last Post: 08-10-2012, 04:32 PM
  4. Replies: 2
    Last Post: 01-26-2011, 11:16 AM
  5. Changing the contents of a cell in a range, controlled from a separate cell
    By Justme47 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2009, 07:38 AM
  6. Changing cell contents based on date.
    By SteelySteve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-11-2008, 10:06 PM
  7. Changing Background Colour Based on Cell Contents
    By Sukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2006, 09:00 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