+ Reply to Thread
Results 1 to 7 of 7

Insert formula to a cell syntax

  1. #1
    Registered User
    Join Date
    01-04-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Insert formula to a cell syntax

    I get this error

    "1004 Application defined or object defined error"

    and its because this below is not proper.

    How do I write it properly to inject the formula to those cells? Thanks.
    Original formula is

    =IFERROR(INDIRECT("'"&I16&"'!"&CHAR(64+COLUMN())&"24"),"")

    Please Login or Register  to view this content.
    Last edited by Destroy; 06-26-2015 at 03:55 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Insert formula to a cell syntax

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,912

    Re: Insert formula to a cell syntax

    Untested, but you could try:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    01-04-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Insert formula to a cell syntax

    Quote Originally Posted by TMS View Post
    Untested, but you could try:

    Please Login or Register  to view this content.

    Regards, TMS

    Thank you very much, this does work a charm.

    I've tried to apply this to my last formula but am failing miserably. I simply do not understand why and where parts are double quoted.

    My last formula I need to inject is this.
    =IFERROR(MID(INDIRECT("'"&$I$16&"'!"&CHAR(64+COLUMN())&"24"),6,(LEN(INDIRECT("'"&$I$16&"'!"&CHAR(64+COLUMN())&"24"))-10)),"")


    This is the best I can come up with that I think is proper but it gives the same error as OP.
    Please Login or Register  to view this content.
    Any help would be appreciated.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,912

    Re: Insert formula to a cell syntax

    At face value, it looks ok but I can't really test it.

    Basic principle: first check the formula is correct in the cell(s) where it will go. Then, wherever there is a double quote, put two double quotes. Simple as that.

    Regards, TMS

  6. #6
    Registered User
    Join Date
    01-04-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Insert formula to a cell syntax

    So easy to miss, was very close but missing a parenthesis. This now works.

    Please Login or Register  to view this content.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,912

    Re: Insert formula to a cell syntax

    You're welcome.




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Cell reference syntax or formula
    By Kuehl5000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-17-2013, 12:11 PM
  2. I am trying to find the formula for the cell syntax below
    By computman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2011, 04:51 PM
  3. Syntax for inserting formula into a cell
    By jerseyguy1996 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2009, 12:20 PM
  4. Syntax to insert an array formula in a cell
    By mikeburg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-14-2006, 05:40 PM
  5. Insert more than 1 Row Syntax
    By blazzae in forum Excel Formulas & Functions
    Replies: 39
    Last Post: 09-06-2005, 03:05 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