Hello,
This is my first post to the forum and I'm in the early days of unlocking the power of excel
I would like assistance with my efforts to perform a variance analysis of an inventory cycle count. The info I am after is the difference in the pre-count qty and the post-count qty for a given PN. This info is contained on two separate lists. I have tried the following VLOOKUP,
=VLOOKUP(A6,'Cycle Count List POST'!$A$7:$B$10,2)
which works until the point that the list differs between the Pre-count and Post-count part numbers.
[TABLE="width: 433"]
<colgroup><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]PART[/TD]
[TD="align: center"]PRE COUNT QTY[/TD]
[TD="align: center"]POSTCOUNT QTY[/TD]
[TD]DIFF[/TD]
[TD]%[/TD]
[/TR]
[TR]
[TD]10094[/TD]
[TD="align: right"]420[/TD]
[TD="align: right"]419[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10095[/TD]
[TD="align: right"]153[/TD]
[TD="align: right"]177[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10111-01[/TD]
[TD="align: right"]104[/TD]
[TD="align: center"]#N/A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10197[/TD]
[TD="align: right"]3848[/TD]
[TD="align: right"]3375[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10199[/TD]
[TD="align: right"]3915[/TD]
[TD="align: right"]2636[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10204[/TD]
[TD="align: right"]1214[/TD]
[TD="align: right"]2636[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The Post Count part list is contained on a different tab and contains approximately 100 less entries as part of the cycle count some lines have been deleted or consolidated.
My VLOOKUP throws an error on PN 10111-01 because the Post-count List does not contain the same PN in that position. Could this be controlled with IFERROR?
The other condition that gives me trouble is:
On the Pre-Count list there are several identical PN's with different quantities.
[TABLE="width: 187"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]75[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]87[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]123[/TD]
[/TR]
</tbody>[/TABLE]
And on the post count list there are several identical PN's with different quantities.
[TABLE="width: 187"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]75[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]87[/TD]
[/TR]
</tbody>[/TABLE]
The difference distinction between the PN's was Lot#, though that info is not contained within the lists and is not really need for this evaluation. It would be acceptable for all the identical PN's (11133-K-HI-500) to be summed into one quantity for both Pre & Post count values.
Thank you in advance for your assistance.
This is my first post to the forum and I'm in the early days of unlocking the power of excel

I would like assistance with my efforts to perform a variance analysis of an inventory cycle count. The info I am after is the difference in the pre-count qty and the post-count qty for a given PN. This info is contained on two separate lists. I have tried the following VLOOKUP,
=VLOOKUP(A6,'Cycle Count List POST'!$A$7:$B$10,2)
which works until the point that the list differs between the Pre-count and Post-count part numbers.
[TABLE="width: 433"]
<colgroup><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]PART[/TD]
[TD="align: center"]PRE COUNT QTY[/TD]
[TD="align: center"]POSTCOUNT QTY[/TD]
[TD]DIFF[/TD]
[TD]%[/TD]
[/TR]
[TR]
[TD]10094[/TD]
[TD="align: right"]420[/TD]
[TD="align: right"]419[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10095[/TD]
[TD="align: right"]153[/TD]
[TD="align: right"]177[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10111-01[/TD]
[TD="align: right"]104[/TD]
[TD="align: center"]#N/A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10197[/TD]
[TD="align: right"]3848[/TD]
[TD="align: right"]3375[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10199[/TD]
[TD="align: right"]3915[/TD]
[TD="align: right"]2636[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10204[/TD]
[TD="align: right"]1214[/TD]
[TD="align: right"]2636[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The Post Count part list is contained on a different tab and contains approximately 100 less entries as part of the cycle count some lines have been deleted or consolidated.
My VLOOKUP throws an error on PN 10111-01 because the Post-count List does not contain the same PN in that position. Could this be controlled with IFERROR?
The other condition that gives me trouble is:
On the Pre-Count list there are several identical PN's with different quantities.
[TABLE="width: 187"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]75[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]87[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]123[/TD]
[/TR]
</tbody>[/TABLE]
And on the post count list there are several identical PN's with different quantities.
[TABLE="width: 187"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]75[/TD]
[/TR]
[TR]
[TD]11133-K-HI-500[/TD]
[TD="align: right"]87[/TD]
[/TR]
</tbody>[/TABLE]
The difference distinction between the PN's was Lot#, though that info is not contained within the lists and is not really need for this evaluation. It would be acceptable for all the identical PN's (11133-K-HI-500) to be summed into one quantity for both Pre & Post count values.
Thank you in advance for your assistance.