This is an example for your current scenario but you can configure this for your all sheet:
Excel Formula:
=M9-VLOOKUP($L9-1, $L:$P, 5, 0)
To make this more general:
Excel Formula:
=M9-VLOOKUP($L9-1, $L:$U, COLUMN(E1), 0)
So when you move to colum Q, the formula eventually become:
Excel Formula:
=Q9-VLOOKUP($L9-1, $L:$U, COLUMN(H1), 0)[
[/QUOTE]
First of all thanx for the reply. Sir if i do l minus 1 then there will be an error because like L8 has 31 October and L9 has 28 October then I want data by subtracting 28 from 31 but I am getting error and how to solve it.