I am trying to use the sumifs() statement to add up values of a column. I have the following worksheet called January in Excel 2010:
_____________A_____________________ B ___________
1_________ABC Company_______________100
2_________Abc Company_______________100
3_________abc Company_______________100
4_________Widget Company____________100
5_________Widget Com________________100
6_________Widget Comps______________100
On the Main worksheet I am trying to sum the values for each company:
___________ A __________________ B ________________________
1_______ABC Company___________=SUMIFS(January!$B:$B,January!$A:$A,A1)
2_______Widget Company_________=SUMIFS(January!$B:$B,January!$A:$A,A2)
When I do it this way I get $100 for each value in column B of the main worksheet since the names in column A of the main worksheet don’t match the names in column A of the January worksheet. I want to use the Upper() command and the Mid() command to try and match the first 8 values of column A of the main sheet with the first 8 characters in column A of the January worksheet. I want to compare Upper(Mid(A1,1,8)) with the first 8 characters of the January worksheet column A. How can I accomplish this?
Bookmarks