Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default refer to cell using the value in Row 1 and column A

I need to locate a cell that is the intersection of cells in row 1 and column
A by matching text . For example find "Allowed" in Row 1 and "WaterTemp" in
Column A and give me the cell address at the intersection. I tried nesting
two match functions inside index function but it hiccupped.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default refer to cell using the value in Row 1 and column A

=index(A1:Z26,Match("WaterTemp",A1:A26,0),Match("A llowed",A1:Z1,0))

--
Regards,
Tom Ogilvy


"Chip" wrote in message
...
I need to locate a cell that is the intersection of cells in row 1 and

column
A by matching text . For example find "Allowed" in Row 1 and "WaterTemp"

in
Column A and give me the cell address at the intersection. I tried nesting
two match functions inside index function but it hiccupped.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default refer to cell using the value in Row 1 and column A

Tom,
Thanks for the quick response
Your response is what I tried in VBA but I get "Can't set index
property..."error. I am grabbing a value from Access and need to insert it
into the desired cell. I did use a clunky routine to find the text and grab
the column from row 1 and the row from column A to construct an address. It
works but seems inefficient.


"Tom Ogilvy" wrote:

=index(A1:Z26,Match("WaterTemp",A1:A26,0),Match("A llowed",A1:Z1,0))

--
Regards,
Tom Ogilvy


"Chip" wrote in message
...
I need to locate a cell that is the intersection of cells in row 1 and

column
A by matching text . For example find "Allowed" in Row 1 and "WaterTemp"

in
Column A and give me the cell address at the intersection. I tried nesting
two match functions inside index function but it hiccupped.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default refer to cell using the value in Row 1 and column A

set rw = Range("A1:A26).Find("WaterTemp")
set col = Range("A1:Z1).Find("Allowed")
cells(rw.row,col.col).Value = "Whatever"

--
Regards,
Tom Ogilvy


"Chip" wrote in message
...
Tom,
Thanks for the quick response
Your response is what I tried in VBA but I get "Can't set index
property..."error. I am grabbing a value from Access and need to insert it
into the desired cell. I did use a clunky routine to find the text and

grab
the column from row 1 and the row from column A to construct an address.

It
works but seems inefficient.


"Tom Ogilvy" wrote:

=index(A1:Z26,Match("WaterTemp",A1:A26,0),Match("A llowed",A1:Z1,0))

--
Regards,
Tom Ogilvy


"Chip" wrote in message
...
I need to locate a cell that is the intersection of cells in row 1 and

column
A by matching text . For example find "Allowed" in Row 1 and

"WaterTemp"
in
Column A and give me the cell address at the intersection. I tried

nesting
two match functions inside index function but it hiccupped.






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
refer to whole column Ken Excel Discussion (Misc queries) 2 February 3rd 10 10:58 PM
How can I refer to an entire column? Katyounge New Users to Excel 4 September 24th 07 02:10 PM
In VBA, How to Refer to Cell In Specific Column But Selected Rows? PBJ Excel Discussion (Misc queries) 7 August 3rd 07 05:56 PM
How to refer to current column in a formula? jmg092548 Excel Discussion (Misc queries) 4 August 10th 05 08:00 PM
Refer to a column Patti[_2_] Excel Programming 3 January 19th 04 07:46 PM


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

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

About Us

"It's about Microsoft Excel"