LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamic range offset problem!

Greetings.



I have an excel worksheet where details of matches are stored. Each record has 16 columns that are reserved for player names. I need a procedure or a function that will search/find the first occurrence of a given variable (player name) , then the cell pointer ( or ActiveCell) always moves to column B of the row found with the player name to store it in another worksheet.

I used the offset method to go back to column 2 , but the offset could be different in each case, and this is the part that I failed to code.



Here is a simple presentation of the worksheet:



A B C D E F G H

1 SEQ DATE COMP. Opp. Plyr1 ply2 ply3 ply4

2 1 02/11/04 WCQ USA Jones Hall Victor Smith

3 2 04/11/04 WCQ Chile Jones Hall Brown Cobby

4 3 06/11/04 WCQ Mexico Shaw Brown Green Victor

5



Example: Lookup Cobby (in this case at range H3) and the stored variable should be range B3 ) date 04/11/04) which is CellOffset - 6 , but If I lookup "Green" , the CellOffset would be - 5



I hope the problem is clear . Appreciate any help or hint.



Thanks.





 
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
Dynamic Range for Offset VBApprentice :) Excel Worksheet Functions 8 January 13th 10 05:27 PM
Offset function problem-Dynamic range MarkM Excel Discussion (Misc queries) 1 November 11th 06 02:41 AM
Problem with Slow ReCalculation of Dynamic Range Using OFFSET Kris_Wright_77 Excel Worksheet Functions 2 November 18th 05 10:18 AM
dynamic range / offset Jeff Excel Worksheet Functions 2 February 23rd 05 03:39 PM
dynamic range without using OFFSET() Andrew[_16_] Excel Programming 1 July 25th 03 01:57 PM


All times are GMT +1. The time now is 08:37 AM.

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"