+ Reply to Thread
Results 1 to 4 of 4

Absolute reference for part of formula

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    87

    Absolute reference for part of formula

    Is it possible to have an absolute reference for part of a vba formula...
    I want to copy a formula in each of the cells up to the last column (which varies) but there is a constant in P2.

    I currently have

    Please Login or Register  to view this content.
    The first R[-5]C[13] needs to be absolute .. is this possible?

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Absolute reference for part of formula

    If R[-5]C[13] must refer $P$2 you may use R2C16 instead.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Absolute reference for part of formula

    Nonsense deleted. Blonde moment!
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Absolute reference for part of formula

    In your spreadsheet, change the formula set up to R1C1. Paste your formula into a cell. Now change the R1C1 back to the standard method, change your formula to make P2 absolute. Now change back to R1C1. Copy the formula and paste into your VBA. Don't forget to change R1C1 back to standard.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 5
    Last Post: 09-21-2012, 02:08 PM
  2. Absolute cell reference in formula
    By randolphoralph in forum Excel General
    Replies: 2
    Last Post: 10-03-2011, 10:17 AM
  3. ABS (absolute) formula cell reference
    By Willih in forum Excel General
    Replies: 4
    Last Post: 11-29-2010, 08:52 PM
  4. change absolute reference in a formula
    By mingali in forum Excel General
    Replies: 6
    Last Post: 09-13-2009, 11:03 PM
  5. Replies: 1
    Last Post: 01-07-2005, 10:06 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