Add and subtract from another sheet

Jasmin74

New Member
Joined
May 23, 2018
Messages
10
Hello,
I have a workbook with two sheets
Sheet 1- Oldstock 2021-2022 : It contains warehouse information

Sheet 2- Transaction
we are selling & returning items stated
Question 1:
About the information we got from the first article
We have two processes: the sale (Sale) and the return (retrieval) and the quantity sold or returned
After putting the quantity sold, I want to make a confirmation in order to transfer NEWSTOCK to Quantity in stock on the first sheet.


Question 2:
2- How to add the current date automatically each time I add a new line
I put it now () but how is it written automatically

The file is attached.

Thank you.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to MrExcel Message Board.
Please update account details to we know what version of excel & Platform you used and guide better based them.
After putting the quantity sold, I want to make a confirmation in order to transfer NEWSTOCK to Quantity in stock on the first sheet.
After add formula at first sheet, your previous quantity at Transaction Sheet affected, because of related formula.
But try this:
At cell E3 in first Sheet input this (update range to your last row also)
Excel Formula:
=LOOKUP(2,1/((Transaction!$B$3:$B$13='OldStock2021-2022'!C3)*(Transaction!$G$3:$G$13>0)),Transaction!$I$3:$I$13)
For Now function:
first go to File Tab, excel option, formula section and Enable iterative calculation (add tick mark)
then at Cell A3 at 2nd sheet Write:
Excel Formula:
=IF(B3<>"",IF(A3="",NOW(),A3),"")
and drag it down.
Now whenever you input new data at column B at the same row, Date and Time appears.
 
Upvote 0
Thank you sir, as i am a newbie can you do the appropriate to the file & send it to me so that I can explore it?
I appreciate your help.
 
Upvote 0
K must not to be changed - because I can't protect the sheet if I want to change values-
While E is the one that must be changed with the relative newstock from the Transaction sheet
 
Upvote 0
Then We can Use Column K values at your first original Stocks value at another formulas at source.

AND Again
Please update account details to we know what version of excel & Platform you used and guide better based them.
and don't forgot to save.
 
Upvote 0
E is the moving balance, going down on sale & up on retrieval from sheet transaction.
Thank you.
 
Upvote 0
Try this at Column E of First Sheet :
Start from E2 and drag it down:
Excel Formula:
=IF(COUNTIFS(C2,Transaction!$B$3:$B$13)=0,VLOOKUP(C2,'OldStock2021-2022'!$C$2:$K$7,9,FALSE),LOOKUP(2,1/((Transaction!$B$3:$B$13='OldStock2021-2022'!C2)*(Transaction!$G$3:$G$13>0)),Transaction!$I$3:$I$13))

And Column E at 2nd sheet start from E3 and Drag it down:
Excel Formula:
=IF(COUNTIFS($B$3:B3,B3)=1,VLOOKUP(B3,'OldStock2021-2022'!$C$2:$K$7,9,FALSE),LOOKUP(2,1/((Transaction!$B2:$B$3=B3)*(Transaction!$G2:$G$3>0)),Transaction!$I2:$I$3))
 
Upvote 0
What's the problem. Describe it with Details.
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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