excel - VLOOKUP With Multiple Criteria? -


i've been trying create vlookup return value based on if column's "submission" date falls in between date periods. aim provide view of projects have not submitted data in column (for week)

in 1 document have archive of projects submissions, adding new line of values every time submits project (along time/date of submission). (macro copies across information , saves). i've assigned every day of year week number, , vlookup'd today() allow me pull off current weeks information.

i'm trying return column hn if time has been submitted between date periods, pulling off newest submission week, project. each project has unique number assigned it.

(there can multiple submissions in week, sumif wouldn't work - multiplying values amount of times project has been submitted.)

if more information required, please let me know

example of archive data:

project obr        last report submitted:       costs 9977               29/01/2016 11:19             1050  9977               30/01/2016 12:30             1070 

(the costs kept subtotal)

example of trying @ moment:

=sumifs('[tur master report.xlsm]archive'!$hn:$hn,'[tur master report.xlsm]archive'!$b:$b,"<="&$dp:$dp,'[tur master report.xlsm]archive'!$b:$b,">="&$do:$do,'[tur master report.xlsm]archive'!$a:$a,$dt$2) 

however, using sumif, cost can duplicated if multiple submissions on same week.

then have vlookups comparing today() week numbers pull relevant week off

first, earliest date period. needed criteria retrieve associated cost.

for sample image below in b2 as,

=aggregate(15, 6, '[tur master report.xlsm]archive'!$b$2:$b$13/                   (('[tur master report.xlsm]archive'!$b$2:$b$13>=do2)*                    ('[tur master report.xlsm]archive'!$b$2:$b$13<=dp2)*                    ('[tur master report.xlsm]archive'!$a$2:$a$13=a2)), 1) 

now use 1 criteria in 2 column match retrieve cost.

for sample image below in c2 as,

=index('[tur master report.xlsm]archive'!$hm:$hm,            aggregate(15, 6, row('[tur master report.xlsm]archive'!$1:$13)/                            (('[tur master report.xlsm]archive'!$b$1:$b$13=b2)*                             ('[tur master report.xlsm]archive'!$a$1:$a$13=a2)), 1)) 

nothing it.

  tur_master


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -