excel - Copy certain values dependent on date -
i have 2 workbooks : monthly.xlsm
, annual.xlsm
. starting row 4 , column a, in annual.xlsm
dates of year. in monthly.xlsm
dates of current month starting column e (the next date in column g) . now, if date correspond , want copy monthly.xlsm
cell column date annual.xlsm
corespondent row.
ex:
monthly.xlsm
has in e1 date 27.01.2016, in cell e4 value mike. in annual.xlsm
, in a8 date 27.01.2016. if true, copy e4 monthly.xlsm
dr8 in annual.xlsm
.
monthly.xlsm
has in g1 date 28.01.2016, in cell g4 value mary. in annual.xlsm
, in a9 date 28.01.2016. if true, copy g4 monthly.xlsm
dr9 in annual.xlsm
.
i have tried formulas can't figure formula leap cells.
in annual.xlsm, in cell dr8 put in formula
hlookup(a8,monthly.xlsm!$e$1:$g$4,4,false)
.
change range , drag formula
Comments
Post a Comment