Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

guided data input

Latest post Wed, Jul 23 2008 3:47 AM by nutrastat. 5 replies.
  • Tue, Jul 22 2008 9:23 AM

    • nutrastat
    • Top 75 Contributor
    • Joined on Tue, Jul 22 2008
    • Brighton
    • Posts 5
    • Points 73

    guided data input

    Hi,

    Hope that somebody is able to help me to ensure that people complete a detailed spread sheet with ALL data, as this is a compliance requirement. 

    Trying to keep it simple, we have a screen with Name, Position, Date, Pest (we are a pest control company), question and comment text, which we will number 1 - 6 respectively.  They all need to be completed in order to meet ISO compliance. It is more complex than this, but it gives you an idea of what we are trying to achieve.

    We are now re-writing the sheet to point out that the sheet is 'in error' when only part of the data has been entered.  We highlight the uncompleted boxes, using conditional formatting, in effect saying if(4=blank,highlight in orange).  As the person completes all of the sections the orange gradually disappears until all 6 items have received data.  Is there a way of doing the 'orange bit' a little more gradually, otherwise when they first start by entering their name sections 2-5 all highlight in orange, making them a little nervous.

    Working through the logic, to bring highlighting missing data in an order, this gives me the following logic:

     


    Name Pos Date Pest No Text HIGH
    1 x




    2
    2
    x



    1
    3

    x


    1
    4


    x

    1
    5



    x
    1
    6




    x 1
    7 x x



    3
    8 x
    x


    2
    9 x

    x

    2
    10 x


    x
    2
    11 x



    x 2
    12 x x x


    4
    13 x x
    x

    3
    14 x x

    x
    3
    15 x x


    x 3
    16 x x x x

    5
    17 x x x
    x
    4
    18 x x x

    x 4
    19 x x x x x
    6
    20 x x x x
    x 5
    21 x x x x x x 0
    22





    0

    When they complete the name we want position (2) to highlight.  If they complete position first we want name (1) to highlight.  As they enter more data it continues to highlight the section called 'HIGH', until at 21 all items have been entered, or at 22 no items have been entered and nothing is highlighted.

    This probably needs to use an array, but this is outside of my skills.  We need it to return the HIGH number so that the conditional formatting can act accordingly.

    Is there anybody that can help with this query?

    Thanks in anticipation.


    Graham - Nutrastat

     

     

     

     

     

     

     

    Filed under:
    • Post Points: 37
  • Tue, Jul 22 2008 1:40 PM In reply to

    • Alex J
    • Top 25 Contributor
    • Joined on Wed, Jan 9 2008
    • Posts 21
    • Points 349

     Graham,

    I'm not going to answer your question directly - one, I think you are making the logic pretty complicated to build (and maintain), UNLESS you need to step the user from cell to cell in a specific sequence. Two, I just did a utility with similar requirements - here is my approach.

    For every cell that requires user input, I put an indicator in the adjascent the cell. (I like to use Marlett font, Bold, size 8, colour orange: Sorry - I haven't been able to paste the image - maybe Nick can help.) Then the conditional format is on the indicator cell, but the formula is constructed to refer to the data entry cell.

    The usefulness of this approach - its simple, and a large number of indicators doesn't intimidate the user. Also, they disappear as the form is filled in.

    The last thing I do is put a similar indicator beside the SAVE button, and disable the SAVE button until all the conditions are met.

    Hope this alternate approach helps.

    Regards, Alex J

    • Post Points: 21
  • Tue, Jul 22 2008 1:41 PM In reply to

    • Alex J
    • Top 25 Contributor
    • Joined on Wed, Jan 9 2008
    • Posts 21
    • Points 349

     (Check out the linked file in my response - it worked after all)

    Regards, Alex J

    • Post Points: 5
  • Tue, Jul 22 2008 2:42 PM In reply to

     Hi,

    Having done this sort of thing before, I used a UDF.

    I found that it to be excellent (once I had been through the pain of working out how to write it and get it to be 100% accurate).

    If your input was in columns B to G, then I put a "message" cell in column H explaining what was missing.

    I didn't worry about the order, just did it sequentially - for example

    Default message woudl be "Enter name"

    Once that was complete it would say that the next column needed to be completed and so on until everything was complete and it said OK.

    It might not work for you, but we used the same thing for 5 years and found it very useful (we extended it to look at the quality of input as well).

    1 tip I learned was to write each check as an IF function in the adjacent cells, and then link them all together.

    IF you don't want to do a UDF, then use the independent IF statements, and check that you get 6 OK's before switching off any Conditional Formatting.

     

    HTH

     

     

     

     

     

    • Post Points: 21
  • Wed, Jul 23 2008 3:46 AM In reply to

    • nutrastat
    • Top 75 Contributor
    • Joined on Tue, Jul 22 2008
    • Brighton
    • Posts 5
    • Points 73

    Hi Alex,

    Many thanks for your prompt reply and the idea contained therein.  Very useful, and I will use your idea coupled with the other one received, as they both work for me.

    Thanks for your time in this matter.

    Best regards,

    Graham

    Filed under:
    • Post Points: 5
  • Wed, Jul 23 2008 3:47 AM In reply to

    • nutrastat
    • Top 75 Contributor
    • Joined on Tue, Jul 22 2008
    • Brighton
    • Posts 5
    • Points 73

    Hi Alan,

    Many thanks for your prompt reply and the idea contained therein.  Very useful, and I will use your idea coupled with the other one received, as they both work for me.

    Thanks for your time in this matter.

    Best regards,

    Graham

    Filed under:
    • Post Points: 5
Page 1 of 1 (6 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.