Solved

SUMIF assistance

Posted on 2016-09-28
5
38 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

937 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now