+ Reply to Thread
Results 1 to 8 of 8

Find occurance of value "x" after value "y"

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    2

    Find occurance of value "x" after value "y"

    I'm trying to set up a simple formula that tells me if I've input a value lower than the highest value input across the row:


    A B C D E F G H I

    Frequency 1 1 1 1 2 2 1 2

    So in the example above, as soon as I enter "1" in column H, the formula would indicate "error".

    Thanks in advance!

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Find occurance of value "x" after value "y"

    Well, you can't enter a formula in the cells where you are entering actual data. However, you can use conditional formatting to color the cell to show if an error exists.

    So if your range of numbers was in A1:H1, select cells B1:H1 and apply Conditional Formatting using the following formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and change the formatting to whatever you want as an error alert and click OK to apply.

    - Moo

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find occurance of value "x" after value "y"

    In data validation in B1 use

    Whole number --Greater than or equal to -- =A1

    Copy and paste special --validation across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Find occurance of value "x" after value "y"

    You can enter this array formula to know if there greater value or not.
    =IF(SUM((OFFSET(A1,0,COUNTA(1:1)-1,1,1)<OFFSET(A1,0,0,1,COUNTA(1:1)))*1)>=1,"Greater Value","Its Ok")

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Find occurance of value "x" after value "y"

    Does this workbook help?

    I'm assuming you are manually entering the numbers.

    It's not bullet proof but it will Return "ERROR" when the next number entered in a row is less than the previous max of that row.
    At least one cell in columns C:L of the row must have a number to trigger the formula.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Registered User
    Join Date
    11-13-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Find occurance of value "x" after value "y"

    Holy crap you guys are great!

    Thanks to everyone, off to tinker with these solutions!

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Find occurance of value "x" after value "y"

    @ vlady

    Why are you assuming this thread is SOLVED, the OP is ...
    ....off to tinker with these solutions!
    Have they all been evaluated? ...

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Find occurance of value "x" after value "y"

    I think i missed interpret the language. sorry 'bout that reversing now. thanks for pointing out.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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