Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8979197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:47:41+00:00 2026-06-15T19:47:41+00:00

I am attempting to identify a subset of a range based on TRUE FALSE

  • 0

I am attempting to identify a subset of a range based on TRUE FALSE statements. An example is in the following chart below.

FALSE   FALSE   1.21147
TRUE    FALSE   1.20984
FALSE   FALSE   1.21083
FALSE   FALSE   1.210315
FALSE   TRUE    1.21151
FALSE   FALSE   1.21335
FALSE   FALSE   1.213515
FALSE   FALSE   1.212435
TRUE    FALSE   1.212125
FALSE   FALSE   1.21226

In this scenario I want a subset to be identified based on alternating TRUE statements. In the left side column the first TRUE statement would trigger the beginning of the subset an the TRUE statement in the second column would trigger the end of the subset. I then want to use a simple max function to identify the MAX in the third column. I would use an IF statement to determine whether or not the first TRUE statement is correct however, i am unable to figure out how to identify the subset of the range based on the TRUE statement in the second column. I also want to know whether or not this works from going from the top to the bottom if the statement could possible work going the bottom to the top. Any help would be most appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:47:43+00:00Added an answer on June 15, 2026 at 7:47 pm

    Part 1 can be done using a combination of MATCH, OFFSET and MAX

    For this example I’ve assumed your data is located starting at cell A2.

    For the sake of clarity I use some intermediate results in cells E1:E4. If you prefer a single formula, simply merge the intermediate formula into the final formula

    Cell E2 = position of first TRUE in column A

    =MATCH(TRUE,A2:A11,0)
    

    Cell E3 = position of first TRUE in column B

    =MATCH(TRUE,B2:B11,0)
    

    Result formula, Max value in column C between the rows found in E2 and E3 (inclusive)

    =MAX(OFFSET($C$1,E2,0,E3-E2+1,1))
    

    Part 2 is more tricky: I don’t think you can search up a range for a value. However, looking at your data it may be OK to search down for the second TRUE? If this is OK then:

    Cell E4 = position of second TRUE in column A

    =MATCH(TRUE,OFFSET(A2:A11,E2,0),0)
    

    Or this, entered as an array formula (Insipred by Barry) which will get the last TRUE in the column

    =MATCH(2, 1/(A2:A11=TRUE),1)
    

    Result formula, Max value in column C between the rows found in E3 and E4 (inclusive)

    =MAX(OFFSET($C$1,E3,0,E4+E2-E3+1,1))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Attempting to use the data series from this example no longer passes the JSONLint
Not long ago I asked a question attempting to identify a certain unicode character
I am simply attempting to get jquery to identify the first letter of a
I am attempting to identify the ether type of a packet that I am
I am attempting to identify a jQuery plugin that will display the a full
I am attempting to identify when a sound has finished playing by using the
Ahoy Stack Overflow! This be mai first post... I'm attempting to identify users with
I'm coding a Java ME app and attempting to globally identify each phone using
My wcf client gives me the following error when attempting to download a file
Using python 2.4, I'm attempting to identify, at runtime, which of an arbitrary function's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.