LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
yoyo2000
 
Posts: n/a
Default Problem with search and replace data,thanks for you help in advance.


There is a file in attachment with many data in 'Raw Data' and 'Mid II'
tables,I wanna

to:

comparing K column in each row with the same column in its next row,if
they are the

same,we'll pass,if there are something different,we would:
1. copy the value in column D to Column B in the current row;
2. copy the value in column K of the next row to column A,and add '
Open' at the end of

the value;
3. in the raw data, seek the row with the same data as the value in
column C,column K

in current row,and copy the value from column D to column J of that row
to the

corresponding columns and raw in table Mid II.

for example:

We start from the ending to the beginning.In both the raw 2239 and
2340,table Mid

II,the values in column K are all '9',so we pass them and do nothing.
Now we are in raw 2238,we compare the values in column K in both raw
2238 and 2239 in table Mid II,they are '8' and '9',it's different,so
we:

1. copy the value '56000' in column D to column B in the same raw;
2. copy value '9' in column K,raw 2239 to the column A,current raw(raw
2238),and add a ' open' in the destination;
3. seek the value from column C and K in current raw('2006-6-15',and
'8' respectively) in table 'raw data',we find that the values in column
A and H,raw 21134 are the same,so we copy the values from column B to G
in raw 21134,table 'raw data' and repalce the value in column D to
J,raw 2238.(But in the attachment,in order to demonstrate the steps
above,I didn't really repalce the value,although it should be
replaced,actually).

It took me almost a whole day to do these,but I can't overcome
it,please help,thanks in advance.

best regards.


+-------------------------------------------------------------------+
|Filename: Conjuction 2.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4907 |
+-------------------------------------------------------------------+

--
yoyo2000
------------------------------------------------------------------------
yoyo2000's Profile: http://www.excelforum.com/member.php...o&userid=15489
View this thread: http://www.excelforum.com/showthread...hreadid=553359

 
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
Search and replace chunks of html code method373 Excel Discussion (Misc queries) 0 March 27th 06 03:46 PM
Unicode and Search and Replace Rebecca New Users to Excel 3 October 30th 05 05:19 AM
Partial search and replace? Jamie Furlong Excel Discussion (Misc queries) 2 August 28th 05 03:54 PM
Search and replace Subu Excel Worksheet Functions 4 June 9th 05 07:01 PM
GLOBAL search and replace Rebecca New Users to Excel 2 February 26th 05 12:30 AM


All times are GMT +1. The time now is 08:49 PM.

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"