Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default find item in list

I would like to be able to find an item in a certain list of numbers that
matches the criteria in one cell, then apply the number in the cell to the
right of the number in the list to a different cell. Confused? So am
I...I'll try to give clarification if needed.
TIA, Erik


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default find item in list

I would like to be able to find an item in a certain list of numbers[listrange] that
matches the criteria in one cell [equals value in F3/valuerange], then

apply the number in the cell to the
right of the number [TargetRange.offset(0,1)] in the list to a different

cell.[M21]


set listrange = Range(cells(1,1),cells(1,1).End(xldown))
set valuerange = Range("F3")
res = Application.Match(valuerange.Value,listrange,0)
if not iserror(res) then
set targetRange = listrange(res)
Range("M21").Vavlue = TargetRange.offset(0,1) * Range("M21"))
End if


Might be a start.

--
Regards,
Tom Ogilvy



"XL Dunce" wrote in message
news:1112367157.03ebbb270c16095daa545e92423372fb@t eranews...
I would like to be able to find an item in a certain list of numbers that
matches the criteria in one cell, then apply the number in the cell to the
right of the number in the list to a different cell. Confused? So am
I...I'll try to give clarification if needed.
TIA, Erik




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
To find rate of each item from item.xls and to copy price.xls pol Excel Discussion (Misc queries) 7 July 16th 09 12:49 AM
List and subtotal selected items, then print separate item list TitanG Excel Worksheet Functions 0 September 8th 08 09:07 PM
I need to pair each item on one list to each item on another list Peter R. Excel Worksheet Functions 1 August 24th 07 03:04 AM
Dropdown List - list item endings not visible if column too narrow AK9955 Excel Discussion (Misc queries) 2 April 27th 07 09:02 AM
Selecting an Item from a List and getting a different item to pop. Matt Excel Worksheet Functions 1 December 7th 04 02:37 PM


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