ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   display unique data into third sheet (https://www.excelbanter.com/excel-worksheet-functions/191734-display-unique-data-into-third-sheet.html)

sri

display unique data into third sheet
 
Hi..

I have data in 2 sheets which i want it to be displayed in the third sheet.
Please suggest me how to proceed with this...

------**------

Example :
Sheet 1: Sheet 2 :

No Name1 No Name2
1 abc 1 efg
2 eds 2 xyz
4 def 3 aaa
5 dss 6 ddd

The Result should be :
Sheet 3 :
No Name1 Name2
1 abc efg
2 eds xyz
3 aaa
4 def
5 dss
6 ddd

-------**--------




Don Guillett

display unique data into third sheet
 
One way, using sheet names

Sub dosheets()
Columns("b:c").ClearContents
For i = 1 To 12
On Error Resume Next
With Sheets("sheet1")
Set x = .Columns("a").Find(i, LookIn:=xlValues)
If Not x Is Nothing Then Cells(i + 1, "b") = .Cells(x.Row, "b")
End With

With Sheets("sheet2")
Set x = .Columns("a").Find(i, LookIn:=xlValues)
If Not x Is Nothing Then Cells(i + 1, "c") = .Cells(x.Row, "b")
End With
Next i
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Sri" wrote in message
...
Hi..

I have data in 2 sheets which i want it to be displayed in the third
sheet.
Please suggest me how to proceed with this...

------**------

Example :
Sheet 1: Sheet 2 :

No Name1 No Name2
1 abc 1 efg
2 eds 2 xyz
4 def 3 aaa
5 dss 6 ddd

The Result should be :
Sheet 3 :
No Name1 Name2
1 abc efg
2 eds xyz
3 aaa
4 def
5 dss
6 ddd

-------**--------





MYNAMPATI

display unique data into third sheet
 
Hi Sree THIS IS NICE QUESATION

"Sri" wrote:

Hi..

I have data in 2 sheets which i want it to be displayed in the third sheet.
Please suggest me how to proceed with this...

------**------

Example :
Sheet 1: Sheet 2 :

No Name1 No Name2
1 abc 1 efg
2 eds 2 xyz
4 def 3 aaa
5 dss 6 ddd

The Result should be :
Sheet 3 :
No Name1 Name2
1 abc efg
2 eds xyz
3 aaa
4 def
5 dss
6 ddd

-------**--------




MYNAMPATI

display unique data into third sheet
 
u can using lookup formulas as like that lookup,vlookup...etc

"Sri" wrote:

Hi..

I have data in 2 sheets which i want it to be displayed in the third sheet.
Please suggest me how to proceed with this...

------**------

Example :
Sheet 1: Sheet 2 :

No Name1 No Name2
1 abc 1 efg
2 eds 2 xyz
4 def 3 aaa
5 dss 6 ddd

The Result should be :
Sheet 3 :
No Name1 Name2
1 abc efg
2 eds xyz
3 aaa
4 def
5 dss
6 ddd

-------**--------





All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com