+ Reply to Thread
Results 1 to 5 of 5

Record formulae to cells using absolute addressing [eg: $a$1]

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    16

    Record formulae to cells using absolute addressing [eg: $a$1]

    I want to apply formulae to a range of cells which mirrors certain data from another sheet using absolute referencing.
    This is the format which I want to see:
    =if(‘SheetName’!$’x’$’y’<>” ”,‘SheetName’!$’x’$’y’,” ”)

    The code below does that successful when there is no condition applied, ie: ='First'!$D$7<>""

    Replacing the active statement in the code with:
    Range(Chr(64 + a) & b).Formula = "=if(‘First’!" & "$" & Chr(67 + a) & "$" & b <> "" & "," & "‘First’!" & "$" & Chr(67 + a) & "$" & b & "," & "" & ")"
    places TRUE in each cell and no formula.

    As far as I can see the statement above are correct, but the “,” does not seem to be recognised in both places. Replacing that set with chr(44) does not assist me.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Record formulae to cells using absolute addressing [eg: $a$1]

    Hi, BrianCob,

    maybe like this (mind the ' before and after First!)
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Last edited by HaHoBe; 05-31-2014 at 01:48 AM.
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    05-22-2014
    Posts
    16

    Re: Record formulae to cells using absolute addressing [eg: $a$1]

    That my friend, once I used the actual Sheet names in my project, worked perfectly.
    Was the Sheets("Second"). or having the quotes before the inequality sign <>? I had tried using the bank of 4 quotes """".
    Anyway, it gives me food for thought.

    Many thanks.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Record formulae to cells using absolute addressing [eg: $a$1]

    Hi, BrianCob,

    I think when you copied in the sheet names with the single quotes you didn´t get the correct ones (I was asked for a file name instead of accepting the sheetname as these quotes from your code looked a bit curved).

    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    05-22-2014
    Posts
    16

    Re: Record formulae to cells using absolute addressing [eg: $a$1]

    I just found that, while it may not be good practice, I could omit the Sheets("Second"). but I did need the bank of 4 quotes and the quote before the inequality.

+ 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: 0
    Last Post: 04-08-2013, 05:08 AM
  2. Replies: 0
    Last Post: 07-06-2010, 06:46 AM
  3. [SOLVED] How to convert relative to absolute addressing instantly in Excel
    By loudun in forum Excel General
    Replies: 3
    Last Post: 11-24-2005, 01:40 PM
  4. Addressing cells on inactive sheets
    By John Duffus in forum Excel General
    Replies: 4
    Last Post: 10-22-2005, 02:05 PM
  5. Making Formulae Absolute
    By cadboy in forum Excel General
    Replies: 1
    Last Post: 01-13-2005, 08:33 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