+ Reply to Thread
Results 1 to 7 of 7

Formula to detect anomaly in data entered in excel sheet

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    Tanzania
    MS-Off Ver
    Excel 2010
    Posts
    6

    Post Formula to detect anomaly in data entered in excel sheet

    I have an excel sheet used by an operator to enter details of fuel delivery for the fleet on daily basis.

    The fleet is of over 100 vehicles and equipment's.

    The problem I currently face is anomalies in data entry. The operators are making TYPO's while entry mileage/ODO meter of equipment.

    Is there someway in which i can use excel to detect errors,

    For example, If an operator enters a mileage of 145205 on Monday, the equipment refuels on Thursday, with mileage, 145225, but the operator enters 1452250.

    I am also attaching the Sample sheet with a month data for Three equipment's.

    The Column in shaded in yellow is the mileage column. Each equipment has a unique fleet number.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Formula to detect anomaly in data entered in excel sheet

    If you select cells E8:E84 and add a new conditional format, using a formula of:

    =E8<MAX(INDEX($E$8:E8*($D$8:D8=D8),0))

    And set that to fill the cells red then it will highlight any cells where the entered mileage is less than the previous highest entered mileage for that fleet number.

    Would that help?

  3. #3
    Registered User
    Join Date
    07-05-2012
    Location
    Tanzania
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Formula to detect anomaly in data entered in excel sheet

    Thanks for your reply Andrew.

    The Conditional Format initially works, but then the sheet goes into a loop of refreshing and crashes the software.

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Formula to detect anomaly in data entered in excel sheet

    Ew, that doesn't sound good. Not sure why that's happening.

    Is that the sort of thing you're looking for, though? Because we could also try a macro to check the same thing.

  5. #5
    Registered User
    Join Date
    07-05-2012
    Location
    Tanzania
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Formula to detect anomaly in data entered in excel sheet

    Quote Originally Posted by Andrew-R View Post
    Ew, that doesn't sound good. Not sure why that's happening.

    Is that the sort of thing you're looking for, though? Because we could also try a macro to check the same thing.
    I am entering the formula under "Use formula to determine which cell to format" or should i be using a different rule.


    For the Macro, if you can help me to have a macro which not only controls a value less than the previous also tracks the value which is much higher than the previous.

    Thanks
    Last edited by crimson_wolf; 07-23-2013 at 10:05 AM.

  6. #6
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Formula to detect anomaly in data entered in excel sheet

    Here you go, with macro (which I'm sure I made far more complicated than needs be)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-05-2012
    Location
    Tanzania
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Formula to detect anomaly in data entered in excel sheet

    Thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 06-12-2013, 07:41 AM
  2. Formula to Detect Last Cell in a Column with Data Entered
    By TylerJamison in forum Excel General
    Replies: 5
    Last Post: 06-29-2012, 03:52 PM
  3. Detect if InputBox password already entered in same instance
    By RedWing in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2011, 01:54 PM
  4. excel spread sheet wont caculate new data entered in ranges.
    By Art-needs-help in forum Excel General
    Replies: 3
    Last Post: 11-08-2005, 10:10 AM
  5. Replies: 2
    Last Post: 09-29-2005, 01:52 AM

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