+ Reply to Thread
Results 1 to 9 of 9

Confirming if multiple rows of numbers run in sequence

  1. #1
    Forum Contributor
    Join Date
    12-31-2008
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    149

    Confirming if multiple rows of numbers run in sequence

    Hello,

    Please see attached.

    I'd like Excel to run a check to see if a row of numbers runs in sequence.

    *As in row 4, the numbers dont have to incriment each time
    *As in row 2, there may be gaps in the data
    *As in row 6, the data cant increase and then decrease. Each subsequent number must be the same or high than the previous
    *There could be varying amounts of numbers per row, hence the results being in column R

    As an added bonus it'd be nice to see where an error occurs, but just knowing theres an error (column R) is the primary goal.

    Thanks
    Attached Files Attached Files
    Last edited by bd528; 06-24-2009 at 07:27 AM.

  2. #2
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Confirming if multiple rows of numbers run in sequence

    Well this worked in all cases in your sheet

    =NOT(COUNTA(A1:Q1)-1-SUMPRODUCT(--(B1:Q1-A1:P1>0))-SUMPRODUCT(--(B1:Q1=A1:P1)*(B1:Q1<>"")))
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  3. #3
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Confirming if multiple rows of numbers run in sequence

    Forget that over thinking!

    Simple conditional fomat

    =(COUNTIF($A1:A1,">"&B1))

    placed in cells a2:q6 will work!
    Last edited by squiggler47; 06-24-2009 at 04:47 AM.

  4. #4
    Forum Contributor
    Join Date
    12-31-2008
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Confirming if multiple rows of numbers run in sequence

    Hi,

    We do have Excel 2007, but sadly I'm not allowed to download attachments at work.

    Your first formula does work great. Is there any way to get it to formula to recognise the list of numbers as FALSE if one of the entries is a word instead of a number? Currently, Excel returns #VALUE!?

    If you can demonstrate the conditional formatting theory without an attachment, that'd be good.

    Thanks

  5. #5
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Confirming if multiple rows of numbers run in sequence

    Just higlight b1:q6

    select conditional formatting from the ribbon

    Select New rule

    use formula to determine which cells to format

    Paste my conditional formatting formula into the format values box

    =(COUNTIF($A1:A1,">"&B1))

    Click on the format button and choose your highlight!

    click ok!

    It works by counting values to the left of the current cell which are greater than the current cells value, it will ignore text and blank cells so should work in all cases!
    Last edited by squiggler47; 06-24-2009 at 04:56 AM.

  6. #6
    Forum Contributor
    Join Date
    12-31-2008
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    149

    Thumbs up Re: Confirming if multiple rows of numbers run in sequence

    I'm going with the conditional formatting option.

    Many thanks for your help.

  7. #7
    Forum Contributor
    Join Date
    12-31-2008
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Confirming if multiple rows of numbers run in sequence

    Hi,

    I tried the conditional formating route on other sample data. Please see attached.

    I'm not sure why, but after I apply the conditional format, the forumla seems to change, to something like

    =(COUNTIF($A65517:IJ65517,">"&IK65517))

    When I actually pasted

    =(COUNTIF($A1:A1,">"&B1))

    Needless to say, the conditional format isn't working. F8 for example, should be blue.

    Any ideas?
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Confirming if multiple rows of numbers run in sequence

    make sure you only highlight column B:N, its not designed for column A!

    I highlighted and entered and it worked fine!

  9. #9
    Forum Contributor
    Join Date
    12-31-2008
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Confirming if multiple rows of numbers run in sequence

    Yep, works now

    Thanks

+ 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