SOLVED
Home

To allocate stock from closing stock by formula

%3CLINGO-SUB%20id%3D%22lingo-sub-510624%22%20slang%3D%22en-US%22%3ETo%20allocate%20stock%20from%20closing%20stock%20by%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-510624%22%20slang%3D%22en-US%22%3E%3CP%3EHI%20Guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei've%20tried%20lots%20of%20times%20to%20get%20a%20solution%20for%20my%20problem.%20but%20still%20not%20sorted%20that.%20here%20attached%20my%20chart%20with%20two%20tables.%20in%20first%20table%20i%20have%20mentioned%20order%20number%20delivery%20date%20of%20that%20order%20number%20%2F%20required%20items%20order%20number%20wise%20and%20required%20qtys.%20in%20my%20second%20table%20i%20have%20mentioned%20items%20wise%20closing%20stock%20details.%20most%20of%20the%20items%20common%20for%20every%20order%20number.%20i%20need%20to%20allocate%20stock%20to%20first%20table%20from%20second%20table%20closing%20stock.%20for%20this%20i%20need%20to%20prioritize%20delivery%20date.%20as%20a%20example%20if%20i%20have%208000%20pcs%20of%20closing%20stock%20in%20one%20item%20in%20second%20table%20and%201st%20table%201%20have%205000%20wise%20two%20deliveries.%26nbsp%3B%20i%20need%20to%20allocate%201st%205000%20for%20first%20delivery%20and%20balance%203000%20for%26nbsp%3B%20second%20delivery)%20any%20one%20can%20help%20for%20me%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-510624%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20on%20mobile%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETraining%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUser%20Adoption%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-514154%22%20slang%3D%22en-US%22%3ERe%3A%20To%20allocate%20stock%20from%20closing%20stock%20by%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-514154%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F329467%22%20target%3D%22_blank%22%3E%40Ravindu94%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20working%20on%20this.%20It%20may%20take%20some%20time.%20I'll%20keep%20you%20posted.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-522998%22%20slang%3D%22en-US%22%3ERe%3A%20To%20allocate%20stock%20from%20closing%20stock%20by%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-522998%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F302344%22%20target%3D%22_blank%22%3E%40Celia_Alves%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eok%20thanks%2C%20im%20waiting%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-525044%22%20slang%3D%22en-US%22%3ERe%3A%20To%20allocate%20stock%20from%20closing%20stock%20by%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-525044%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F329467%22%20target%3D%22_blank%22%3E%40Ravindu94%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20see%20attached.%3C%2FP%3E%3CP%3EI%20converted%20your%20data%20ranges%20to%20actual%20excel%20tables.%3CBR%20%2F%3EThe%20columns%20in%20grey%20have%20formulas.%20Do%20not%20overwrite%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20values%20in%20the%20date%20column%20are%20not%20being%20recognized%20as%20dates.%3CBR%20%2F%3EI%20created%20a%20column%20%22Converted%20Dates%22%20that%20transforms%20your%20values%20into%20a%20date.%20Please%20continue%20to%20use%20your%20column%20to%20delivery%20dates.%20The%20other%20one%20will%20be%20used%20in%20the%20calculations%20and%20you%20can%20hide%20it%20if%20you%20want.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESame%20Product%20Order%20Rank%20-%20determines%2C%20for%20the%20same%20product%2C%20which%20is%20due%20first%20based%20on%20the%20date%20and%20then%20based%20on%20the%20quantity.%20For%20two%20orders%20of%20the%20same%20product%20with%20the%20same%20delivery%20date%2C%20the%20smaller%20quantities%20get%20filled%20first.%20If%20there%20are%20two%20or%20more%20orders%20of%20the%20same%20product%20with%20the%20same%20delivery%20date%20and%20same%20quantity%2C%20then%20order%20number%20sets%20the%20final%20priority%20for%20the%20rank%20calculation.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThe%20rank%20numbers%20can%20start%2C%20for%20the%20same%20product%2C%20at%20different%20values%2C%20depending%20on%20the%20number%20of%20existing%20orders%20for%20that%20same%20product.%20What%20matters%20is%20that%20for%20the%20same%20product%20the%20calculated%20values%20rank%20the%20orders%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20sort%20your%20table%20as%20you%20wish%2C%20using%20the%20sorting%20buttons%20at%20the%20top%20of%20the%20columns.%3CBR%20%2F%3E%3CBR%20%2F%3EAt%20the%20moment%2C%20the%20Table%20is%20sorted%20by%3CBR%20%2F%3EProduct%20name%20alphabetically%3CBR%20%2F%3Ethen%20by%20converted%20date%3CBR%20%2F%3Ethen%20by%20qty%3CBR%20%2F%3Eso%20that%20you%20can%20see%20the%20ranks%20and%20the%20quantity%20allocation%20working.(Google%20how%20to%20Custom%20sort%20a%20table%20in%20Excel%20with%20several%20criteria%2C%20if%20you%20don't%20know%20how%20to%20do%20this.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20helps.%20Have%20a%20great%20day!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-533118%22%20slang%3D%22en-US%22%3ERe%3A%20To%20allocate%20stock%20from%20closing%20stock%20by%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-533118%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F302344%22%20target%3D%22_blank%22%3E%40Celia_Alves%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehey%20man.%20its%20working%20on%20proper%20way.%20thanx.%20appreciate%20your%20support%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-534866%22%20slang%3D%22en-US%22%3ERe%3A%20To%20allocate%20stock%20from%20closing%20stock%20by%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-534866%22%20slang%3D%22en-US%22%3E%3CP%3EYou're%20welcome%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F329467%22%20target%3D%22_blank%22%3E%40Ravindu94%3C%2FA%3E!%3C%2FP%3E%3CP%3EI%20am%20glad%20that%20I%20could%20help.%3C%2FP%3E%3CP%3EIf%20you%20could%20mark%20my%20answer%20as%20the%20best%20answer%2C%20it%20would%20be%20great.%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-539102%22%20slang%3D%22en-US%22%3ERe%3A%20To%20allocate%20stock%20from%20closing%20stock%20by%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-539102%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F302344%22%20target%3D%22_blank%22%3E%40Celia_Alves%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDone!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethere%20is%20a%20one%20more%20small%20modification.%20i%20have%20add%20another%20chart%20on%20sheet%202%20and%20get%20final%20RM%20update%20on%20it.%20i%20need%20to%20make%20a%20hyperlink%20for%20that%20cells%20to%20filter%20date%20on%20sheet%20one%20table%20when%20click%20on%20sheet%202%20table%20to%20get%20which%20components%20are%20not%20available%20(%20when%20click%20sheet%202%20table%20Packing%20RM%20column%20cells%20to%20filter%20data%20on%20sheet%201%20table%20based%20on%20sub%20si%20number)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-539103%22%20slang%3D%22en-US%22%3ERe%3A%20To%20allocate%20stock%20from%20closing%20stock%20by%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-539103%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F302344%22%20target%3D%22_blank%22%3E%40Celia_Alves%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDone!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethere%20is%20a%20one%20more%20small%20modification.%20i%20have%20add%20another%20chart%20on%20sheet%202%20and%20get%20final%20RM%20update%20on%20it.%20i%20need%20to%20make%20a%20hyperlink%20for%20that%20cells%20to%20filter%20date%20on%20sheet%20one%20table%20when%20click%20on%20sheet%202%20table%20to%20get%20which%20components%20are%20not%20available%20(%20when%20click%20sheet%202%20table%20Packing%20RM%20column%20cells%20to%20filter%20data%20on%20sheet%201%20table%20based%20on%20sub%20si%20number)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-540122%22%20slang%3D%22en-US%22%3ERe%3A%20To%20allocate%20stock%20from%20closing%20stock%20by%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-540122%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F329467%22%20target%3D%22_blank%22%3E%40Ravindu94%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20need%20to%20understand%20better%20what%20you%20need%20but%20I%20believe%20you%20might%20be%20able%20to%20achieve%20it%20using%20slicers%20connected%20to%20the%20two%20tables.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Ravindu94
Contributor

HI Guys,

 

i've tried lots of times to get a solution for my problem. but still not sorted that. here attached my chart with two tables. in first table i have mentioned order number delivery date of that order number / required items order number wise and required qtys. in my second table i have mentioned items wise closing stock details. most of the items common for every order number. i need to allocate stock to first table from second table closing stock. for this i need to prioritize delivery date. as a example if i have 8000 pcs of closing stock in one item in second table and 1st table 1 have 5000 wise two deliveries.  i need to allocate 1st 5000 for first delivery and balance 3000 for  second delivery) any one can help for me?

8 Replies

@Ravindu94 

I am working on this. It may take some time. I'll keep you posted.

@Celia_Alves 

 

ok thanks, im waiting

Solution

@Ravindu94 

Please see attached.

I converted your data ranges to actual excel tables.
The columns in grey have formulas. Do not overwrite them.

 

The values in the date column are not being recognized as dates.
I created a column "Converted Dates" that transforms your values into a date. Please continue to use your column to delivery dates. The other one will be used in the calculations and you can hide it if you want.

 

Same Product Order Rank - determines, for the same product, which is due first based on the date and then based on the quantity. For two orders of the same product with the same delivery date, the smaller quantities get filled first. If there are two or more orders of the same product with the same delivery date and same quantity, then order number sets the final priority for the rank calculation.


The rank numbers can start, for the same product, at different values, depending on the number of existing orders for that same product. What matters is that for the same product the calculated values rank the orders correctly.

 

You can sort your table as you wish, using the sorting buttons at the top of the columns.

At the moment, the Table is sorted by
Product name alphabetically
then by converted date
then by qty
so that you can see the ranks and the quantity allocation working.(Google how to Custom sort a table in Excel with several criteria, if you don't know how to do this.)

 

I hope this helps. Have a great day!

 

@Celia_Alves 

 

hey man. its working on proper way. thanx. appreciate your support

You're welcome, @Ravindu94!

I am glad that I could help.

If you could mark my answer as the best answer, it would be great.

Thanks!

@Celia_Alves

 

Done!

 

there is a one more small modification. i have add another chart on sheet 2 and get final RM update on it. i need to make a hyperlink for that cells to filter date on sheet one table when click on sheet 2 table to get which components are not available ( when click sheet 2 table Packing RM column cells to filter data on sheet 1 table based on sub si number)

@Celia_Alves

 

Done!

 

there is a one more small modification. i have add another chart on sheet 2 and get final RM update on it. i need to make a hyperlink for that cells to filter date on sheet one table when click on sheet 2 table to get which components are not available ( when click sheet 2 table Packing RM column cells to filter data on sheet 1 table based on sub si number)

@Ravindu94 

I would need to understand better what you need but I believe you might be able to achieve it using slicers connected to the two tables.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies