LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Arnfinn Hakkebo
 
Posts: n/a
Default Q: compare and replace in a workbook

I have data like this:
A B C
D E F G
121102
MENY DRØBAK
2004-11-30
PAR039
S550077
P144026
P40202

121102
MENY DRØBAK
2004-11-30
PAR040
S550077
P144026
P40202

121103
SPAR FOLKESTAD MAT
2004-11-30
PAR002
S550077
P144026
P40202

121103
SPAR FOLKESTAD MAT
2004-11-30
PAR003
S550077
P144026
P40202

121103
SPAR FOLKESTAD MAT
2004-11-30
PAR004
S550077
P144026
P40202


in an excel workbook.
What Id like to do is have a function or macro that replaces data with for
example "-" if column 1 has more than one instance of the same data.
Result should be like:

121102 MENY DRØBAK 2004-11-30 PAR039 S55077
P144026 P40202
- - -
- - - -
121103 SPAR FOLKESTAD MAT 2004-11-30 PAR002 S55077 P144026
P40202
- - -
- - - -
- - -
- - - -

I hope this is a good enough explanation.

regards
Arnfinn Hakkebo




 
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
How do I compare two columns on seperate sheets and replace text . hag400 Excel Worksheet Functions 1 December 28th 04 02:32 PM


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