melissad wrote...
....
OK I have two spreadsheets. One spreadsheet (out of stock) shows model
numbers that have been taken out of stock. The other spreadsheet
(stock) shows the same model numbers and a quantity field.
Presumably these are separate files. If so, they should both be open.
I'll assume the out of stock file is names OOS.xls and the range
containing the model numbers is named MNs, so references to this range
from the stock file would look like 'OOS.xls'!MNs.
I need to be able to make the model numbers from the out of stock
spreadsheet to be filtered (?) in to my stock spreadsheet and recognize
which items are out of stock and change the quanity field to zero.
....
The easiest way to do this would be to use an extra column as the
'actual' stock quantity with your original quantity column being
treated as a 'initial' stock quantity. If the topmost model number in
the stock file were in cell A2, and the corresponding initial quantity
were in cell B2, and the corresponding actual quantity formula were to
be entered in cell C2, that formula should be
C2:
=B2*ISNA(MATCH(A2,'OOS.xls'!MNs,0))
Fill C2 down as needed.
If you have to change the initial quantity column entries, use the same
C2 formula to expand the stock table to 3 columns, select the entire
stock table including this added column, and run Data > Filter >
Autofilter. Then filter the added column so it shows all rows with zero
values, i.e., select 0 from the AutoFilter drop-down list for the
column of formulas. Then move to the topmost quantity cell in the
initial quantity column, hold down [Shift] and [Ctrl] keys and press
the [down arrow] key. This should select all visible initial quantity
entries. Type 0, hold down a [Ctrl] key, and press the [Enter] key to
enter 0 in all the selected cells. Run Data > Filter > AutoFilter to
remove the AutoFilter, and clear the column of formulas.