Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Search / Compare / Copy Value Up (cpm)

I have an xls of 150,000 lines similar to

B1 *
C1 AFIFI,ADEL
B2 1005063
C2 AFIFI,ADEL Q
B3 *
C3 AGARWAL,RAVINDER
B4 1000268
C4 AGARWAL,RAVINDER K

<PRE
B C
* AFIFI,ADEL
1005063 AFIFI,ADEL Q
* AGARWAL,RAVINDER
1000268 AGARWAL,RAVINDER K
</pre

I have a requirement to look for an asterisk in A:A, when found
compare the cell value in C2 with the cell above it B2. If there's a
"close match" between B2 & B1, copy the value in B2 to B1... over and
over and over again. By "close match" I mean, if the characters before
the comma match (lname), and the characters after the comma match
(fname) less the middle initial, copy the value in B2 to B1.

Appreciate ANY help--I've tried a number of macros and can't get it to
work properly.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Search / Compare / Copy Value Up (cpm)

If C1=LEFT(C2,FIND(" ",C2,FIND(",",C2)+2)-1)
Then B1=B2
End If


"sandy_eggo" wrote:

I have an xls of 150,000 lines similar to

B1 *
C1 AFIFI,ADEL
B2 1005063
C2 AFIFI,ADEL Q
B3 *
C3 AGARWAL,RAVINDER
B4 1000268
C4 AGARWAL,RAVINDER K

<PRE
B C
* AFIFI,ADEL
1005063 AFIFI,ADEL Q
* AGARWAL,RAVINDER
1000268 AGARWAL,RAVINDER K
</pre

I have a requirement to look for an asterisk in A:A, when found
compare the cell value in C2 with the cell above it B2. If there's a
"close match" between B2 & B1, copy the value in B2 to B1... over and
over and over again. By "close match" I mean, if the characters before
the comma match (lname), and the characters after the comma match
(fname) less the middle initial, copy the value in B2 to B1.

Appreciate ANY help--I've tried a number of macros and can't get it to
work properly.

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
Compare and Copy CC Excel Discussion (Misc queries) 3 May 29th 08 09:36 PM
How to search column, copy row, and copy to another sheet in same Rockhound Excel Discussion (Misc queries) 1 December 9th 06 04:16 PM
compare and copy Arain Excel Discussion (Misc queries) 1 September 18th 06 01:04 PM
Compare and copy AJM1949 Excel Discussion (Misc queries) 2 April 6th 06 07:07 AM
Compare and copy Mary Excel Worksheet Functions 2 January 24th 06 04:22 AM


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