Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Find an value and clear contents of that row

I have two tabs, sheet1 and sheet2. I am pulling data from sheet two
and pasting it on sheet1. Sheet1 already has data in it from previous
updates. Here is what I am trying to do.

I want it to find the value in cell A8 on Sheet2. Then look on sheet1
for that value in column F. If it finds that value then cells B to K
of that row need to be cleared.

Big pictu Find value in F8 on sheet2. If that value exists on
sheet1 (if it exists it will esist in several rows) then find the rows
it is in and clear the contents of columns B to K. Then paste the
values from row 8 on seet 2 into the place where it existed before on
sheet1. Check to see if the next row after 8 has the same value. If it
does paste it below the previous paste on sheet one, adding rows as
necessary.

Example:

Pre-Paste
Sheet 2
0100 Product 1 54% 63%
0100 Product 2 89% 56%

Sheet 1
xxxxxOther dataxxxxxx

0100 Product 4 78% 90%
0100 Product 5 34% 14%
0100 Product 6 23% 74%

xxxxOther dataxxxxxxx
Post-Paste Sheet 1
0100 Product 1 54% 63%
0100 Product 2 89% 56%

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
clear contents Arne Hegefors Excel Programming 1 June 13th 07 03:39 PM
Macro to clear range contents when cell contents are changed by us Steve E Excel Programming 12 February 22nd 07 09:09 PM
Clear contents Arne Hegefors Excel Programming 3 September 28th 06 05:43 PM
Clear contents SamanthaK Excel Programming 3 June 15th 06 09:05 AM
Clear Contents Help michael Excel Programming 3 June 6th 06 09:42 PM


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