Forums

General Betting

Welcome to Live View – Take the tour to learn more
Start Tour
There is currently 1 person viewing this thread.
Lori
26 Mar 10 11:39
Joined:
Date Joined: 20 Apr 04
| Topic/replies: 50,578 | Blogger: Lori's blog
Im rearranging a spreadsheet.

Is there a way to find out which cells rely on another cell?

What I'd like to do is click on a cell, and have all other cells that use it highlighted. An alternative would be a "move" command that allows me to cut/paste a cell to a new location without confusing formulae that relied on it.

Thanks for any help.
Pause Switch to Standard View Excel Question
Show More
Loading...
Report Ghetto Joe March 26, 2010 11:15 AM GMT
If you double click on a cell with some formula in that relies on other cells it should highlight the other cells involved in that calculation
Report Lori March 26, 2010 11:19 AM GMT
Cheers Joe, that's backwards to what I need though.

Example off the top of my head

In B2 I'd have the amount of time left in a soccer match

I'd have several other cells that relied on this in their formulae (match odds, over under 2.5, etc) and would like to see which ones they were without clicking on every other cell.
Report Ghetto Joe March 26, 2010 11:20 AM GMT
If you use cut, instead of dragging the cell, once you then paste the cell elsewhere it should retain any of the original references
Report Lori March 26, 2010 11:21 AM GMT
Awesome, I'll test that out. Thanks.
Report Ghetto Joe March 26, 2010 11:26 AM GMT
K, I see what your trying to get at , can't think of any simple command to do it. You might have to do some VB code to search the sheet for any reference to that cell reference then highlight or list them
Report Ghetto Joe March 26, 2010 11:40 AM GMT
You can do what you wnated just using find Lori.

Control+F just make sure in the options you specify to look in formulas, you could then just step thru all cell using that reference by clicking find next
Report Lori March 26, 2010 11:44 AM GMT
haha, excellent. Sometimes the obvious isn't obvious.

That will do just fine, thanks again :)
Report billy hill March 26, 2010 12:40 PM GMT
or use the formulas/auditing toolbar and Trace dependents.
(depends on version of excel). auditing toolbar might be an add-in in earlier excel versions
Report Lori March 26, 2010 5:35 PM GMT
That's also awesome too billy.

Excuse my apparent hyperbole in this thread, I'm genuinely really happy to have got some decent advice and I've run out of different words to use :)
Report King John Part March 26, 2010 7:02 PM GMT
lori had to go for a smoke after this
Report Lori March 26, 2010 7:04 PM GMT
The trace dependents function thing is actually so amazing I may have to get Danny Morrison to describe it for me. All the methods in this thread helped me a lot , but the trace arrows are the nuts.
Report King John Part March 26, 2010 7:09 PM GMT
maybe coney could write a rap about them :)
Report Compound Magic March 27, 2010 12:50 AM GMT
Lori not sure if you have realized ~
Trace dependents when clicked once shows arrows to direct dependents
when clicked more than once shows dependents on the dependents
Click till it beeps and will show all dependencies.
Same with precedents.
cheers
Report Lori March 27, 2010 12:16 PM GMT
Hadn't spotted that either CM, although it's not what I need for this one, I'm going to have good fun with that I can tell :) Cheers.
Report Compound Magic March 27, 2010 12:29 PM GMT
Lori maybe this is what you want a simple macro. This one does Precedents to do
Dependents substitute Precedents in line 5 to Dependents.
This, when run will put all cells referenced by selected cell in column 10 starting at
row 1 ($J$1)

Sub PrecedentCells()
Dim I As Long
Dim cell As Range
I = 1
Selection.Precedents.Select
For Each cell In Selection
Cells(I, 10) = cell.Address
I = I + 1
Next cell
End Sub
Report Lori March 27, 2010 1:11 PM GMT
Ok, this would be a good time for me to start using macros. I've never done it before but always known I would need to in the end so I'll look closer on Monday (when the sport dies down a bit) and go through it stage by stage with google.

Thanks again.
Post Your Reply
<CTRL+Enter> to submit
Please login to post a reply.

Wonder

Instance ID: 13539
www.betfair.com