Solved

Sequential occurances of less than value in excel

Posted on 2014-04-22
6
165 Views
Last Modified: 2014-04-22
I'm looking for a formula that will return the value of 4 in cell A2.  It answers the question:  What is the maximum number of times in sequence was the value of -10 exceeded in A4:A16?

ThanksExample.xlsx
0
Comment
Question by:ronadair
6 Comments
 
LVL 5

Expert Comment

by:dani gammon
ID: 40015832
Hi there,

My first response would be to create a countif formula such as: =COUNTIF(A4:A16,">-10")

However, where is your sequence within a4:a16 ? because that would add to the formula to get an answer of 4.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40015871
=COUNTIF(A4:A16,">"&A1)

but for the given data the answer is 7
0
 
LVL 8

Expert Comment

by:itjockey
ID: 40015880
Try this but i don't know why your answer is 4 mine is 6
=FREQUENCY(A4:A16,A1)

Thanks
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 27

Accepted Solution

by:
MacroShadow earned 250 total points
ID: 40015900
Put this array formula (Press CTRL+SHIFT+ENTER) in A2:
=MAX(FREQUENCY(IF(A4:A16<=-10,ROW(A4:A16)),IF(A4:A16>-10,ROW(A4:A16))))

Open in new window

0
 

Author Closing Comment

by:ronadair
ID: 40016069
Worked like a charm!
0
 
LVL 8

Expert Comment

by:itjockey
ID: 40016786
Mr.MacroShadow,

will you pls explain the logic behind the  formula & why answer is 4?

Thanks You
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question