Link to home
Start Free TrialLog in
Avatar of tols12
tols12

asked on

My countif statement isn't working.

I have a count if statement that isn't working. On Sheet 1, column a, i have lots of different names. Many rows in column a are the same. In column b there is a value next to it. On sheet two, i put my count if statement. Say in sheet 2, column a, i have the name Ryan. In column b of sheet 2, i am trying to total all of those values on sheet 1, column b that have a value next to the name ryan, in column a. Does that make sense? So, i created a formula like this: =if(countif(sheet1!A:B,sheet2!A1),vlookup(sheet2!A1,sheet1!A:B,2,0),0). This formula has worked in the past, but for some reason its not right now. On Sheet 2, how do i sum up all of the values next  to Ryan on sheet 1? Thanks!!!!
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tols12
tols12

ASKER

That worked. Thank you!!!!!!!!!