Absolute, Relative and Partial Relative Cell References

User avatar
BobH
UraniumLounger
Posts: 9266
Joined: 13 Feb 2010, 01:27
Location: Deep in the Heart of Texas

Absolute, Relative and Partial Relative Cell References

Post by BobH »

Absolute=Reference is to a specific cell; both column and row values are prefixed by "$", e.g."$A$8" refers to cell in the 8th row of column A and to no other

Relative=Reference is to a cell relative to the location of where it is entered; neither column or row is prefixed

Partial Relative=Reference is relative to a particular column or row depending on whether the row or column, respectively, is prefixed with a "$", e.g. "$A8" makes the column "A" absolute but the row is relative; "A$8" makes the column relative to the current column but the row is absolute, row 8

How am I doing so far?

I seem to recall that there is a function key that allows the user to change the prefix of the row and column by adding or removing the "$". When I searched for this information on the Web, I found that F4 is supposed to do that; however it does not do so on my system using the US keyboard setting. Is F4 the correct key? If so, what should I look for to determine why it doesn't work? Could it be a system setting, or do I have a bad keyboard? I've not run into any function key problems in other applications, but I don't really use them a lot either.

TIA :cheers: :chocciebar: :thankyou:
Bob's yer Uncle
(1/2)(1+√5)
Dell Intel Core i5 Laptop, 3570K,1.60 GHz, 8 GB RAM, Windows 11 64-bit, LibreOffice,and other bits and bobs

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Absolute, Relative and Partial Relative Cell References

Post by HansV »

Your description of absolute/relative references is correct!

And F4 is indeed the function key to use. Select a cell reference within a formula. To take a simple example:

=2*A8+13

Either click in the formula bar and select A8, or press F2 to edit the formula in the cell itself and select A8. The cell reference will be highlighted.
Pressing F4 toggles A8 -> $A$8 -> A$8 -> $A8 -> A8
Best wishes,
Hans

User avatar
BobH
UraniumLounger
Posts: 9266
Joined: 13 Feb 2010, 01:27
Location: Deep in the Heart of Texas

Re: Absolute, Relative and Partial Relative Cell References

Post by BobH »

Thank you, Hans.

I tried it but with the same result. I suspect that the keyboard is at fault but cannot think of any way to check to affirm or refute the suspicion.

Can you suggest a way to test the keyboard?
Bob's yer Uncle
(1/2)(1+√5)
Dell Intel Core i5 Laptop, 3570K,1.60 GHz, 8 GB RAM, Windows 11 64-bit, LibreOffice,and other bits and bobs

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Absolute, Relative and Partial Relative Cell References

Post by HansV »

Start any application, e.g. Notepad (or Excel, for that matter).
Alt+F4 should close the application (after asking to save changes, if necessary). If it doesn't, the F4 key may be faulty.
Best wishes,
Hans

User avatar
BobH
UraniumLounger
Posts: 9266
Joined: 13 Feb 2010, 01:27
Location: Deep in the Heart of Texas

Re: Absolute, Relative and Partial Relative Cell References

Post by BobH »

I opened Notepad and gave the Alt+F4 a try. The only thing that happened was that the File menu option was highlighted, but it did not open the drop down list.

Guess I will give this old keyboard a thorough going over with compressed air to see if it will help. If not, I think I'll take it apart, a la Chris Greaves, to see if I can learn anything or add to my stash of strange parts before buying another.

Again, Thank you Hans!
Bob's yer Uncle
(1/2)(1+√5)
Dell Intel Core i5 Laptop, 3570K,1.60 GHz, 8 GB RAM, Windows 11 64-bit, LibreOffice,and other bits and bobs

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Absolute, Relative and Partial Relative Cell References

Post by Rudi »

HansV wrote:Your description of absolute/relative references is correct!
Bob, Han's meant to say, "you are absolutely right, relatively speaking!" :grin:

What you call "partial" referencing, I cal "mixed" references.

Now your next lesson is to switch Excel to the R1C1 notation and learn the syntax for aboslute and relative referencing in that style. :evilgrin:
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.