+ Reply to Thread
Results 1 to 11 of 11

linking previously calculated data - #value! error

  1. #1
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    linking previously calculated data - #value! error

    In cells A1, A2, and A3 of Sheet1 I have data. This data is the result of some calculation else where in Sheet1. Nevertheless, I would like to link this data to Sheet2 in cells A1, A2, and A3. Now normally, you can't do this. But is their a way around this error message?

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    What is the error message?

    rylo

  3. #3
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    #value!

    I am thinking there has to be a way around this.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    I don't need to hide the error ...

    I need the data to link over to Sheet2. If A1, A2, and A3 in Sheet1 are the result of a calculation then to simply use this doesn't work:

    'Sheet1'A1
    'Sheet1'A2
    'Sheet1'A3


    Naturally, an error message is going to pop up instead of the actual value. I am not interested in supressing this message but in getting the actual value to appear.

    I could do a paste special an select 'value' but this is a problem as well. My data won't change with a change on Sheet1.

    Any advice?

  6. #6
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hi jcavigli,

    Please note that if one of the precedents of a1-3 is an error then this error is carried all the way through into all dependent cells ie if an error exists that's what you'll get - to overcome this you need to fix the initial error. See below for the Help files info about the "value" error...


    Quote Originally Posted by Excel 2003 Help files:
    Correct a #VALUE! error
    Occurs when the wrong type of argument (argument: The values that a function uses to perform operations or calculations. The type of argument a function uses is specific to the function. Common arguments that are used within functions include numbers, text, cell references, and names.) or operand (operand: Items on either side of an operator in a formula. In Excel, operands can be values, cell references, names, labels, and functions.) is used.

    Can you please attach an example file with your problem clearly shown & also the results that you would like to see?

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  7. #7
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    This should do it

    sorry for the double post

    please delete
    Last edited by jcavigli; 06-01-2008 at 08:23 AM.

  8. #8
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    okay look at this

    1.) Data is entered in F5:511 and H5:H12 of Fee Input worksheet. However, not all cells might have data. What you see is an example.
    2.) From there calcuations are made for fees on various account sizes. This exists on the Fee Input worksheet in Z6:AB12. [Calcuations are made my a custom function called Fee() locate in a module.]
    3.) I would like to link the '% charged' data in AB6:AB12 of 'Fee Input' to B7:B11 of Rogerscasey.
    Attached Files Attached Files

  9. #9
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Change your code to include the sheet

    Please Login or Register  to view this content.

    VBA Noob

  10. #10
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    Smile Bravo!

    I never knew about that argument.

    Thank you.

  11. #11
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    The reason you couldn't link was the Volatile statement recalc the function for the activesheet.

    By adding the sheet it always looked at the right sheet

    VBA Noob

+ 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