Perform an analysis of inventory variance against a Pre & Post count list.

8lighting

New Member
Joined
Dec 18, 2015
Messages
3
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.
PARTPRE COUNT QTYPOSTCOUNT QTYDIFF%
10094420419
10095153177
10111-01104#N/A
1019738483375
1019939152636
1020412142636

<colgroup><col><col><col><col span="2"></colgroup><tbody>
</tbody>

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.

11133-K-HI-50075
11133-K-HI-50087
11133-K-HI-500123

<colgroup><col><col></colgroup><tbody>
</tbody>


And on the post count list there are several identical PN's with different quantities.

11133-K-HI-5008
11133-K-HI-5008
11133-K-HI-50075
11133-K-HI-50087

<colgroup><col><col></colgroup><tbody>
</tbody>


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.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
8lighting,

For you problem you can solve it by changing your strategy from a vlookup to a sumif.

Here's a possible solution that addresses both the vlookup and multiple entry requirements:

Formula on C5 sums range G5:G12 only if row range F5:F12 matches A5, so the formula is =SUMIF($F$5:$F$12,A5,$G$5:$G$12)

This will bring the data from your other sheet regardless of position or number of entries.

Hope it helps, if you have additional questions let me know.

Angel

Sheet1

ABCDEFG
4PARTPRE COUNT QTYPOSTCOUNT QTYDIFFPARTPOSTCOUNT QTY
51009442041598.8%10094415
61009515314494.1%10095144
710111-011049995.2%10111-0190
8101973848377798.2%10111-019
9101993915278871.2%101973777
101020412142200181.2%101992788
1110204600
12102041600

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
C5=SUMIF($F$5:$F$12,A5,$G$5:$G$12)
D5=C5/B5

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,216,791
Messages
6,132,716
Members
449,755
Latest member
TBertot107

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top