Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Uniqe Records


Hi Dears,

Most of the times we have similiar and uniqe records in Col A.

for Example

ColA
Book
Cup
Tea
Book
Pen
Cup

Is there some codes. that if i clik a buttion, the data copy in col
and similiar words will copy only one time i.e similiar words wil
not copy Repeatedly.

For example

Col B
Book
Cup
Pen
Tea


Thanks and Regards

Syed Haider Al

--
Syed Haider Al
-----------------------------------------------------------------------
Syed Haider Ali's Profile: http://www.excelforum.com/member.php...fo&userid=2199
View this thread: http://www.excelforum.com/showthread.php?threadid=56043

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Uniqe Records

Sub Test()
Dim iLastRow As Long
Dim i As Long
Dim j As Long

iLastRow = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To iLastRow
If IsError(Application.Match(Cells(i, "A").Value, Columns(2), 0))
Then
j = j + 1
Cells(j, "B").Value = Cells(i, "A").Value
End If
Next i

End Sub


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Syed Haider Ali"
<Syed.Haider.Ali.2asr1t_1152647710.2974@excelfor um-nospam.com wrote in
message news:Syed.Haider.Ali.2asr1t_1152647710.2974@excelf orum-nospam.com...

Hi Dears,

Most of the times we have similiar and uniqe records in Col A.

for Example

ColA
Book
Cup
Tea
Book
Pen
Cup

Is there some codes. that if i clik a buttion, the data copy in col B
and similiar words will copy only one time i.e similiar words will
not copy Repeatedly.

For example

Col B
Book
Cup
Pen
Tea


Thanks and Regards

Syed Haider Ali


--
Syed Haider Ali
------------------------------------------------------------------------
Syed Haider Ali's Profile:

http://www.excelforum.com/member.php...o&userid=21994
View this thread: http://www.excelforum.com/showthread...hreadid=560436



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Uniqe Records


Thanks Bob for your guidance.

Syed Haider Ali


--
Syed Haider Ali
------------------------------------------------------------------------
Syed Haider Ali's Profile: http://www.excelforum.com/member.php...o&userid=21994
View this thread: http://www.excelforum.com/showthread...hreadid=560436

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
Delete records when certain records have duplicate column data JVroom New Users to Excel 1 January 26th 09 06:23 PM
draw 999 x 8 random records from file with 8614 records news.wanadoo.nl Excel Programming 1 March 1st 06 03:04 PM
End Of Records JOLLYNEELI Excel Programming 3 August 30th 05 02:18 PM
Uniqe value counter returns #N/A error Mikus Excel Worksheet Functions 4 August 6th 05 10:42 PM
Uniqe list Jason@Simcon Excel Programming 26 December 6th 04 07:35 PM


All times are GMT +1. The time now is 05:01 AM.

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"