# Count based on the vlookup with subtract

• Hi,

Column A,B and C contain of Order No, Part No and Qty. I need to workout the stock status of each order based on the raw data Column F and G contain of Part No and Stock. Each order appear the same part no

Example;

The following part no A5697KT we have customer order 4 and we had a stock 8 nos, the part no appear the first order then formula return the stock 8, if second time return the same part with different order no then formula return the stock 7.

Any help would be much appreciated.

 A5697KT 1 8 A5697KT A7119KT 1 2 A7119KT A5696KT 1 3 A5696KT A7117KT 1 4 A7117KT A5697KT 1 7 A7119KT 1 1 A5696KT 1 2 A7117KT 1 3 A5697KT 1 6 A7119KT 1 0 A5696KT 1 1 A7117KT 1 2 A5697KT 1 5 A7119KT 1 0 A5696KT 1 0 A7117KT 1 1

## Files

• Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

Read the following link to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

https://www.excelguru.ca/content.php?184

• Thanks for your help and reply and sorry for the late reply but requirement is different I want formula in column D2. Please assist me because we huge data and customer order.

## Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!