Inventory Formula Using Index Match with IF Function to return Text Values under Multiple Criteria

ak_254

New Member
Joined
Jan 9, 2018
Messages
10
Hi all,

I am trying to figure out the best way to incorporate an inventory reporting formula to state the "Inventory Level" of an item based on recent/all purchase orders.

In Sheet 1 it will contain all inventory currently being held with key information such as SKU and Inventory Level of item.

In Sheet 2 it will contain all recent and past purchase orders that were placed for said inventory item with key information such as SKU, Order Number, Order Received, and Order Aging (This will be based on the field "Order Received.. if Yes is selected no number is calculated, if No is selected todays date minus the order date is calculated and a number is generated)

For this formula I would want to be able to search the SKU from Sheet 1 on Sheet 2 under multiple criteria and return text values based on if these criteria are met

1) Search to find all rows to match SKU from Sheet 1 with Sheet 2

If a Sku(s) does match on Sheet 2..

2) Determine if there is a value in Order Aging..

  • if there is a number populated in the cell return the value "On Backorder" in Sheet 1 under "Inventory Level"
  • If there is no number populated in the cell return the value "In Stock" in Sheet 1 under "Inventory Level"

If a Sku(s) does not match Sheet 2..

3) If there is no Sku match return the value "Out of Stock" in Sheet 1 under "Inventory Level"


Sheet 1: Inventory Status

ABC
1SKUItemInventory Level
2111CablesShould State "In Stock"
3222KeyboardsShould State "On Backorder"
4333MousesShould State "Out of Stock"

<tbody>
</tbody>


Sheet 2: Order Forms

ABCDEF
1SKUItemOrder DateOrder NumberOrder Received Order Aging
2111Cables1-1-18001Yes
3222Keyboards1-2-18003Yes
4222Keyboards1-8-18001No1

<tbody>
</tbody>


Any help or point in the right direction would be greatly appreciated!!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Code:
=IF(ISNA(MATCH($A2,Sheet2!$A$2:$A$30,0)),"Out of Stock",IF(SUMIF(Sheet2!$A$2:$A$30,$A2,Sheet2!$F$2:$F$30)>0,"On Backorder","In Stock"))
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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