Solved

SUMIF assistance

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Make a Cell act like a Date 7 38
Excel VBA User Form Help 21 28
Excel Calculate Average - Grouped Values 7 23
Creating An Intelligent Dropdown 8 26
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
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 Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

785 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