+ Reply to Thread
Results 1 to 4 of 4

convert r1c1 to a1 formula

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    Bangalore, INDIA
    MS-Off Ver
    O365
    Posts
    54

    convert r1c1 to a1 formula

    Is there anyone who can help me to convert the the following VBA code to regular Excel Formula(A1)?

    "=INDEX((INDIRECT(R3C &""!$A$6:$A$1700"")),MATCH(LARGE(INDEX((INDIRECT(R3C &""!$E$6:$E$1700""))+(ROWS((INDIRECT(R3C &""!$E$6:$E$1700"")))-ROW((INDIRECT(R3C &""!$E$6:$E$1700""))))/10^5,0),ROWS(R1:R[-3])),INDEX((INDIRECT(R3C &""!$E$6:$E$1700""))+(ROWS((INDIRECT(R3C &""!$E$6:$E$1700"")))-ROW((INDIRECT(R3C &""!$E$6:$E$1700""))))/10^5,0),0))"

    Thanks in Advance!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,276

    Re: convert r1c1 to a1 formula

    It depends which cell it's in.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    02-03-2012
    Location
    Bangalore, INDIA
    MS-Off Ver
    O365
    Posts
    54

    Re: convert r1c1 to a1 formula

    Quote Originally Posted by rorya View Post
    It depends which cell it's in.
    Please find attached working file. I have recorded a Macro, it was working perfectly, Now I Couldn't get back to the regular A1 notation formula in B4:D18 as i'm getting error in the vba code.
    Intended to identify the top 15 students in each exam based on their Total Marks along with other criteria. I couldn't recall it. Big Nightmare

    I often use the below method to convert VBA code to A1 formula, but this time no luck.

    https://learn.microsoft.com/en-us/of...convertformula
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: convert r1c1 to a1 formula


    Hi,

    since the initial post I wanna say that the formula style no matters as both work …

    The issue is you obviously did not check if your Excel version has the Formula2R1C1 property !
    So replace it with the original FormulaR1C1 well working on my side with an older Excel version …
    And once it works as expected you can see the classic formula style within the cell !
    No need to convert anything as Excel does it natively …
    Last edited by Marc L; 12-02-2022 at 05:34 PM.

+ 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. Convert formula from R1C1 to A1
    By hkbhansali in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2018, 12:06 PM
  2. [SOLVED] R1C1 If then Formula
    By eazy899 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2018, 02:51 AM
  3. Using R1C1 formula in VBA changes all references from CELL("address") function to R1C1?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2014, 04:17 PM
  4. [SOLVED] Convert A1 formulas to R1C1 Formula Array
    By Wheelie686 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-28-2013, 07:38 AM
  5. [SOLVED] Convert Range of a Pivot Table to R1C1 format
    By Gorilla in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-29-2013, 09:49 AM
  6. [SOLVED] Macro to convert excel to R1C1
    By djwaz69 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2012, 06:54 AM
  7. [SOLVED] Need to Convert Formula R1C1 into A1-style but the Formula String exceeds 255 characters
    By VBA_Gary in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2012, 12:09 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