+ Reply to Thread
Results 1 to 5 of 5

IsNumeric Help

  1. #1
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    179

    IsNumeric Help

    Hi all,

    I am having trouble with the following code. What I would like to happen is... if 'YieldLossCost' is a valid number (sometimes the intersection may return a non number), I want it to display "There is no data relating to this melt route and stage. Either it is not relevant or is missing." If there is no value inputted into 'YieldLossWeightText', I would like it to display "Please enter a yield loss weight!". Only if both conditions are met would I like the calculation to performed and the value entered into C6... Any ideas?


    Please Login or Register  to view this content.
    Thanks in advance.
    Did I help? Click *- add to my rep.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: IsNumeric Help

    Is the code not working?

    Perhaps you could rearrange it a bit.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: IsNumeric Help

    Hi Norie,

    You are a life saver today! The two texts were the wrong way round in your code but I swapped them and got the result that I wanted.

    I used vbNullString as I found the formula I used on another website and it was in that. I don't really understand the usage of it. I guess I could take it out?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: IsNumeric Help

    No leave it in, it makes sure that a blank cell isn't treated as numeric.

    I've actually seen if before but not in Access rather thant Excel.

  5. #5
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: IsNumeric Help

    Quote Originally Posted by Norie View Post
    No leave it in, it makes sure that a blank cell isn't treated as numeric.

    I've actually seen if before but not in Access rather thant Excel.
    Ok great. That's what I want. Will mark as solved.

+ 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