+ Reply to Thread
Results 1 to 5 of 5

Filled max and min values in running column cells

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Filled max and min values in running column cells

    Hello Friends

    Please find the attached 2010 version excel file <Filled max and min values in running 280415.xlsx>.

    I want to plot the max. high values and min. low values in the light yellow color cells by formula.

    thanks

    thilag.

  2. #2
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Filled max and min values in running column cells

    Please ignore the date mismatch in the filename.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Filled max and min values in running column cells

    F2=IF($G1=$G2,$F1,IF(G2="Low",MIN(INDEX($B2:$B$21,MATCH($G2,$C2:$C$21,0)):INDEX($B2:$B$21,IFERROR(MATCH(IF($G2="Low","High","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21)))),MAX(INDEX($B2:$B$21,MATCH($G2,$C2:$C$21,0)):INDEX($B2:$B$21,IFERROR(MATCH(IF($G2="Low","High","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21))))))

    E2=IF($G1=$G2,$E1,INDEX(INDEX($A2:$A$21,MATCH($G2,$C2:$C$21,0)):INDEX($A2:$A$21,IFERROR(MATCH(IF($G2="Low","High","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21))),MATCH(F2,INDEX($B2:$B$21,MATCH($G2,$C2:$C$21,0)):INDEX($B2:$B$21,IFERROR(MATCH(IF($G2="Low","High","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21))),0)))
    TRY THIS AND COPY TOWARDS DOWN
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Filled max and min values in running column cells

    Hello Siva

    thanks for your formulas.

    I made some minor changes in your formulas.

    E2=IF($C1=$C2,$E1,INDEX(INDEX($A2:$A$21,MATCH($C2,$C2:$C$21,0)):INDEX($A2:$A$21,IFERROR(MATCH(IF($C2="Low","HiCh","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21))),MATCH(F2,INDEX($B2:$B$21,MATCH($C2,$C2:$C$21,0)):INDEX($B2:$B$21,IFERROR(MATCH(IF($C2="Low","HiCh","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21))),0)))

    F2=IF($C1=$C2,$F1,IF(C2="Low",MIN(INDEX($B2:$B$21,MATCH($C2,$C2:$C$21,0)):INDEX($B2:$B$21,IFERROR(MATCH(IF($C2="Low","HiCh","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21)))),MAX(INDEX($B2:$B$21,MATCH($C2,$C2:$C$21,0)):INDEX($B2:$B$21,IFERROR(MATCH(IF($C2="Low","HiCh","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21))))))

    Array formula in G2
    G2=INDEX(C:C,MATCH(E2&F2,A:A&B:B,0))

    Still the formulas is shows error in Cells E12:F13.

    But i hope in my real application it will not happen.

    thanks again

    thilag

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Filled max and min values in running column cells

    Quote Originally Posted by thilag View Post
    Hello Siva

    thanks for your formulas.

    I made some minor changes in your formulas.

    E2=IF($C1=$C2,$E1,INDEX(INDEX($A2:$A$21,MATCH($C2,$C2:$C$21,0)):INDEX($A2:$A$21,IFERROR(MATCH(IF($C2="Low","HiCh","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21))),MATCH(F2,INDEX($B2:$B$21,MATCH($C2,$C2:$C$21,0)):INDEX($B2:$B$21,IFERROR(MATCH(IF($C2="Low","HiCh","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21))),0)))

    F2=IF($C1=$C2,$F1,IF(C2="Low",MIN(INDEX($B2:$B$21,MATCH($C2,$C2:$C$21,0)):INDEX($B2:$B$21,IFERROR(MATCH(IF($C2="Low","HiCh","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21)))),MAX(INDEX($B2:$B$21,MATCH($C2,$C2:$C$21,0)):INDEX($B2:$B$21,IFERROR(MATCH(IF($C2="Low","HiCh","Low"),$C2:$C$21,0)-1,ROWS(C2:C$21))))))

    Array formula in G2
    G2=INDEX(C:C,MATCH(E2&F2,A:A&B:B,0))

    Still the formulas is shows error in Cells E12:F13.

    But i hope in my real application it will not happen.

    thanks again

    thilag
    G2=INDEX(C:C,MATCH(E2&F2,A:A&B:B,0)) instead of the this use

    G2=C2
    and Change "HiCh" as "High" in your formula

+ 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] AutoFill the first emty column based on the values of the last filled column
    By runneer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2013, 01:04 PM
  2. Copy formulas of previous row if values are filled in column A
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2013, 01:28 PM
  3. Replies: 4
    Last Post: 12-04-2012, 02:24 AM
  4. How do I sum up values only in cells that are color filled?
    By 1959USA in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-02-2008, 02:31 PM
  5. How do I sum up values only in cells that are color filled?
    By TryingExcel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2005, 07:07 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