+ Reply to Thread
Results 1 to 3 of 3

Complex Formula Returning #Value Error When Macro is Run

  1. #1
    Registered User
    Join Date
    12-11-2019
    Location
    Memphis, Tennessee
    MS-Off Ver
    Depends on my mood
    Posts
    2

    Complex Formula Returning #Value Error When Macro is Run

    I'm getting a #VALUE error in a formula when running a macro... can anyone help?

    About the file: very large, lots of data, a dashboard page spits out returns and a detailed overview of a given asset...
    About the macro: it cycles through assets on the dashboard page and essentially takes a screenshot of the dashboard's values and uploads them into a new tab...
    About the macro problem: when we cycle through a given asset on the dashboard, all cells/formulas seem to work... it is only when we run the macro that we gain an error on a formula that triggers the IF TRUE portion...

    Snippet of macro that we run:


    Please Login or Register  to view this content.
    ...Repeat until End Sub...

    Formula that returns a #VALUE error
    :
    '=+IF(INDEX('Reversion Dashboard'!$I:$I,MATCH($D$3,'Reversion Dashboard'!$C:$C,0))=1,I331*(1+(RATE($E$325,,$I331,-('Reversion Schedule'!$K$19)))),"")

    About the formula:
    the INDEX MATCH is simple, when an asset is listed as a 1, it is supposed to calculate the formula... but unfortunately, it does not... the 'Reversion Schedule'!$K$19 cell is also a complicated formula (obviously in another worksheet)...

    About the solution: how do we ensure that the formula does not show a #VALUE when triggered by a listed 1 via the INDEX MATCH? It seems to only work when we slowly cycle through the dashboard, thereby giving the formulas enough time to iterate and populate the line with correct info... that said, I added a .WAIT function to the macro which did not change anything, except make my macro take longer...

    Can anyone help me succeed in making this sucka calculate?

    THANK YOU IN ADVANCE!!
    Last edited by meditated; 12-13-2019 at 04:50 PM.

  2. #2
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Complex Formula Returning #Value Error When Macro is Run

    Please see forum rules #2 above

    Programming code must be enclosed in code tags to improve readability. (A, Z)
    Please Login or Register  to view this content.
    (or use the # button)
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

  3. #3
    Registered User
    Join Date
    12-11-2019
    Location
    Memphis, Tennessee
    MS-Off Ver
    Depends on my mood
    Posts
    2

    Re: Complex Formula Returning #Value Error When Macro is Run

    Hope this works now!

+ 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. Formula not returning correct result. Formatting error or formula error?
    By Yonex1975 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-31-2019, 02:38 PM
  2. [SOLVED] Complex formula giving #value error
    By at325 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-02-2015, 07:43 AM
  3. Need to fix complex IF formula and #NUM! error
    By lvl-48 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-28-2013, 10:43 AM
  4. Complex Formula Syntax error
    By Cyd44 in forum Excel General
    Replies: 2
    Last Post: 07-01-2012, 10:35 AM
  5. receiving error for pastespecial - complex macro
    By katmison in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-26-2009, 05:11 PM
  6. [SOLVED] Complex Formula Getting Error..
    By cbanks in forum Excel General
    Replies: 2
    Last Post: 05-04-2006, 02:20 PM

Tags for this Thread

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