Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sonya795
 
Posts: n/a
Default Fabricating Cell Address


Hello everyone.

I need your help.
I am programmatically determine the coordinates of needed cell.
For example, I am interested in "=R18C3"
But R18 was found using "=MATCH(""ITEM_ID"",C[-1],0) + 3" THIS EQUALS
to 18. So, I know that my desired cell located in row 18.

Is there a way in Excel 97, to concatenate or join this two together.
I tried “=R[(MATCH(""ITEM_ID"",C[-1],0) + 3)C[1]”. But it does not
work.
I also tried =R&[ MATCH(""ITEM_ID"",C[-1],0) + 3}&C[1]…

Is there a way to fabricate the cell address?

Thank you in advance,

Sonya


--
Sonya795
------------------------------------------------------------------------
Sonya795's Profile: http://www.excelforum.com/member.php...o&userid=26110
View this thread: http://www.excelforum.com/showthread...hreadid=396805

  #2   Report Post  
Bryan Hessey
 
Posts: n/a
Default


Sonja,

I don't think you can directly access via R1C1 the way you are trying,
but you can use the 'offset' as you calculated to adjust the Offset
access, thus
=Offset(A1,18-1,0,1,1) would give cell A18 as would
=Offset(A1,(MATCH(""ITEM_ID"",C[-1],0)+3)-1,0,1,1)

For your stated purpose the Offset is, A1 = reference point, row
increment, column increment, 1,1

Hope this helps.


Sonya795 Wrote:
Hello everyone.

I need your help.
I am programmatically determine the coordinates of needed cell.
For example, I am interested in "=R18C3"
But R18 was found using "=MATCH(""ITEM_ID"",C[-1],0) + 3" THIS EQUALS
to 18. So, I know that my desired cell located in row 18.

Is there a way in Excel 97, to concatenate or join this two together.
I tried “=R[(MATCH(""ITEM_ID"",C[-1],0) + 3)C[1]”. But it does not
work.
I also tried =R&[ MATCH(""ITEM_ID"",C[-1],0) + 3}&C[1]…

Is there a way to fabricate the cell address?

Thank you in advance,

Sonya



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=396805

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

No tested, but try

ActiveCell.FormulaR1C1 = "=R" & Application.Match("ITEM_ID", _
ActiveCell.Offset(0, -1).EntireColumn, 0) + 3 & "C3"


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sonya795" wrote in
message ...

Hello everyone.

I need your help.
I am programmatically determine the coordinates of needed cell.
For example, I am interested in "=R18C3"
But R18 was found using "=MATCH(""ITEM_ID"",C[-1],0) + 3" THIS EQUALS
to 18. So, I know that my desired cell located in row 18.

Is there a way in Excel 97, to concatenate or join this two together.
I tried "=R[(MATCH(""ITEM_ID"",C[-1],0) + 3)C[1]". But it does not
work.
I also tried =R&[ MATCH(""ITEM_ID"",C[-1],0) + 3}&C[1].

Is there a way to fabricate the cell address?

Thank you in advance,

Sonya


--
Sonya795
------------------------------------------------------------------------
Sonya795's Profile:

http://www.excelforum.com/member.php...o&userid=26110
View this thread: http://www.excelforum.com/showthread...hreadid=396805



  #4   Report Post  
Sonya795
 
Posts: n/a
Default


Brain,
Thank you very much,
It works perfectly.
Sonya


--
Sonya795
------------------------------------------------------------------------
Sonya795's Profile: http://www.excelforum.com/member.php...o&userid=26110
View this thread: http://www.excelforum.com/showthread...hreadid=396805

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
ADDRESS function - dynamic input cell claytorm Excel Discussion (Misc queries) 1 June 28th 05 02:05 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
How do I find the contents of a cell using the "ADDRESS" function. sweeney Excel Worksheet Functions 2 April 5th 05 03:23 AM
Using result from ADDRESS function as a cell reference itself LShutzberg Excel Worksheet Functions 3 December 12th 04 11:18 AM


All times are GMT +1. The time now is 12:24 PM.

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"