Excel formula or Vba to Sum of all lookup value from multiple excelsheet -
i need below scenario,
- sheet1 a2 has date
- sheet2 , sheet3 has dates in column , numbers in column b
example below,
i want sum value sheet2 & sheet3 b column values in sheet1 a2 if finds in sheet2 & sheet3 a.
below formula can sum sheet2 not able both sheet2 , sheet3.
{=sum((sheet2!$b$2:$b$65500)*(sheet2!$a$2:$a$65500='sheet1'!a2))}
please in formula or vba, thanks
can't add two?
in b2 of sheet 1
=sumif(sheet2!a:a,a2,sheet2!b:b)+sumif(sheet3!a:a,a2,sheet3!b:b)