简体   繁体   中英

INDEX MATCH with multiple criteria that aren't exact matches without using array

I'm trying to rewrite the following without having to use an array (processing time is currently so slow it's nearly impossible to do anything in this workbook):

{=INDEX('Sheet1'!$F:$F,MATCH(1,('Sheet2'!$C5='Sheet1'!$C:$C)*('Sheet2'!$F5='Sheet1'!$E:$E)*('Sheet1'!$A:$A>='Sheet2'!$A5)*('Sheet1'!$A:$A<='Sheet2'!$B5),0))}

Sheet1: A = Start Date; C = Name; E = Project; F = Hours

Sheet2: A = Start Date; B = End Date; C = Name; F = Project

I've considered concatenating 'Start Date'&'Name'&'Project', but that won't work because the dates between the two sheets aren't necessarily exact matches - Sheet1 Start and End Dates typically fall within the Start and End Dates on Sheet2 but don't always encompass the same exact ranges.

由于小时是数字,因此请使用SUMIFS()

=SUMIFS('Sheet1'!$F:$F,'Sheet1'!$C:$C,'Sheet2'!$C5,'Sheet1'!$E:$E,'Sheet2'!$F5,'Sheet1'!$A:$A,">=" & 'Sheet2'!$A5,'Sheet1'!$A:$A,"<=" &'Sheet2'!$B5)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM