PC Review


Reply
Thread Tools Rate Thread

Copy data from multiple columns and populate it in another sheet in one column,,

 
 
QuickLearner
Guest
Posts: n/a
 
      10th Oct 2009
Hi guys
I working on a Bookeeping spreadsheet.
I need a bit of help.
I have three sheets
"CustomerList" with CustomerID in A column like C1,C2,C3....
SuppliersList" SupplierID in A like S1,S2,S3...and
"ExpensesList" ExpenseID in A like E1,E2,E3....

I want data (IDs) from all three sheets and populate it in another Sheet
called TrialBalance..
like
Column A
C1
C2
C3
S1
S2
S3
E1
E2
E3

Any tips here please.. (doesn't have to be in order and no duplicates)

thanks
Thanks
Rachid

 
Reply With Quote
 
 
 
 
QuickLearner
Guest
Posts: n/a
 
      11th Oct 2009
thanks Jacob Sakoria
Found one of your answer in another ng.

After modifying the macro below a bit it is working for me. THANKS

Sub AutofilterTwoRanges()
Dim ws1 As Worksheet, ws2 As Worksheet, ws As Worksheet, lngRow As Long
Set ws1 = Sheet3
Set ws2 = Sheet12
Set ws = Sheet18

ws1.Columns(1).AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=ws.Range("A1"), Unique:=True
lngRow = ws.Cells(Rows.Count, "A").End(xlUp).Row + 1
ws2.Columns(1).AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=ws.Range("A" & lngRow), Unique:=True
ws.Rows(lngRow).Delete
ws.Columns(1).Sort Key1:=Range("A2"), Order1:=xlAscending, header:=xlYes
End Sub

Rachid



"QuickLearner" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi guys
> I working on a Bookeeping spreadsheet.
> I need a bit of help.
> I have three sheets
> "CustomerList" with CustomerID in A column like C1,C2,C3....
> SuppliersList" SupplierID in A like S1,S2,S3...and
> "ExpensesList" ExpenseID in A like E1,E2,E3....
>
> I want data (IDs) from all three sheets and populate it in another Sheet
> called TrialBalance..
> like
> Column A
> C1
> C2
> C3
> S1
> S2
> S3
> E1
> E2
> E3
>
> Any tips here please.. (doesn't have to be in order and no duplicates)
>
> thanks
> Thanks
> Rachid




 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy text in multiple columns into one column CherylH Microsoft Excel Misc 2 27th Nov 2007 06:01 PM
find "Cancellation" in column "A" and copy all data from Columns B-F onto another Sheet bjohnson Microsoft Excel Programming 1 20th Sep 2007 04:02 PM
Copy Multiple Columns, Paste Under a Single column =?Utf-8?B?U3JpcmFt?= Microsoft Excel Worksheet Functions 11 17th May 2007 04:14 AM
Copying columns from multiple sheets in a single sheet based on a column value. deuxstatic@gmail.com Microsoft Excel Programming 1 21st Mar 2007 08:05 AM
Can I print a single column sheet as multiple columns? =?Utf-8?B?YWh1dGNoMjE=?= Microsoft Excel Misc 1 25th Jan 2007 09:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:06 AM.