Forums

General Betting

Welcome to Live View – Take the tour to learn more
Start Tour
There is currently 1 person viewing this thread.
MR. 69
28 Feb 10 08:51
Joined:
Date Joined: 15 Oct 06
| Topic/replies: 140 | Blogger: MR. 69's blog
Lets say I put the following formula in A3 since I want A3 to read whatever is in A1

(=A1)

If then A1 is cut and pasted elsewhere the formula in A3 no longer reads (=A1)

Is there anyway to make A3 always read whatever is in A1 regardless if there is any cutting and pasting going on.

Thanks,
Pause Switch to Standard View help needed from Excel experts
Show More
Loading...
Report MR. 69 February 28, 2010 9:02 AM GMT
By the way, I tried (=$a$1) but that didn't work
Report modk February 28, 2010 9:13 AM GMT
it should work, when you copy/cut the foruma "=$A$1" and put it in a different cell what does the forumla say?
Report modk February 28, 2010 9:14 AM GMT
and are we talking about cutting and pasting across different Tabs in Excel?
Report starfish and coffee February 28, 2010 9:19 AM GMT
Instead of cut and paste, if you copy and paste, then delete A1, the formula in A3 stays the same
Report fkqmz February 28, 2010 9:51 AM GMT
paste special, formulas
Report Lori February 28, 2010 9:56 AM GMT
try indirect(a1)

I must admit I've only ever used indirect once before though!
Report MR. 69 February 28, 2010 10:18 AM GMT
modk,

when I cut and paste the new formula reads the new paste location. I am actually not cutting. I just wrote that to simplify the problem. Things get messed up when I use the sort function and the cell contents get moved around.
Report starfish and coffee February 28, 2010 10:25 AM GMT
Same happens when you drag cell to a new location, formulas related to that cell go awol.
Cant see any problem with copy and paste or the other suggestions
Report MR. 69 February 28, 2010 10:31 AM GMT
Starfish, that would work if I were simply cutting and pasting, but I am using the sort function which is essentially the same as cut and paste. Lori, I tried the indirect function but I don't think it works in this case.
Report Lori February 28, 2010 10:38 AM GMT
Sorry mr. on further reflection indirect is a bit different to that, it keeps the same a1, even if you insert extra lines which is different :(
Report Lori February 28, 2010 10:39 AM GMT
When you're sorting, do you have any gaps? For instance columns a,b,c,d then a space to make it better viewing, then f?

I find that sometimes really buggers things up
Report starfish and coffee February 28, 2010 10:43 AM GMT
In those cases I always get the specific value in the cell by using C&P then value before doing the sort. If you want to retain the original formula you could introduce an extra column for that purpose. Dont know if that is practical for you
Report MR. 69 February 28, 2010 10:51 AM GMT
Thanks for you help. No, I don't have any gaps, Lori. I have one worksheet which I want to be automatically updated with the values from another worksheet. However, the data in this other worksheet is continuously moved around by sorting.
Report modk February 28, 2010 10:55 AM GMT
I stil dont understand what you mean.

If the following is in cell A3

=$A$1

Then it will display whatever is in A1

If you copy/cut and paste that into and different cell, say A10 what does the foruma say and what is displayed in the cell?
Report Ghetto Joe February 28, 2010 10:58 AM GMT
You can give a cell a named reference that can then be accessed anywhere within that workbook , so no need for sheet1A1 type of stuff

Go to the cell you want to keep track of and you'll see at the top of the screen a little white box just above A1 shows the cells address. Click on that reference and ttype in whatever name you want to reference that celll as i'e' call it STAKE. Whenever you want to access that cells value you can just enter =STAKE in any other cell within the whole of the workbook
Report Ghetto Joe February 28, 2010 11:04 AM GMT
MR. 69 looks like $A$1 isn't working for you as you're value is on a separate sheet that isn't referenced, if you want to use that method you need to reference the sheet also

Sheet1!$A$1

named references are much easier to keep track of =B2*STAKE
Report MR. 69 February 28, 2010 11:27 AM GMT
modk. if the value is pasted to cell A10, then the cell will read =$A$10. Joe, I'm not sure how practical this method is since I have data in several thousand cells in this worksheet.
Report Ghetto Joe February 28, 2010 11:35 AM GMT
Np Mr.69 not quite sure what the problem is with using $A$1

Lets say I put the following formula in A3 since I want A3 to read whatever is in A1

(=A1)

If then A1 is cut and pasted elsewhere the formula in A3 no longer reads (=A1)

Is there anyway to make A3 always read whatever is in A1 regardless if there is any cutting and pasting going on.

Thanks,


If you only want to track what is in A1, regardless of the original content being pasted elsewhere then either giving A1 a named reference or accessing A1 via a static reference (Sheet1!$a$1) will always show the value of what's in A1 regardless of the original content being moved elsewhere. Having thousands of cells in the workbook won't affect those.
Report Ghetto Joe February 28, 2010 11:43 AM GMT
Are you actually trying to keep things relative after copying and pasting ? i.e. you're tracking A3 but when sorted it moves to A1 ?
Report Ghetto Joe February 28, 2010 11:44 AM GMT
or just tracking the new value of A1 after everything has been pasted ?
Report Compound Magic February 28, 2010 12:02 PM GMT
TRY this formula in cell A3
=OFFSET(A3,-2,0,1,1)
Report MR. 69 February 28, 2010 1:22 PM GMT
Yes Joe. I want the cell to show the new value in A1 when everything has been sorted.

Compound Magic. I don't understand how that works but it does. So what would the formula be in Sheet 2 A10 if I want it to read whatever is in Sheet 1 A10?
Report Compound Magic February 28, 2010 1:38 PM GMT
=Sheet1!A10

The offset is telling cell A3 to read 2 cells above which is the -2
The 0 after the comma tells A3 that it is in the same column
the next 1 tells it to put the answer in the same row as A3
and the next 1 tells it to put the answer in the same column as A3
Report Compound Magic February 28, 2010 1:50 PM GMT
If you are having the same problem as before with
=Sheet1!A10

Try
=OFFSET(Sheet1!A1,9,0,1,1)
Report MR. 69 February 28, 2010 3:29 PM GMT
Thanks Compound. that worked perfectly until I wanted to delete cells after I had sorted them. After deleting I started getting the REF# result in the cells. Is there anyway around this, so that I can both sort and delete?
Report Compound Magic February 28, 2010 3:36 PM GMT
Instead of deleting a cell or row use clear. That leaves the cells where they are
if you delete a cell it moves other cells with the references no longer valid.

You can still sort. Did you try ~
=OFFSET(Sheet1!A1,9,0,1,1)
Report Compound Magic February 28, 2010 3:45 PM GMT
If you have a blank row after sorting and clearing that row between rows of data just
do another sort to put the blank row to the bottom.
Report Compound Magic February 28, 2010 3:48 PM GMT
Are you using excel 2007?
Report MR. 69 February 28, 2010 4:10 PM GMT
EXCEL 2003
Report MR. 69 February 28, 2010 4:13 PM GMT
Unfortunately I am running a macro that helps me delete all rows where the 1st cell has a 0 value. I don't think it is possible to do this by clearing instead of deleting.
Report Compound Magic February 28, 2010 4:24 PM GMT
Excel is great as you say you can do just about anything with it
I don't have excel 2003 so I am not sure where everything is located.

Without seeing what you are sorting and on which sheets it is hard to give
answers. Most of what you do would probably be more easily manipulated with
VBA (Macro's)

I will be online only for another 10 minutes or so. If you still have problems will try to help tomorrow.
Report Compound Magic February 28, 2010 4:33 PM GMT
Rows ("19:19") . ClearContents
Instead of Rows ("19:19") . Delete Shift:=xlUp
Report modk February 28, 2010 4:36 PM GMT
for spreadsheet integrity, you should never really be deleting rows/columns in excel.
Report IanP February 28, 2010 4:43 PM GMT
You probably need to get the macro to delete the cel(s) rather than entire row.
Post Your Reply
<CTRL+Enter> to submit
Please login to post a reply.

Wonder

Instance ID: 13539
www.betfair.com