Value Brought Forward

Shafique

Board Regular
Joined
Nov 23, 2018
Messages
119
Hello Everyone.
i have a table about goods production where i store daily production shift wise e.g
tbl_prd
ID Date Shift B_F production_Qty Transfer Balance
01 01-01-21 DAY 100 211 178 133
02 01-01-21 Night 133 181 210 104
03 02-02-21 Day 104 200 204 100

So How to i get previous record's balance value in B_F filed
i store one shift data in one record.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
So How to i get previous record's balance value in B_F filed
i store one shift data in one record.
You don't. As a general rule, if the value can be predicted/calculated from data already in the table, you don't store it.

That might be different if the value is difficult to calculate and you query more than enter data, but in this case I can't see it as worthwhile to save the value directly in the table...
 
Upvote 0
Maybe this will help with a solution
or if you must continue on current path you would need this to get the previous record, assuming you cannot simply use the date of the prior day. This would be complicated if the prior day date had no production because of a holiday or day off.
Subqueries
 
Upvote 0
Solution

Forum statistics

Threads
1,221,533
Messages
6,160,382
Members
451,645
Latest member
hglymph

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