+ Reply to Thread
Results 1 to 3 of 3

Function returns #VALUE

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    12

    Function returns #VALUE

    Hey,

    I'm trying to have a simple function to return blank ("") on some condition, and I just can't get rid of it returning #VALUE no matter what.. what am I missing?

    Please Login or Register  to view this content.
    Note: 1. "default_alt" is global. 2. It works fine except for the ELSE part. 3. Doesnt matter if I change the type of the function from Variant to anything else.

    Thanks

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Function returns #VALUE

    Your tests for IsNumeric and IsEmpty are pointless - you have declared the function in such a way that it will only accept integer values as inputs - if you pass anything else it will simply error.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Function returns #VALUE

    Just like you said.. fixed it, thanks

+ 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