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: 115
Default VBA REQUIRED TO TAKE VALUE FROM EACH CELL FROM A RANGE AND FIND THE VALUE FROM A DIFFERENT RANGE

DEAR ALL
In col.A have the needed tank numbers and groups. (2c, 5c, 3c say in
three cells and below 3c will be the group name 'fuel oil' in a4 and
so on for four or five group of tanks.

In col. D I have the tanks listed in order say about 20 tanks and in
col E, I have respective tank quantities.

What is needed is VBA code to take each cell value range in col. A
(range a1. a10) and check in range col.D (range d1.d20) and take the
value mentioned in col.E and place it in col.B.

I could do this but where I am finding difficulty is the minute the
cell value is a gropu name like "fuel oil" then i get error in find-
what.

So pls advice how to program so that if the match is not found to go
to the next cell of col.A and find for the value in col.D and take the
corresponding value from col.E and place it in col.B

 
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
Find Last cell in Range when range is date format default105 Excel Discussion (Misc queries) 5 July 7th 09 03:11 PM
Find the POSITION IN A RANGE of text in a string that matches value(s) in a range Cornell1992 Excel Programming 0 March 14th 06 07:19 PM
Find first cell in range and expand range -VBA Caméléon Excel Programming 3 December 4th 04 02:01 AM
Set range based on cell contents - help required N E Body[_4_] Excel Programming 5 July 27th 04 02:48 PM
Range.Find returns cell outside of range when range set to single cell Frank Jones Excel Programming 12 June 10th 04 04:22 AM


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