+ Reply to Thread
Results 1 to 8 of 8

Formuale to track numbers sequence, change the colour of the font

  1. #1
    Registered User
    Join Date
    04-01-2008
    Posts
    6

    Formuale to track numbers sequence, change the colour of the font

    Hi All,

    1.) Is there a forumale in excel to detect and count to track a list of sequemce numbers. Eg:

    00001
    00002
    00004
    00005

    No of Records not in sequence : 01


    2.) Is there any formuale to change the colour of font if the font display a "WRONG" text ?


    Please help
    Thank you.
    Last edited by VBA Noob; 07-09-2008 at 12:33 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    1. Perhaps something like: =SUMPRODUCT(--(OFFSET(A1:A5,1,0)<>A1:A5+1))-1 where A1:A5 contain your record numbers...

    2. Select Range and go to Format|Conditonal Formatting...

    Cell Value Is >> Equal to >> ="WRONG"

    Click Format and choose format from Font tab.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-01-2008
    Posts
    6

    Formuale to track numbers sequence, change the colour of the font

    Quote Originally Posted by NBVC
    1. Perhaps something like: =SUMPRODUCT(--(OFFSET(A1:A5,1,0)<>A1:A5+1))-1 where A1:A5 contain your record numbers...

    2. Select Range and go to Format|Conditonal Formatting...

    Cell Value Is >> Equal to >> ="WRONG"

    Click Format and choose format from Font tab.
    Hi,

    I have tried the second one and it works but for the 1st one. It only check from A1:A5, how should I go about changing the forumale if I want to check from A1:A40.

    Please advise.

    Thanks

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Just change the ranges A1:A5 in the formula to the range you want, i.e. A1:A40

  5. #5
    Registered User
    Join Date
    04-01-2008
    Posts
    6

    Formuale to track numbers sequence

    Quote Originally Posted by NBVC
    Just change the ranges A1:A5 in the formula to the range you want, i.e. A1:A40
    Hi,

    I tried using your formuale but not able to get the results. Could you pls advise me on that.

    Thanks

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Post a sample workbook.

  7. #7
    Registered User
    Join Date
    04-01-2008
    Posts
    6

    Wink

    Quote Originally Posted by NBVC
    Post a sample workbook.

    Hi,

    Thank you very much. I am able to get it. How should I input the conditional formatting if I want to compare 02 columns value and generate "OK" for similiar value. Eg:

    Col A Col B Results
    1111 1111 OK

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You mean?

    =If(A1=B1,"Ok","")

+ 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