Copy Only Rows with Zero Inventory to Another Sheet

onplan

New Member
Joined
Dec 30, 2016
Messages
1
I have a model that I am building that indicates whether particular SKUs (sale items) have inventory or are "stocked out". I'd like to use a formula to generate a list of only those items that are stocked out and not to paste over anything that has a positive inventory value. I know I can use filter and a pivot table to accomplish this, but want to do this with a formula and not using pivot table. Thanks!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi,

Use the array formula given below, and drag it down, it will return the values in column B, and assumes that your inventory is in column A and D2 is the value you want to look for in Column A and return matching values from column B, so if you are looking for 0 inventory just write 0 in d2, alternatively, if you can share format of your table here, I'll adjust the formula accordingly.

=IFERROR(INDEX($B$2:$B$60, SMALL(IF($D$2=$A$2:$A$60, ROW($A$2:$A$60)-MIN(ROW($A$2:$A$60))+1, ""), ROW(A1))),"")
 
Upvote 0

Forum statistics

Threads
1,215,833
Messages
6,127,162
Members
449,368
Latest member
JayHo

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