Macro for calculating Store Balance

Tarek_CTG

Board Regular
Joined
Apr 27, 2015
Messages
160
Office Version
  1. 2016
Platform
  1. Windows
Dear All,

I need help for building a Macro for my store balance for all products.

My original excel file is here:

https://drive.google.com/file/d/1dpASKSVYVb2BUu7HqSryIEsv-Yc31pSf/view?usp=sharing


There are some sheets in the workbook. In the sheet named "Previous Database", I have arranged my current quantity of some products. In the sheet named "Store Balance", I will put the quantity of products in and out from the store for future usage. So, my final quantity will be updated in the sheet named "Present Database". The formula will be: if the Category, Description of Items, Specification, Brand, Unit and Container of sheet "Store Balance" is equal and same to the those of sheet "Previous Database", then the present quantity will be: Qty from "Previous Database", sum up to "Store In" and subtract to "Store Out" from sheet "Store Balance"; that is Present Quantity=Qty from "Previous Database"+Qty from "Store In"-Qty From "Store Out". The result or final qty will be in Qty of "Present Database". And this calculation will be carry out one after another when products will be add or out in any time. I will only input data in "Store Balance" sheet. No data will be added in "Previous Database" sheet as it is my current product quantity.

After that, when i will find my updated quantity in my "Present Database" sheet, I will re-arrange the updated products quantity in different sheets by using category name from "Present Database". For example: in Category: named "Pipe" will go to sheet named "Pipe", Category named "Cable" will go to sheet named "Cable" and so on.

I need all of these functions or calculations using Macro and vba coding. I hope you all understand my points.

Many many thanks in Advance.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Generally the goal for this forum is to answer questions to help the poster with a particular problem, not redesign an entire application. Please break your question down in to smaller chunks and you will likely get a response. I am responding to this post just before it scrolls off the 'Zero Replies Posts' list
 
Upvote 0

Forum statistics

Threads
1,213,544
Messages
6,114,239
Members
448,555
Latest member
RobertJones1986

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