+ Reply to Thread
Results 1 to 7 of 7

Error in using formula array

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Error in using formula array

    Hello everyone
    I'm trying to use this line of code but i got an error
    Please Login or Register  to view this content.
    The error : Unable to set the formula array property of the range class
    run time error 1004
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Error in using formula array

    From the Excel help file.

    Remarks
    If you use this property to enter an array formula, the formula must use the R1C1 reference style, not the A1 reference style (see the second example).
    ...

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Error in using formula array

    Hi Yasser,

    I don't think there is anything wrong with your code! Have you checked your data?

    I put this into a test sheet with some dummy data in the names you nominated.

    I tested the formula in the worksheet, and it worked.

    I then tested it in a macro, and I ended up with the formula in cell D7 as you expected.

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

    Attached Files Attached Files
    Last edited by David A Coop; 08-18-2015 at 01:39 AM.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Error in using formula array

    Thanks a lot Mr. quekbc
    Thank you very much Mr. David ..
    I checked my sheet again and discovered that it is not allowed to put array formula in merged cell
    So the merge was the cause of the problem
    Thanks a lot for swift and great help

  5. #5
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Error in using formula array

    You can't put an array formula in a merged cell, but you can merge cells that contain array formulas.

    I.e., Unmerge, insert array formula, merge it again.

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Error in using formula array

    Quote Originally Posted by quekbc View Post
    You can't put an array formula in a merged cell, but you can merge cells that contain array formulas.

    I.e., Unmerge, insert array formula, merge it again.
    I discovered that piece of information after correcting the error .
    Thanks for sharing this piece of useful information

  7. #7
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Error in using formula array

    Unmerge, insert array formula, merge it again.
    I bow to the wisdom of more experienced ExcelForum contributors, but I really HATE merged cells. I am usually advising folk to avoid them!

    DAC

+ 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] Array formula and the #DIV/0 error
    By at325 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-15-2015, 10:35 AM
  2. SUMIF formula error with Array
    By cjn5465 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-05-2015, 06:40 PM
  3. Array formula error
    By vonmunchy in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-13-2013, 09:42 AM
  4. [SOLVED] #VALUE! Error In With Array Formula
    By DDM64 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2013, 11:17 AM
  5. Array formula error
    By tkellymd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2012, 02:50 PM
  6. #N/A Error in Array Formula
    By jrarmstrong4 in forum Excel General
    Replies: 7
    Last Post: 11-30-2011, 06:02 PM
  7. Error #NUM! - Array Formula
    By Shermaine2010 in forum Excel General
    Replies: 2
    Last Post: 08-21-2011, 03:44 AM

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