Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Validation Problem.

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    What is wrong with this? =OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M)) which is a named range called Discount. When I try to validate a cell using the List>Custom option =Discount I get an error message that reads "The source currently evaluates to an error". Where column M in worksheet Utilities containes the list. Any ideas?

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Newcastle, UK
    Posts
    1,174
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-05-09 06:01, Nigel Martin wrote:
    What is wrong with this? =OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M)) which is a named range called Discount. When I try to validate a cell using the List>Custom option =Discount I get an error message that reads "The source currently evaluates to an error". Where column M in worksheet Utilities containes the list. Any ideas?
    Try:

    =OFFSET(Utilities!$M$1,0,MATCH(REPT("z",255),Utilities!$M:$M),0)

    The 3rd argument of the OFFSET is the Height whereas you had the Match in the Width part.

    I think that may be the problem.
    I can't test it as my Excel is taking a wobbley with some crazy formula

    "Have a good time......all the time"
    Ian Mac

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    84,060
    Post Thanks / Like
    Mentioned
    38 Post(s)
    Tagged
    8 Thread(s)

    Default

    On 2002-05-09 06:01, Nigel Martin wrote:
    What is wrong with this? =OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M)) which is a named range called Discount. When I try to validate a cell using the List>Custom option =Discount I get an error message that reads "The source currently evaluates to an error". Where column M in worksheet Utilities containes the list. Any ideas?
    =OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M),1)

    If Discount consists of numbers, I suspect it does, use the following instead:

    =OFFSET(Utilities!$M$1,0,0,MATCH(9.99999999999999E+307,Utilities!$M:$M),1)

    I assumed that A1 also contains a number, not a label.

    Aladin

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Newcastle, UK
    Posts
    1,174
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-05-09 06:01, Nigel Martin wrote:
    What is wrong with this? =OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M)) which is a named range called Discount. When I try to validate a cell using the List>Custom option =Discount I get an error message that reads "The source currently evaluates to an error". Where column M in worksheet Utilities containes the list. Any ideas?
    Completely forget about last post, I tested it and was way off.

    Are the values in 'Utilities' text or number, if they are number you will get the error you describe.

    use:

    =OFFSET(Utilities!$M$1,0,0,MATCH(9.99999999999999E+307,Utilities!$M:$M),1)

    But I see Aladin got there before me
    "Have a good time......all the time"
    Ian Mac

  5. #5
    Board Regular
    Join Date
    Feb 2002
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Cheers guys - works brilliantly.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •