#1   Report Post  
kk
 
Posts: n/a
Default

Hi Don,

Thanks!

"Don Guillett" wrote in message
...
try
Sub consolidate()
For i = 1 To 2
With Sheets(i)
On Error Resume Next
For Each c In Sheets("sheet3").Range("a2:a15")
c.Offset(0, i) = .Range("a2:a3").Find(c).Offset(0, 1)
Next
End With
Next
End Sub

or more crudely depending on your structure
Sub consolidate1()
With Sheets("sheet1")
On Error Resume Next
For Each c In Sheets("sheet3").Range("a2:a15")
c.Offset(0, 1) = .Range("a2:a3").Find(c).Offset(0, 1)
Next
End With
With Sheets("sheet2")
On Error Resume Next
For Each c In Sheets("sheet3").Range("a2:a15")
c.Offset(0, 2) = .Range("a2:a3").Find(c).Offset(0, 1)
Next
End With
End Sub

--
Don Guillett
SalesAid Software

"kk" wrote in message
...
Hello Don

Beside vlookup, is there any other way to do it?

Each spreadsheet containing thousand of lines and duplicate product.
I need to find out what product is missing in sheet 1 compare to sheet 2

and
vice, filter out the duplicate, sum the quantity and put in into the
separate sheet.

Thanks

"Don Guillett" wrote in message
...
With a formula just look in HELP index for VLOOKUP

--
Don Guillett
SalesAid Software

"kk" wrote in message
...
Hi

I have a workbook with 2 worksheet

Sheet 1:
Product CountQty
A 10
B 20

Sheet 2:
Model SysQty
A 10
C 30


Is there a way to use a function to consolidate two set of data from

both
worksheet into a new sheet to

Product CountQty SysQty
A 10 10
B 20
C 30

Thanks!
kk










  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

glad to help

--
Don Guillett
SalesAid Software

"kk" wrote in message
...
Hi Don,

Thanks!

"Don Guillett" wrote in message
...
try
Sub consolidate()
For i = 1 To 2
With Sheets(i)
On Error Resume Next
For Each c In Sheets("sheet3").Range("a2:a15")
c.Offset(0, i) = .Range("a2:a3").Find(c).Offset(0, 1)
Next
End With
Next
End Sub

or more crudely depending on your structure
Sub consolidate1()
With Sheets("sheet1")
On Error Resume Next
For Each c In Sheets("sheet3").Range("a2:a15")
c.Offset(0, 1) = .Range("a2:a3").Find(c).Offset(0, 1)
Next
End With
With Sheets("sheet2")
On Error Resume Next
For Each c In Sheets("sheet3").Range("a2:a15")
c.Offset(0, 2) = .Range("a2:a3").Find(c).Offset(0, 1)
Next
End With
End Sub

--
Don Guillett
SalesAid Software

"kk" wrote in message
...
Hello Don

Beside vlookup, is there any other way to do it?

Each spreadsheet containing thousand of lines and duplicate product.
I need to find out what product is missing in sheet 1 compare to sheet

2
and
vice, filter out the duplicate, sum the quantity and put in into the
separate sheet.

Thanks

"Don Guillett" wrote in message
...
With a formula just look in HELP index for VLOOKUP

--
Don Guillett
SalesAid Software

"kk" wrote in message
...
Hi

I have a workbook with 2 worksheet

Sheet 1:
Product CountQty
A 10
B 20

Sheet 2:
Model SysQty
A 10
C 30


Is there a way to use a function to consolidate two set of data from

both
worksheet into a new sheet to

Product CountQty SysQty
A 10 10
B 20
C 30

Thanks!
kk












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
Multiple Consolidation Ranges - Debra Dalgleish nc Excel Discussion (Misc queries) 1 April 27th 05 09:01 PM
Multiple Consolidation Ranges nc Excel Discussion (Misc queries) 2 April 26th 05 10:24 AM
How to integrate cells from different .xls into one consolidation fgauvin Excel Discussion (Misc queries) 1 April 10th 05 04:17 PM
Product Function in Pivot Tables from Multiple Consolidation Range bbishop222 Excel Worksheet Functions 0 February 22nd 05 04:55 PM


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