Looking for some help with this, can not seem to get what I am looking for.

GMCD1972

New Member
Joined
May 25, 2020
Messages
13
Office Version
  1. 2007
Platform
  1. Windows
Looking for some help with this, can not seem to get what I am looking for. I can not get it to calculate the >=

=SUM(SUMIFS(Inventory[Ext-Value],Inventory[Status],{"0"},Inventory[QOH],">="&Inventory[BSL]))

I'm getting the same total as...

=SUMIFS(Inventory[Ext-Value],Inventory[Status],{"0"})


Example of Table: Inventory[Status] = {"0","NS","AP",DP","RB","RBH","MO"}

StoreMakeSourcePart#DescriptionQOHQPRBSLExcessYRSLBinMNSMNRStatusCostExt-ValueMfrDetReturnLastRCMinMFRSTDaysTBSLEntryNew SourceNew BinNotes
43831GM310028352RETAINER4003B110G831NS$3.75$15.000Y CPOBKR11/7/20170511/4/20175
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Are you entering the formula as an array formula, confirmed with Ctrl-Shift-Enter? After doing so, you should see curly braces appear around the formula in the formula bar.
 
Upvote 0
I did see Curly's appear after hitting Ctrl-Shift-Enter. Should that have changed anything?
 
Upvote 0
It's not clear to me what are you trying to achieve, but I suspect it is closer to that shown in Result3 in the example below.
Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1Result145
2Result2360
3Result330
4
5StoreMakeSourcePart#DescriptionQOHQPRBSLExcessYRSLBinMNSMNRStatusCostExt-ValueMfrDetReturnLastRCMinMFRSTDaysTBSLEntryNew SourceNew BinNotes
643831GM310028352RETAINER4003B110G831NS3.75150Y CPOBKR###05###5
743831GM310028352RETAINER4003B110G83103.75150Y CPOBKR###05###5
843831GM310028352RETAINER4003B110G831AP3.75150Y CPOBKR###05###5
943831GM310028352RETAINER4003B110G831DP3.75150Y CPOBKR###05###5
1043831GM310028352RETAINER4003B110G831RB3.75150Y CPOBKR###05###5
1143831GM310028352RETAINER4003B110G831RBH3.75150Y CPOBKR###05###5
1243831GM310028352RETAINER4003B110G831MO3.75150Y CPOBKR###05###5
1343831GM310028352RETAINER4003B110G83103.75150Y CPOBKR###05###5
1443831GM310028352RETAINER4053B110G83103.75150Y CPOBKR###05###5
15
Sheet1
Cell Formulas
RangeFormula
B1B1=SUMIFS(Inventory[Ext-Value],Inventory[Status],{"0"})
B2B2=SUM(SUMIFS(Inventory[Ext-Value],Inventory[Status],{"0"},Inventory[QOH],">="&Inventory[BSL]))
B3B3=SUMPRODUCT(Inventory[Ext-Value],(Inventory[Status]=0)*(Inventory[QOH]>=Inventory[BSL]))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
I'm sorry, That did not even cross my mind to type out what i was trying to achieve. I'm looking to total all Parts on hand, by [Ext-Value] that have a particular stocking status. In this case [Status] {"0"}. and that a Quantity on Hand [QOH] that is greater than or equal to the Best Stocking Level [BSL]. I know what my value should be, I just can not get this formula to calculate it.
 
Upvote 0
Does the SUMPRODUCT formula shown as "Result3" do what you want? I'm assuming that you want a row-by-row comparision?...that is, if the QOH >= BSL on that row AND Status=0 on that same row, then include Ext-Value in the sum?
 
Upvote 0
I will have to look either when I get back to work or my pc at home hooked back up.
 
Upvote 0
Never got around to hooking PC back up, wife doing some painting around the house.

Those formula you post did not produce what i was looking for. Let me see if I can explain this some with this data listed

This it my formula:

=SUMIFS(Inventory[Ext-Value],Inventory[Status],{"0"},Inventory[QOH],">="&Inventory[BSL]) <--- this formula is ignoring the 3rd criteria.

I was expecting this result. $13.74 ------ 7th item down meets the criteria.

I get these results by adding [Ext-Value], if [Status] = {0}, and [QOH] >= [BSL]

I was actually able to get it to work with this formula from within another sheet with just throwing some numbers out there. =SUMIFS(P2:P8,N2:N8,{0},F2:F8,">=" &H2:H8)



Example of Table: Inventory[Status] = {"0","NS","AP",DP","RB","RBH","MO"}
StoreMakeSourcePart#DescriptionQOHQPRBSLExcessYRSLBinMNSMNRStatusCostExt-ValueMfrDetReturnLastRCMinMFRSTDaysTBSLEntryNew SourceNew BinNotes
43831GM310028352RETAINER4003B110G831NS$3.75$15.000Y CPOBKR11/7/20170511/4/20175
43831GM110097530CAP4000042E33NS$25.23$100.920W WCR3/3/2020092/24/20209
43831GM210121502RETAINER160117054B560$0.61$9.760Y CPOBKR12/19/20190210/24/19952
43831GM210154775GASKET2002B105K55AP$15.19$30.380Y CPOBR1/9/2020043/2/19944
43831GM210166345KEY10002B105F23AP$1.84$18.400Y CPOBKBR3/19/2020049/1/20164
43831GM310236330WEATHERSTRIP1000063H5858AP$134.89$134.890W WC08/7/2015096/7/20159
43831GM210238852ROD1011B105G440$13.74$13.740Y CP BKBR1/28/2020029/1/20162
43831GM210306887BLADE1001142M99NS$8.37$8.370Y CR9/9/2019058/4/20165
43831GM210306888BLADE1001142M99NS$8.37$8.370Y CR9/10/2019058/4/20165
 
Last edited:
Upvote 0
I think this is what you're after - if you are not over confident with Excel - add some "helper rows" that's what I would do and then hide them away.
If not you can could use SUMPRODUCT to achieve this - this produces arrays with True/False (1/0s) which when multiplied will add just the highlighted cells.
1591634909058.png
 

Attachments

  • 1591634644999.png
    1591634644999.png
    42.5 KB · Views: 4
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,285
Members
449,218
Latest member
Excel Master

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