I have a function here that is meant to calculate how many leads I have in each country.
=sumproduct($A2=(vlookup(id_leads!$A:$A,country_leads!$A:$B,2,0)))
On sheet id_leads
,$A:$A
contains the lead ids
On sheet country_leads
Column A
contains the lead ids. Column B
contains the country of which the lead is located.
Can someone explain why it fails in Excel (I get a #VALUE! error), but works fine in Google Sheets? A suggestion to make this formula work in Excel would be appreciated. I've tried to use COUNTIF and SUMIF, but couldn't figure it out.
Thanks in advance!
VLOOKUP
function and its first argument, but your desired results should be easily obtainable in Excel. - Ron Rosenfeld