Solved

SUMIF assistance

Posted on 2016-09-28
5
46 Views
Last Modified: 2016-09-29
I have got a worksheet full of data (around 2000 rows and 15 columns). I need to do a sumif to see how often in the data, 2 columns match, to see how many rows have those same 2 values in these 2 columns (reference and address line 1). Can anyone provide any pointers, say for example column A is my "count" column, where I will be applying the SUMIF calculation to get a count, and column B is the reference column, and column C is the address line 1 column.

e.g.
count-reference-address1
---------------------------------------
2-12345-1 EE street
2-12345-1 EE street
1-34567-2 EE street
0
Comment
Question by:pma111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 8

Assisted Solution

by:Koen
Koen earned 250 total points
ID: 41820017
the easiest way is adding a column..

make column D with the following formula =concatenate(B2,C2) (and copy down)
Put in column A =countif($D$2:$D$4;D2)  (and copy down)
0
 
LVL 8

Expert Comment

by:Koen
ID: 41820021
if you import the data (or append) regulary then turn the import into a table (select a cell within the data an click 'Insert', 'Table').Then create both columns (with the formulas) at the right end.
The table will auto adjust and when you import the next time (and there are more or less lines) the formulas will adjust automatically.
0
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 250 total points
ID: 41820141
I'm restating your question to make sure I understand what you're wanting.

You have a list of data.  You want to include a "Count" column that shows how many rows contain the same values in both the "Reference" and "Address1" columns.  In your example,
Reference = 12345 and Address1 = "1 EE street"
occurs twice in the set, so the "Count" value for each will be 2.

You should use the COUNTIFS function to solve this, like so.
A2: =COUNTIFS($B$2:$B$2000,B2,$C$2:$C$2000,C2)

See the attached example file.

Regards,
Glenn
EE-Q_28972997.xlsx
0
 
LVL 3

Author Comment

by:pma111
ID: 41821248
thanks both worked fine
0
 
LVL 8

Expert Comment

by:Koen
ID: 41821395
please assign point if you are satisfied with the solution...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question