+ Reply to Thread
Results 1 to 6 of 6

frequency

  1. #1
    Registered User
    Join Date
    12-10-2008
    Location
    portugal
    Posts
    30

    frequency

    Hello
    is it possible have one alert or .. if and when show up mor than 2 consecutives values graeter than 6 ?


    6.584
    5.994
    5.781
    5.829
    5.901
    5.970
    6.313
    6.328
    6.302

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: frequency

    So in your example(Assuming that you start in A1), ALL your consecutives values are greater than 6?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: frequency

    hi ccruz. do you need that alert to stop user from keying the 3rd consecutive value or simply state there's such instance? for the former, consider Data Validation if you can fix a range.
    select the cells you want the dropdown applied to (say F1:F10). go to Data -> Data Validation -> Allow: Custom -> Formula:
    =SUMPRODUCT((A1:A10>6)*(A2:A11>6))+1>=3
    play around with the Error tab to show the error message

    for the latter, you can use this formula:
    =IF(SUMPRODUCT((A1:A10>6)*(A2:A11>6))+1>=3,"There are 3 or more consecutive values greater than 6","")

    attaching an eg for you. D1 will show that message only when there are 3 or more consecutive values greater than 6. in F1:F10, you cannot key consecutive values greater than 6
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    12-10-2008
    Location
    portugal
    Posts
    30

    Re: frequency

    doesn't work

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: frequency

    Why? .................

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: frequency

    you could use conditional formatting
    =COUNTIF(OFFSET(A1,-2,,3),">6")>2
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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