+ Reply to Thread
Results 1 to 5 of 5

Validation of cell results

Hybrid View

  1. #1
    jpreman
    Guest

    Validation of cell results

    Thanks for reading this post.

    Data/validation is used for data entry in a cell.

    Is there a way validations could be applied based on the results in a cell.
    ie. if a desired result is not reached there should be a customised error
    message/alert

  2. #2
    Jim Thomlinson
    Guest

    RE: Validation of cell results

    Your description is a little thin on details but in general you are probably
    looking to use the Custom option in data validation. You specify a formula
    and off you go...
    --
    HTH...

    Jim Thomlinson


    "jpreman" wrote:

    > Thanks for reading this post.
    >
    > Data/validation is used for data entry in a cell.
    >
    > Is there a way validations could be applied based on the results in a cell.
    > ie. if a desired result is not reached there should be a customised error
    > message/alert


  3. #3
    jpreman
    Guest

    RE: Validation of cell results

    Thanks for your post Jim.

    The first point is I am NOT referring to data entry validation.

    Let me give a simple example.

    sum(A1:E1)=F1. But the results in F1 should not exceed 10. If it does there
    should be a popup message.(I am NOT looking for conditional formatting)

    Thanks once again



    "Jim Thomlinson" wrote:

    > Your description is a little thin on details but in general you are probably
    > looking to use the Custom option in data validation. You specify a formula
    > and off you go...
    > --
    > HTH...
    >
    > Jim Thomlinson
    >
    >
    > "jpreman" wrote:
    >
    > > Thanks for reading this post.
    > >
    > > Data/validation is used for data entry in a cell.
    > >
    > > Is there a way validations could be applied based on the results in a cell.
    > > ie. if a desired result is not reached there should be a customised error
    > > message/alert


  4. #4
    mike
    Guest

    Re: Validation of cell results

    Public Function test(number As range)

    If number > 10 Then

    MsgBox "Result is too large"

    Else: test = number

    End If

    End Function

    jpreman wrote:
    > Thanks for your post Jim.
    >
    > The first point is I am NOT referring to data entry validation.
    >
    > Let me give a simple example.
    >
    > sum(A1:E1)=F1. But the results in F1 should not exceed 10. If it does there
    > should be a popup message.(I am NOT looking for conditional formatting)
    >
    > Thanks once again
    >
    >
    >
    > "Jim Thomlinson" wrote:
    >
    > > Your description is a little thin on details but in general you are probably
    > > looking to use the Custom option in data validation. You specify a formula
    > > and off you go...
    > > --
    > > HTH...
    > >
    > > Jim Thomlinson
    > >
    > >
    > > "jpreman" wrote:
    > >
    > > > Thanks for reading this post.
    > > >
    > > > Data/validation is used for data entry in a cell.
    > > >
    > > > Is there a way validations could be applied based on the results in a cell.
    > > > ie. if a desired result is not reached there should be a customised error
    > > > message/alert



  5. #5
    jpreman
    Guest

    Re: Validation of cell results

    Thank you Mike for responding to my post.

    Can you please elaborate your solution. I am not familar with PUBLIC
    FUNCTION. May be you could use the info I posted to explain.

    Thanks in advance


    "mike" wrote:

    > Public Function test(number As range)
    >
    > If number > 10 Then
    >
    > MsgBox "Result is too large"
    >
    > Else: test = number
    >
    > End If
    >
    > End Function
    >
    > jpreman wrote:
    > > Thanks for your post Jim.
    > >
    > > The first point is I am NOT referring to data entry validation.
    > >
    > > Let me give a simple example.
    > >
    > > sum(A1:E1)=F1. But the results in F1 should not exceed 10. If it does there
    > > should be a popup message.(I am NOT looking for conditional formatting)
    > >
    > > Thanks once again
    > >
    > >
    > >
    > > "Jim Thomlinson" wrote:
    > >
    > > > Your description is a little thin on details but in general you are probably
    > > > looking to use the Custom option in data validation. You specify a formula
    > > > and off you go...
    > > > --
    > > > HTH...
    > > >
    > > > Jim Thomlinson
    > > >
    > > >
    > > > "jpreman" wrote:
    > > >
    > > > > Thanks for reading this post.
    > > > >
    > > > > Data/validation is used for data entry in a cell.
    > > > >
    > > > > Is there a way validations could be applied based on the results in a cell.
    > > > > ie. if a desired result is not reached there should be a customised error
    > > > > message/alert

    >
    >


+ 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