Home

Formula Help

%3CLINGO-SUB%20id%3D%22lingo-sub-637423%22%20slang%3D%22en-US%22%3EFormula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-637423%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20day%20to%20all.%3C%2FP%3E%3CP%3EI%20want%20to%20create%20a%20small%20Stock%20Management%20System.%3C%2FP%3E%3CP%3EThe%20idea%20is%20to%20have%20a%20master%20sheet%20with%20%22Item%22%2C%20%22Description%22%2C%20%22Cat1%22%2C%20%22UoM%22%2C%20%22Cost%22%2C%20%22Sub%20Total%22%2C%20%22VAT%22%20and%20%22TOTAL%22%20in%20it.%20I%20do%20not%20think%20there%20is%20a%20need%20to%20add%20a%20Qty%20Column%20in%20here%20as%20it%20will%20just%20confuse%20everything%20even%20more.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOPTION%201%3A%3C%2FP%3E%3CP%3EMy%202nd%20sheet%20will%20be%20my%20%22OUT%22%20sheet%2C%20this%20is%20where%20I%20will%20use%20drop%20down%20menus%20to%20select%20the%20item.%20(This%20I%20can%20do).%3C%2FP%3E%3CP%3EMy%203rd%20sheet%20will%20be%20a%20%22Stock%20On%20Hand%22%20sheet.%3C%2FP%3E%3CP%3EIf%20I%20select%20the%20item%20from%20the%20drop%20down%20and%20in%20the%20cell%20next%20to%20it%20say%20the%20Qty%20issued%20out%20then%20after%20the%20work%20day%20is%20has%20concluded%20do%20a%20%22Consolidation%22%20under%20the%20DATA%20Tab%20it%20will%20combine%20everything.%20This%20I%20can%20do.%3C%2FP%3E%3CP%3EWhat%20I%20need%20is%20for%20this%20to%20update%20the%20SoH%20sheet%20once%20I%20have%20done%20the%20consolidation.%3C%2FP%3E%3CP%3ESo%20if%20%22Item%20A%22%20was%201000%20when%20the%20day%20started%20and%20over%20the%20day%20there%20was%20249%20booked%20out%20(from%20the%20Consolidation)%20then%20at%20the%20end%20when%20I%20run%20the%20Consolidate%20option%20it%20must%20automatically%20deduct%20249%20from%201000%20making%20the%20start%20total%20the%20next%20morning%20751.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOPTION%202%3A%3C%2FP%3E%3CP%3EIf%20I%20have%20my%20MASTER%20DATA%20sheet%20then%20on%20my%20%22OUT%22%20sheet%20select%20an%20item%20from%20the%20drop%20down%20menu%20and%20have%20it%20immediately%20deduct%20the%20%22Out%22%20Qty%20from%20my%20%22SoH%22%20on%20my%20%22Stock%20On%20Hand%22%20sheet.%3C%2FP%3E%3CP%3EThis%20must%20be%20done%20in%20such%20a%20way%20that%20if%20on%20line%203%20I%20book%20out%205%20units%20it%20takes%201000%20-%205%20and%20updates%20the%20SoH%20to%20995.%20Tricky%20might%20be%20that%20if%20I%20then%20on%20line%2060%20book%20out%20another%2010%20the%20formula%20must%20deduct%20the%2010%20from%20the%20995%20and%20update%20the%20SoH%20to%20985.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOption%202%20would%20be%20the%20preferred%20method%2Ftarget.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20assist%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20Regards%3C%2FP%3E%3CP%3ESteve%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-637423%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-642866%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-642866%22%20slang%3D%22en-US%22%3EAssistance%20would%20be%20impossible%20without%20your%20sample%20file.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-643088%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-643088%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3EThank%20you%20for%20your%20reply%2C%20I%20have%20included%20a%20sample.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-643479%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-643479%22%20slang%3D%22en-US%22%3EI%20suggest%20that%20your%20opening%20inventory%20must%20be%20included%20in%20the%20In%20Sheet%2C%20Thereafter%2C%20On%20Hand%20will%20simply%20be%20In%20-%20Out.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-651319%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-651319%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3EHi%20and%20thank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20fail%20to%20see%20how%20that%20would%20help%20me.%3C%2FP%3E%3CP%3EThe%20main%20thing%20is%20that%20the%20same%20item%20can%20be%20booked%20out%20on%20different%20lines.%3C%2FP%3E%3CP%3EHow%20would%20that%20continue%20to%20keep%20the%20SOH%20%22live%22%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20chance%20of%20sending%20an%20example%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20Regards%3C%2FP%3E%3CP%3ESteve%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3EI%20suggest%20that%20your%20opening%20inventory%20must%20be%20included%20in%20the%20In%20Sheet%2C%20Thereafter%2C%20On%20Hand%20will%20simply%20be%20In%20-%20Out.%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-651354%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-651354%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20See%20the%20problem%20is%20that%20I%20can%20select%20the%20item%20over%20a%20number%20of%20lines%2C%20I%20can%20book%20out%20the%20same%20item%20on%20line%204%2C%2011%2C%2026%20and%2037.%3C%2FP%3E%3CP%3EThe%20issue%20is%20that%20on%20each%20line%20of%20the%20same%20item%20being%20booked%20out%20the%20SOH%20must%20update%20and%20be%20%22live%22.%3C%2FP%3E%3CP%3EI%20understand%20what%20you%20are%20saying%20and%20it%20will%20work%20if%20I%20book%20that%20item%20out%20on%20one%20line%20only.%20I%20can%20as%20well%20actually%20capture%20my%20opening%20stock%20under%20the%20%22In%22%20tab%2C%20this%20will%20then%20make%20my%20SOH%20hat%20I%20have.%20But%20as%20I%20mentioned%2C%20this%20does%20not%20resolve%20the%20problem.%3C%2FP%3E%3CP%3ECheck%20my%20comment%20on%20the%20test%20sheet%20I%20sent.%20The%20reason%20there%20can%20be%20multiple%20lines%20with%20the%20same%20unit%20is%20that%20I%20have%205%20plumbers%2C%205%20electricians%20and%20for%20each%20job%20they%20book%20out%20stock.%20thus%20I%20type%20in%20the%20reference%20for%20where%20the%20job%20is.%20I%20cant%20update%20the%20reference%20every%20time%20I%20book%20out%20on%20the%20same%20line.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3ESteve%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-651493%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-651493%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F120547%22%20target%3D%22_blank%22%3E%40Steve%20Brand%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20I%20stated%20earlier%2C%20On%20Hand%20would%20simply%20be%20In%20-%20Out%2C%20with%20this%20formula%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DSUMIF(InSKU%2CA2%2CInQty)-SUMIF(OutSKU%2CA2%2COutQty)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20cumulative%20quantity%20on%20hand%20is%20determined%20with%20this%20formula%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DSUMIF(InSKU%2CB2%2CInQty)-SUMIF(OutCumSKU%2CB2%2COutCumQty)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ETest%20the%20foregoing%20formulas%20in%20the%20attached%20version%20of%20your%20file%20and%20inform%20me%20of%20your%20thoughts%20thereon.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-654288%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-654288%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EThank%20you%2C%20actually%20figured%20that%20SUMIF%20out%20yesterday%20after%20sending%20you%20the%20request%20for%20assistance.%3C%2FP%3E%3CP%3EAll%20sorted%20now%20and%20thank%20you%20for%20your%20assistance%20as%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-654344%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-654344%22%20slang%3D%22en-US%22%3ETake%20note%20that%20I%20included%20the%20opening%20stock%20as%20part%20of%20the%20In%20sheet%20for%20the%20formula%20to%20work.%20Also%2C%20the%20Out%20sheet%20includes%20a%20cumulative%20formula%20for%20stock%20on%20hand%20as%20entries%20are%20added%20thereto.%3C%2FLINGO-BODY%3E
Steve Brand
Occasional Contributor

Good day to all.

I want to create a small Stock Management System.

The idea is to have a master sheet with "Item", "Description", "Cat1", "UoM", "Cost", "Sub Total", "VAT" and "TOTAL" in it. I do not think there is a need to add a Qty Column in here as it will just confuse everything even more.

 

OPTION 1:

My 2nd sheet will be my "OUT" sheet, this is where I will use drop down menus to select the item. (This I can do).

My 3rd sheet will be a "Stock On Hand" sheet.

If I select the item from the drop down and in the cell next to it say the Qty issued out then after the work day is has concluded do a "Consolidation" under the DATA Tab it will combine everything. This I can do.

What I need is for this to update the SoH sheet once I have done the consolidation.

So if "Item A" was 1000 when the day started and over the day there was 249 booked out (from the Consolidation) then at the end when I run the Consolidate option it must automatically deduct 249 from 1000 making the start total the next morning 751.

 

OPTION 2:

If I have my MASTER DATA sheet then on my "OUT" sheet select an item from the drop down menu and have it immediately deduct the "Out" Qty from my "SoH" on my "Stock On Hand" sheet.

This must be done in such a way that if on line 3 I book out 5 units it takes 1000 - 5 and updates the SoH to 995. Tricky might be that if I then on line 60 book out another 10 the formula must deduct the 10 from the 995 and update the SoH to 985.

 

Option 2 would be the preferred method/target.

 

Can anyone assist?

 

Thank you

 

Kind Regards

Steve

8 Replies
Assistance would be impossible without your sample file.

@TwifooThank you for your reply, I have included a sample.

I suggest that your opening inventory must be included in the In Sheet, Thereafter, On Hand will simply be In - Out.

@TwifooHi and thank you for your reply.

 

I fail to see how that would help me.

The main thing is that the same item can be booked out on different lines.

How would that continue to keep the SOH "live"?

 

Any chance of sending an example?

 

Thank you

 

Kind Regards

Steve


@Twifoo wrote:
I suggest that your opening inventory must be included in the In Sheet, Thereafter, On Hand will simply be In - Out.

 

@Twifoo 

Hi, See the problem is that I can select the item over a number of lines, I can book out the same item on line 4, 11, 26 and 37.

The issue is that on each line of the same item being booked out the SOH must update and be "live".

I understand what you are saying and it will work if I book that item out on one line only. I can as well actually capture my opening stock under the "In" tab, this will then make my SOH hat I have. But as I mentioned, this does not resolve the problem.

Check my comment on the test sheet I sent. The reason there can be multiple lines with the same unit is that I have 5 plumbers, 5 electricians and for each job they book out stock. thus I type in the reference for where the job is. I cant update the reference every time I book out on the same line.

 

Regards

Steve

@Steve Brand 

As I stated earlier, On Hand would simply be In - Out, with this formula: 

=SUMIF(InSKU,A2,InQty)-SUMIF(OutSKU,A2,OutQty)

The cumulative quantity on hand is determined with this formula: 

=SUMIF(InSKU,B2,InQty)-SUMIF(OutCumSKU,B2,OutCumQty)

Test the foregoing formulas in the attached version of your file and inform me of your thoughts thereon. 

@Twifoo 

Hi,

Thank you, actually figured that SUMIF out yesterday after sending you the request for assistance.

All sorted now and thank you for your assistance as well.

Take note that I included the opening stock as part of the In sheet for the formula to work. Also, the Out sheet includes a cumulative formula for stock on hand as entries are added thereto.
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies