View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid vezerid is offline
external usenet poster
 
Posts: 751
Default sumproduct with indirect

=SUMPRODUCT((INDIRECT("'"&C1&"'!A1:A20")="GA01")*( INDIRECT("'"&C1&"'!
B1:B20")=105))

HTH
Kostis Vezerides

On Nov 22, 4:38 pm, "BNT1 via OfficeKB.com" <u19326@uwe wrote:
Hi

With the help Pete UK of an earlier thread used the following formula

sumproduct(--(sheetname!A1:a20="GA01")--(sheetname!B1:b20=105))

What I now want to do is use the indirect function with sumproduct in a
summary sheet

sumproduct(--(""&c1&"!A1:a20,a6)--indirect(""&c1"!b1:b20=105

Cell A6 contains the first criteria (GA01)
Cell C1 contains the shhet name

Help would be appriciated as it is not working !

Brian

--
Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-functions/200711/1