+ Reply to Thread
Results 1 to 8 of 8

Absolute referencing across multiple cells

Hybrid View

chriswiec Absolute referencing across... 12-31-2012, 10:27 AM
JosephP Re: Absolute referencing... 12-31-2012, 10:32 AM
DavidFC Re: Absolute referencing... 02-20-2019, 12:20 PM
Alf Re: Absolute referencing... 12-31-2012, 10:33 AM
Moo the Dog Re: Absolute referencing... 12-31-2012, 10:33 AM
chriswiec Re: Absolute referencing... 12-31-2012, 10:52 AM
chriswiec Re: Absolute referencing... 12-31-2012, 10:55 AM
JosephP Re: Absolute referencing... 12-31-2012, 11:32 AM
  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    Portland,OR
    MS-Off Ver
    Excel 2010
    Posts
    49

    Absolute referencing across multiple cells

    Guys,

    If I highlight a group of cell say from F4:H25 and in each cell I have a different formula how do I when the range is highlighted make each cell formula an absolutre reference i know pressing F4 will do it to one cell but it does not spread it across the range of cells highlighted any ideas?

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Absolute referencing across multiple celss

    you need vba
    sub makeAbsolute()
    for each rcell in selection
     rcell.formula = application.ConvertFormula(rcell.formula, xlA1, xla1, xlabsolute)
     next rcell
    end sub
    just select the cells and then run the macro
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    04-15-2018
    Location
    Mexicali, Baja California, Mexico
    MS-Off Ver
    2010 & 2016
    Posts
    18

    Re: Absolute referencing across multiple celss

    OMG I love this little bit of code. Awesome! Thank you so much.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,787

    Re: Absolute referencing across multiple celss


  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Absolute referencing across multiple celss

    Try this... say you have, in cells D1:D4 -
    D1: =A1*B1
    D2: =A2*B1
    D3: =A3*B1
    D4: =A4*B1

    And you want to absolutely reference B1 in all 4 formulas. Select cells D1:D4, go into the formula bar, change the B1, to $B$1, then hit Ctrl + Enter.

    - Moo

  6. #6
    Registered User
    Join Date
    12-27-2012
    Location
    Portland,OR
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Absolute referencing across multiple celss

    Thanks everyone thats great!

  7. #7
    Registered User
    Join Date
    12-27-2012
    Location
    Portland,OR
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Absolute referencing across multiple celss

    How would I change to $A4:$B9 or if i wanted to change the cell formula to =($v4-$g4)/10 can I change the code to do that somehow?

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Absolute referencing across multiple cells

    change xlabsolute to xlRelRowAbsColumn

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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