I have an excel with two sheets named raw
and data
here
raw sheet :
date sheet :
In raw sheet I will be uploading data manually.
What I am looking for :
In this, I want to create a formula which will check each name from the data
sheet in raw
sheet and it has to pick the total
value (D column in raw) and update the same in data
sheet in a cell which matches with last modified date.
For example :
Name is R420864561 and its last modified
date is 20141201 and total
value is 10.
So in my data sheet, it has to be updated like this
Above, value 10 is updated in a cell which matches the last modified
from raw sheet with date
in data sheet, here both are 20141201
.
I am using below formula for this (formula in C3)
=SUMIFS(raw!$D:$D,raw!$A:$A,$A3,raw!$C:$C,C$2)
Now, if last modified date
20141202 with total
50
Now, data sheet will updated like below using above formula
What I need now :
In above, if I update value in another date, the data updated in previous date is getting changing to 0. But I need to keep that data in that cell, if there is no update in that.
In above case, I need to keep previous data (for date 2014201)10 in data sheet cell C3
, and update 50 in D3
(for date 20141202)
I have added below code with macro, to copy paste the formula value, as simple value
Dim rngCell As Range
For Each rngCell In ActiveWindow.RangeSelection
rngCell.Value = rngCell.Value
Next rngCell
But that is not working here, It still resetting previous value to 0
when I update for a different date.
Any suggestion to correct this is much appreciated
I have uploaded the copy of the excel which I am working in below location :
https://www.dropbox.com/s/jpubzqbco5mflu5/1.1_test.xlsm?dl=0