Tallying items with multiple criteria - countifs not working

Vorlon42

New Member
Joined
Nov 17, 2020
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a two-part question.
I am working on a construction unit tally sheet and I am having difficulties getting useful results. I had thought that the Countifs function would serve nicely, however it is not giving useful results.
Capture.PNG

I am trying to create a tally list as shown on the far right.
The first criteria is 'Action' (The I, R or H in the left column)
The second criteria is the unit. In the case of this screenshot, the units are Pole Height-Class and Ground
The third criteria (which only applies to the guying unit E-13) is quantity. All of the other units are singular.

I though the Countifs function as shown in the formula bar would have worked, however it is giving a #Value error.

I've been beating my head on the wall for a while and I'm getting tired of the squishy sound...

Thanks in advance.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Can you use the XL2BB download ( see my tag) to post a useful sample of your data back, so that we don't have to retype you data
OR
Upload the worksheet to a hosting site, Dropbox for example, then post the link to that upload back here.
But I think SUMPRODUCT will be you prefered formula
AND
using merged cells will not help with any formula you attempt to use.
 
Upvote 0
Michael,
I cannot install XL2BB on my work computer and I could not get it to function on my personal laptop, so here is a Box link to a sanitized version of the spreadsheet:
Please let me know if this works.
Unfortunately, I cannot avoid merged cells in this case.
Thanks
 
Upvote 0
Can't access that login....do you have DropBox ??
 
Upvote 0
Try referring to you leftmost range in each of the set of merged cells
Excel Formula:
=COUNTIFS(J16:J37,CG16,L16:L37,CF19)
So, col "J" not "J" AND "K"....same with the other ranges
 
Upvote 0
Perfect. You were absolutely right about merged cells being a pain in the rear.
One last related question - In column AN - the "Unit E" column, there is a discrete quantity stated on the sheet just to the left. Is there a method to get that quantity factored into the formula? Perhaps multiply the countifs result by the value in the quantity cell?
 
Upvote 0
Do you mean the value in Coll "AM" ?
 
Upvote 0
Change the formula to
Excel Formula:
=SUMIFS(AM16:AM37,J16:J37,CH16,L16:L37,CF19)
 
Upvote 0

Forum statistics

Threads
1,215,377
Messages
6,124,598
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top