Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Wu Wu is offline
external usenet poster
 
Posts: 36
Default simple but very hard question

I want to move to a cell according to junction of two cells.

e.g

I have data at RANGE("A5"), RANGE("C1"),
I want to move to the junction ---RANGE("C5")

1. How can I get the RANGE of the cell?
2. How can I move to the junction of two cells?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default simple but very hard question

Part of the reason it's "hard" is because all the information isn't available.

1. Do you want to do this with VBA or with a formula?
2. What is being copied?
3. How do you determine which row and which column are used to determine
the intersection? There are intersecting points at A1 and C5. Do you want
the largest row and column or the smallest row and column?

Barb Reinhardt



"Wu" wrote:

I want to move to a cell according to junction of two cells.

e.g

I have data at RANGE("A5"), RANGE("C1"),
I want to move to the junction ---RANGE("C5")

1. How can I get the RANGE of the cell?
2. How can I move to the junction of two cells?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default simple but very hard question

Not difficult if you want to move the to lower right-hand corner of the range:

Sub wu()
Set r1 = Range("A5")
Set r2 = Range("C1")
rrow = Application.WorksheetFunction.Max(r1.Row, r2.Row)
ccol = Application.WorksheetFunction.Max(r1.Column, r2.Column)
Application.Goto reference:=Cells(rrow, ccol)
End Sub

--
Gary''s Student - gsnu200752


"Wu" wrote:

I want to move to a cell according to junction of two cells.

e.g

I have data at RANGE("A5"), RANGE("C1"),
I want to move to the junction ---RANGE("C5")

1. How can I get the RANGE of the cell?
2. How can I move to the junction of two cells?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default simple but very hard question

Don't know if I follow exactly what you're looking for.

XL has an "intersection" operator, which is simply a <Space.

So, if C5 contained, say 100, then:

=5:5 C:C

Would return 100.


--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Wu" wrote in message
...
I want to move to a cell according to junction of two cells.

e.g

I have data at RANGE("A5"), RANGE("C1"),
I want to move to the junction ---RANGE("C5")

1. How can I get the RANGE of the cell?
2. How can I move to the junction of two cells?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy question for you, but hard for me. AnimatorElf Excel Worksheet Functions 3 March 29th 06 08:09 PM
Arrays Take too long. VERY HARD QUESTION. my head hurts : / belly0fdesire Excel Worksheet Functions 1 August 6th 05 12:47 AM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Simple VBA question Mark1 Excel Discussion (Misc queries) 1 November 30th 04 10:25 PM
Simple but hard yeshuawatso Excel Worksheet Functions 7 November 26th 04 03:16 PM


All times are GMT +1. The time now is 06:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"