Sumif function

Hi!

I need to sum up values in Sheet 2 column B based on the data that is in Sheet 1.

Please refer to the attached file.

thx
SumIf-formula.xlsx
LadkissonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib Husain, SyedEngineerCommented:
Try this ARRAY formula

=SUM(IF(ISNA(MATCH(A2:A24,Sheet1!$A$2:$A$7,0)),0,Sheet2!B2:B24))
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LadkissonAuthor Commented:
no it did not work...it just gave me Total value for column B in sheet 2. Please see the attached file.
SumIf-formula.xlsx
0
Saurabh Singh TeotiaCommented:
You need to enter that formula by ctrl+shift+enter..

Alternatively you can simply enter this formula...

=SUMPRODUCT(ISNUMBER(MATCH(Sheet2!A$2:A$24,Sheet1!A2:A7,0))*(Sheet2!B$2:B$24))

by simple enter and it will do what you are looking for...

Your workbook attached...

Saurabh...
SumIf-formula.xlsx
0
LadkissonAuthor Commented:
Actually I did enter the combination of ctrl+shift+enter after I submitted my comment:) But it gave me a different answer too - $127.86 which is wrong....let me see if your suggested formula works...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.