Negative Inventory Items

MrSamuel123

New Member
Joined
Jan 4, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
I need a formula that returns all inventory items in Column A if any of the items have a negative balance in Column F. In other words, Widget #1 has 10 line items in a data set but only one of them has a negative balance. I want to see all ten line items but none of the other widgets that have all positive balances in all locations.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the Forum!

I'd be inclined to set a simple flag and filter the results:

ABCDEFG
1CodeAmountFlag
2A10FALSE
3A10FALSE
4A10FALSE
5B10TRUE
6B-20TRUE
7B10TRUE
8C10FALSE
9C10FALSE
10C10FALSE
11C10FALSE
12C10FALSE
Sheet1
Cell Formulas
RangeFormula
G2:G12G2=MINIFS(F$2:F$12,A$2:A$12,A2)<0

After filtering:

ABCDEFG
1CodeAmountFlag
5B10TRUE
6B-20TRUE
7B10TRUE
Sheet1
Cell Formulas
RangeFormula
G5:G7G5=MINIFS(F$2:F$12,A$2:A$12,A5)<0


A formula approach is also possible, but would be more complicated.
 
Upvote 0
Thanks for your help! I copied the formula and adjusted the ranges. All of the calculated cells are returning FALSE. Any ideas on why that would be?
 
Upvote 0
I figured it out. Thanks a lot for your solution! It's saving all kinds of time.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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