Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Corresponding Range in another column

Excel Experts,

My spreadsheet is similar to the following:

A B C D
1 Trader Action Quantity Fees
2 Bill 20
3 Bill 20
4 Steve 30
5 Steve 30

I've defined cells A2..A5 as a variable Trades
I've defined cell D1 as a variable Fees
How do I select the range D2..D5, that is, the same cells
as in Trades, but in the column where Fees is?

My code so far:

Sub Fees()

Cells.Find(What:="TraderID").Offset(1).Select
Range(Selection, Selection.End(xlDown)).Select
Set Trades = Selection

Set Fees = Cells.Find(What:="Fees")


End Sub

Thank you,
Alan
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
AVERAGE a range in a column if another column's range equals a val bob$ Excel Discussion (Misc queries) 3 February 24th 09 07:42 AM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
CountIf first column range = "Word" and second column range <> 0 TinaMo Excel Worksheet Functions 3 June 3rd 05 10:56 PM
Transfering VBA Array Column Range to Excel Column Range ExcelMonkey[_11_] Excel Programming 5 January 22nd 04 05:57 PM


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