+ Reply to Thread
Results 1 to 3 of 3

Error 2015 and #VALUE!

  1. #1
    Registered User
    Join Date
    03-21-2014
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    Error 2015 and #VALUE!

    Hi Experts.

    I need some help for below line as I am getting this error 2015 and "#VALUE!" in display result.

    thecountx = [(Range("C13") * Range("C14")/Range("C14") + vt))*(xf-1)+(sqr(Range("C13") * Range("C14") / Range("C14") + vt) * (xf - 1))^ 2 - 4 * ksp) / 2]

    it seems I am passing many values rather range if so how can I do it ?

    Any help would be highly appreciated.

    Thanks,

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Error 2015 and #VALUE!

    Hello vop2311,

    Remove the brackets, you don't need them. These cause VBA to evaluate the Ranges, i.e. return their values or calculate formulas they contain. You need to check your equation's order of operations to find where the #VALUE error is occurring.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Error 2015 and #VALUE!

    let's analyze this part of your equation:
    Please Login or Register  to view this content.
    1. you have the last bracket added too much
    2. you have Range("C14")/Range("C14") which is always 1. Why do you divide a number with the same number?

    Probably you are actually missing a bracket. Your equation should look like:
    Please Login or Register  to view this content.
    change the whole equation to match the above.
    Click on the star if you think I helped you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] IF cycle with variables - Error 2015
    By rdillong in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-20-2014, 01:44 PM
  2. Error 2015 with Application.Evaluate
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2006, 11:10 AM
  3. [SOLVED] Error 2015
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2006, 03:40 PM
  4. N/A # and error 2015
    By ina in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-27-2006, 05:55 AM
  5. copying cells with vba error 2015
    By hannes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-03-2005, 12:10 PM

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