Formula help needed

bcowans

New Member
Joined
Oct 19, 2018
Messages
4
So, I have a several locations. Lets say Phoenix, Goodyear, Avondale.
For each location, they could have a number; 1, 2, 3, 4, or 5.
Keep in mind, the location and numbers can be listed multiple times on this sheet.
So what I need is, for the Location of Phoenix, what is the total amount for 1s and 2s and 3s and so on.
I would need to do this for each location.
 

JimM

Well-known Member
Joined
Nov 11, 2003
Messages
590
Sounds like a pivot table would be best bet but if you really want to do it by formula then

Assuming location in col A, number in column B

Then the No1s for Phoenix would be

=countifs(A:A,"Phoenix",B:B,1)
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,327
This should work (untested)

So Sheet1 has two columns: Location (Column A) and Number 1-5 (Column B)

in Sheet2!A2:A4 put Phoenix then Goodyear then Avondale into the cells.
in Sheet2!B1:F1 put 1 2 3 4 5 in the cells.
So you have a grid, column A lists locations, row 1 lists the numbers to total up.

in Sheet2!B2
=SUMIFS(Sheet1!B$1:B$1000,Sheet1!A$1:A$1000,$A2,Sheet1!B$1:B$1000,b$1)
copy across and down the grid
 

Forum statistics

Threads
1,082,244
Messages
5,363,981
Members
400,772
Latest member
solbebe

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top