Forum Discussion

SamFares's avatar
SamFares
Brass Contributor
Nov 20, 2019
Solved

Make all cells references in a long formula absolute

Hello All:

 

I have a long formula with many different cell references. Is there a way to make all the different cells references absolute in one shot without F4 every cell reference in the formula?

For example i want all G77 in the formula below to be $G$77

=MIN('LC0-1.4D'!G77,'LC1-1.2D +1.6L'!G77,'LC2-1.2D+1.6L,M2M4M6,LL=0 '!G77,'LC3-1.2D+1.6LM1M3M5M7,LL=0 '!G77,'LC4-1.2D+1.6L M3M6,LL=0 '!G77,'LC5-1.2D+1.6LM1M4M7,LL=0 '!G77,'LC6-1.2D+1.6L M2M5,LL=0 '!G77)

 

Thanks,

Sam 

  • SamFares 

    Sam, you shall select entire formula to do that.

    In cell:

    F2 (or double click)->Ctrl+End->Ctrl+Shift+Home->F4

     

    In formula bar

    Ctrl+A->F4

     

14 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    SamFares 

    Sam, you shall select entire formula to do that.

    In cell:

    F2 (or double click)->Ctrl+End->Ctrl+Shift+Home->F4

     

    In formula bar

    Ctrl+A->F4

     

  • SamFares 

    Define a Name to reference the cell (by default it will be an absolute reference) then use 

    Apply Names...

    on the Name Manager ribbon tab to replace the direct reference by the Name.

     

    Not that I have much experience of doing this, since I ban direct references from my workbooks in the first place.

     

  • PReagan's avatar
    PReagan
    Bronze Contributor

    Hello SamFares,

     

    To my knowledge, there is no quicker way than simply using F4 on each cell reference. My suggestion would have been to use find and replace (i.e. find G and replace with $G$) but seeing as though your formula uses cell references beyond the first 26 columns (i.e. LC1, LC2, LL, etc...) this would complicate things. Without creating a macro, I'm afraid my best suggestion is to simply use F4.

     

    Sorry if this isn't the answer you were looking for!

Resources