Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default how to identify a cell address

I need to find a cell "FIND" then take a number from the 8th column and
allocate this number with some percentage (30%,40%,30%) to the cells above +1
row up, +2 row up, and +3 row up. Using vlookup I'm getting the number bu how
to find the cell's address and the addresses of the cells above to assign
them the %?

Dim rngCell As Range, rngName As Range
Dim num
Set rngName = Worksheets("Legend").Range("C3:J500")
num= Application.VLookup("FIND", rngName, 8, False) ' Ok
Set rngCell = Application.VLookup("FIND", rngName, 8, False) ' the error!!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how to identify a cell address

Dim rngCell As Range, rngName As Range
Set rngName = Worksheets("Legend").Range("C3:J500")
num= Application.Match("FIND", rngName.Columns(1), 0)
set rngCell = rngName(num,8)
msgbox rngCell.Address

--
Regards,
Tom Ogilvy



"Alex" wrote in message
...
I need to find a cell "FIND" then take a number from the 8th column and
allocate this number with some percentage (30%,40%,30%) to the cells above

+1
row up, +2 row up, and +3 row up. Using vlookup I'm getting the number bu

how
to find the cell's address and the addresses of the cells above to assign
them the %?

Dim rngCell As Range, rngName As Range
Dim num
Set rngName = Worksheets("Legend").Range("C3:J500")
num= Application.VLookup("FIND", rngName, 8, False) ' Ok
Set rngCell = Application.VLookup("FIND", rngName, 8, False) ' the

error!!!


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
identify list used in a cell Don Excel Discussion (Misc queries) 2 May 28th 08 11:57 PM
Identify address of cell containing specific data Peter N. Excel Discussion (Misc queries) 3 July 12th 07 06:08 PM
Cell Ref to identify worksheet Mikeice[_12_] Excel Programming 1 June 9th 05 03:51 PM
Need a macro to Identify a users IP address havocdragon Excel Programming 3 February 28th 05 07:22 PM
identify the name of the activecell not its address RogerTheDodgerTheDirtyOldSod Excel Programming 2 September 26th 04 09:53 PM


All times are GMT +1. The time now is 03:40 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"