Copying a finite cell (not finite cell psotition) as it moves around after various "sorts".

L

Legacy 274910

Guest
How can I copy the cell value in a cell (for example a value that may change from time to time as it is dependent on other data) to another cell, where the cells exist on different rows and rows that I will be sorting regularly in different ways?

(so the target cell and reference cell are both moving).

In other words, can each cell (not cell location) in excel be finitely referenced?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Re: Copying a finite cell (not finite cell position) as it moves around after various "sorts".

Name the cells. Please see Excel help for details.

Gary

Hi, I have tried this and used the Excel help but unless there are further steps to take all this appears to do is (again) just copy the relative cell, not the specific one.

Any expansion on how to use "naming a cell" to copy the specific cell each time?
 
Upvote 0
Re: Copying a finite cell (not finite cell position) as it moves around after various "sorts".

Assuming a cell is named "Test" (G10 for example)

Copy value of cell "G10" to cell "A1" with a formula in "A1"

Formula in A1:
=Test

Using VBA:

ActiveSheet.Range("A2").Value = ActiveSheet.Range("Test").Value

It should no longer matter what row or column the cell named "Test" is located in or how its position was changed.

Hope that helps.

Gary
 
Upvote 0
Re: Copying a finite cell (not finite cell position) as it moves around after various "sorts".

Ok, I'm going to seem inexperienced here. I don't know much about vba or how to use it. Upon research, I don't have the "tools" drop-down as explained when I searched for help. Perhaps I have a basic version of excel?
 
Upvote 0
Re: Copying a finite cell (not finite cell position) as it moves around after various "sorts".

It might help if you tell us which version of Excel you are using as M$ in their infinite wisdom has managed to "hide" some features that many of us take for granted in some of the more recent versions of Excel.

Do a search on "named ranges" in excel help which will take care of part of your problem, then you need replace the cell reference (i.e. A1 with the name)
 
Upvote 0
Re: Copying a finite cell (not finite cell position) as it moves around after various "sorts".

OK, I have found the named-ranges section, I have read excel help all about named ranges and I'm still stuck on the fundamental problem that while I can name a cell (eg. "BOB"), I can make another cell (not named) = BOB, whenever I sort the sheet, the cell with no name reads some other cell and not BOB.

I'll play around more, perhaps name both cells?
 
Upvote 0
Re: Copying a finite cell (not finite cell position) as it moves around after various "sorts".

Naming both cells did nothing helpful.

I must be not doing enough because all I am doing is referring to a named cell that after a sort moves but whose name remains in the intial position.

If I name the cell in A20 and call it BOTTOM which contains some data I shall refer to as LEGS, after I have sorted my sheet, the LEGS move but the BOTTOM remains in the same place.

This means any cel referencing BOTTOM simply references the cell in A20.
 
Upvote 0
Re: Copying a finite cell (not finite cell position) as it moves around after various "sorts".

This means any cel referencing BOTTOM simply references the cell in A20

Yes, that is how naming works and it obviously is not solving your problem. Sorry for misinterpreting your question and leading you to believe you were doing something wrong.

I usually find "custom autofilters" more useful than sorting to find data I need. Have you tried that?

Gary
 
Upvote 0
Re: Copying a finite cell (not finite cell position) as it moves around after various "sorts".

I will, of course look into "custom autofilters" for a way around my issue. My question remains though, is Excel really missing such a simple trick as being able to reference specific data even though it moves (in terms of cell reference, but ot in value or meaning) upon sorting?

PS. Why on this forum is it so painfully difficult to type? Some kind of "live updating/autosave"? Below I will type the same PS without correcting.
PS. Wy on thsforum s t o pinfully dfficult t type?Sme in o "lie updig/atsave"? Beow I wil tpe the same S ithout corcting.
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top