Inventory Maco help needed.....

chefdt

Board Regular
Joined
Jul 1, 2008
Messages
163
I have a WORKBOOK named "Inventory". It consists of several WORKSHEETS that divide my food inventory into categories such as "MEAT", "DAIRY PRODUCTS", etc.

I recorded a macro that will import my inventory from an online ordering system, dump it to a WORKSHEET named "IMPORT" and normalize the data.

I want to create a macro that looks through the import data and parses it into the appropriate WORKSHEET.

Column "I" of the "IMPORT" sheet contains the name of the WORKSHEET that the data needs to be copied to.

The other worksheets will already have data in them, starting at "A8". As each item is copied to the appropriate sheet, I want to verify if the item already exists on the sheet and do one of two options.....A) If it exists, copy only "H" which is the case cost, and flag by color or bold text if the new price is different from the current B) If it doesn't exist, add the entire row of data to the bottom row of data in the appropriate sheet.

Here is a sample of "IMPORT" and "DAIRY"

Dairy Products

ABCDEFGHIJKLM
1 Todays Date:10/31/2013 Total:
2 Date of Last Inventory:3/12/2010 $ -
3 Days Since Last Inventory:1329
4 Last Person to Inventory:
5
6
7SUPCItem DescriptionBrandCountPackage SizeMfg #Re-order CountCase CostCaseEachUnit Cost Units in Stock Total $
88965881BUTTERMILK 1% LOW FATWHLFARM9.5 GAL $ 19.05 $ 2.12 $ -
96697890CHEESE AMER YEL 160 SLIBBRLCLS45 LB $ 37.68 $ 9.42 $ -
102404135CHEESE CHDR YEL MILKD SHRD FTHRCASASOL45 LB $ 45.80 $ 11.45 $ -
117234958CHEESE CUBE CHDR/COJCK/PEP JCKBBRLIMP35 # $ 48.00 $ 16.00 $ -
124791386CHEESE CUBE HAVARTI/GOUDA/MUFNSCHRBER35 LB $ 46.74 $ 15.58 $ -

<colgroup> <col style="WIDTH: 30px; FONT-WEIGHT: bold"> <col style="WIDTH: 49px"> <col style="WIDTH: 209px"> <col style="WIDTH: 61px"> <col style="WIDTH: 35px"> <col style="WIDTH: 71px"> <col style="WIDTH: 73px"> <col style="WIDTH: 81px"> <col style="WIDTH: 54px"> <col style="WIDTH: 30px"> <col style="WIDTH: 30px"> <col style="WIDTH: 54px"> <col style="WIDTH: 48px"> <col style="WIDTH: 54px"></colgroup> <tbody>
</tbody>


Import

ABCDEFGHI
1SUPCDescBrandPackSizeMfr #ParCase $ Cat
2DAIRY PRODUCTS
30671677CHEESE BLUE CRUMBLESSYS IMP25 LB10000847 $ 12.59 Dairy Products
45469259CHEESE BRIE DOMSTC 1 KGBBRLIMP22.2 LB10007830 $ 17.28 Dairy Products
52406189CHEESE CHDR JACK SHRD FCYCASASOL45 LB10000253 $ 47.78 Dairy Products
62599793CHEESE CHDR MILD YEL PRNTBBRLIMP110 LB10000253 $ 23.70 Dairy Products
76159263CHEESE CHDR SHRP PRNT YELBBRLIMP110 LB10000253 $ 27.32 Dairy Products
82357598CHEESE CHDR SMKDTILAMOK62 LB10007703 $ 61.70 Dairy Products
92357580CHEESE CHDR XSHRP WHITETILAMOK25 LB10007703 $ 53.95 Dairy Products
102220143CHEESE FETA CRUMBLE DOMSYS IMP25 LB10000847 $ 36.21 Dairy Products

<colgroup> <col style="WIDTH: 30px; FONT-WEIGHT: bold"> <col style="WIDTH: 119px"> <col style="WIDTH: 332px"> <col style="WIDTH: 72px"> <col style="WIDTH: 35px"> <col style="WIDTH: 55px"> <col style="WIDTH: 63px"> <col style="WIDTH: 64px"> <col style="WIDTH: 63px"> <col style="WIDTH: 108px"></colgroup> <tbody>
</tbody>

Any help appreciated!
 

Excel Facts

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

Forum statistics

Threads
1,215,972
Messages
6,128,030
Members
449,414
Latest member
sameri

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