+ Reply to Thread
Results 1 to 3 of 3

VBA FormulaArray Reference not converting from R1C1 to A1

  1. #1
    Registered User
    Join Date
    06-05-2017
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    11

    VBA FormulaArray Reference not converting from R1C1 to A1

    I have a very large array formula (I consolidated many calculations into one) that I need to apply by VBA, however it is not converting one of the references from R1C1 to A1 (although other instances of these references are converting correctly).

    My code is below.
    All instances of RC9 convert to $I2, except the one in the following line of text:
    Please Login or Register  to view this content.
    When I stop the code before turning the reference style back to A1, I can see that the RC9 reference in the line above is entered in the formula as R[7]C[458]. The rest of the RC9 references have been entered in correctly as: RC9.
    When the reference style is changed back to A1, all the RC9 references convert to: $I2, but the R[7]C[458] reference displays as: RC9.

    I would greatly appreciate any troubleshooting ideas anyone might have to get this reference to convert correctly. Thank you.


    Please Login or Register  to view this content.

  2. #2
    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,428

    Re: VBA FormulaArray Reference not converting from R1C1 to A1

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.

    Why are you using R1C1 format? Why not just use $I2 to start with?
    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


  3. #3
    Registered User
    Join Date
    06-05-2017
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    11

    Re: VBA FormulaArray Reference not converting from R1C1 to A1

    Thanks for that, I recorded the macro which automatically put the formula in R1C1 format. There were other issues also including trying to apply an array formula to a table.
    To get around it all, I changed the formula to A1 format and converted the data to a table after applying the formulas.

+ 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. Range.FormulaArray - R1C1 formula in A1-style worksheet doesn't work??
    By Merf in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-19-2020, 08:33 AM
  2. R1C1 notation in a FormulaArray
    By n043480 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2016, 05:29 AM
  3. [SOLVED] Replace part of FormulaArray with R1C1 notation with defined variable
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2013, 11:02 AM
  4. Using R1C1 to represent a entire column in VBA formulaArray
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 01-18-2012, 02:22 PM
  5. Converting A1 to R1C1 and getting the values
    By kamdrum in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2009, 09:55 AM

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