0

How to count instances of a value in a table, based on a second column, and compare to another value

Hi all,

This isn't Jet specific, but I am hoping one of you lovely people may be able to help me out, save me creating an account on another Excel forum.

I am creating a new sheet to record the stock level of our toner cartridges, and record when we book out a toner for a department.
We record the outgoing toners in one big list, and I want to count how many lines in the table exist for a specific model toner, booked out in a certain month, and then compare this to a value on another sheet.

I suspect it will be a combination of COUNTIF and VLOOKUP, but can't quite determine the correct syntax.

I have attached the example spreadsheet for reference, and have the additional info below:
The "Stock" sheet is where we manually update the in and out values for each model toner for each month.
Column A is the toner model, and alternating columns starting at column I, are the manual out counts for that model.

The "Control" sheet is where we record the outgoing toner, recording the model and date.
This is what I want to count from.

So in the "Stock" sheet I want to compare the value in column I (K, M, O etc.), for row 5 (Toner CE250X), to the count of lines on the "Control" sheet for model CE250X with a date in March.

Any advice would be greatly appreciated.

Eds

3 comments

Please sign in to leave a comment.