Countif match

joshbrfc

New Member
Joined
Jan 17, 2022
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I want to count the quantity of entries in a row on a specific tab in a workbook based on the match of someones name.

So this is the master data tab.

1707828289178.png


Then i have separate tabs.

And i want it to match with the name cell and the quantity of data entries.

1707828275512.png



Hope that makes sense.

Would Lookup be better?

So it updates automatically when another data entry is added.

Any help greatly appreciated. It's part of trying to improve right first time :) Want a tracker to focus on who needs training more and quick overview.
 

Attachments

  • 1707828159604.png
    1707828159604.png
    2.4 KB · Views: 8
  • 1707828179629.png
    1707828179629.png
    3.9 KB · Views: 8
So, it is supposed to be counting the values on the other 5 tabs to give you the total counts, right?
How are the values (that are being counted) on the other tabs being updated?
By formulas? Links? Hard-coded?

Note that if you are just trying to count the values across all sheets, except for your summary sheet, you may be able to do it without VBA, as shown here:
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
So, it is supposed to be counting the values on the other 5 tabs to give you the total counts, right?
How are the values (that are being counted) on the other tabs being updated?
By formulas? Links? Hard-coded?

Note that if you are just trying to count the values across all sheets, except for your summary sheet, you may be able to do it without VBA, as shown here:

There are lots of tabs.

It matches the employee name on the respective tab to that employee name in the master data tab and populates that way automatically on the master data tab. Each individual tab is updated manually.
 
Upvote 0
OK, let's take a step back and see if we can come at this from a different angle.
Is there any way we can rename the sheets, so each sheet name is EXACTLY the same as the Employee Name?
Then we can write a formula without VBA that will exactly at just the sheet it needs to look at to get the data.
 
Upvote 0
OK, let's take a step back and see if we can come at this from a different angle.
Is there any way we can rename the sheets, so each sheet name is EXACTLY the same as the Employee Name?
Then we can write a formula without VBA that will exactly at just the sheet it needs to look at to get the data.
You mean just instead of initials on the tab, just put the actual persons name?
 
Upvote 0
Yes, if the name of the Sheet exactly matches the name field in column A of the summary, I think we may be able to do it easily without any VBA necessary.
 
Upvote 0
Yes, if the name of the Sheet exactly matches the name field in column A of the summary, I think we may be able to do it easily without any VBA necessary.
Yes okay, i will change them now. This may help me in the next step, and that's gathering information from all the sheets to add in common error reasons.
 
Upvote 0
Excellent!

So then if you have an entry in cell A2 on your Summary sheet, and you want to count the number of entries in cells B2:B1000 on the sheet with the same name as in cell A2, this is the formula you would put in cell B2:
Excel Formula:
=COUNTA(INDIRECT("'"&A2&"'!B20:B1000"))
 
Upvote 1
Solution
Excellent!

So then if you have an entry in cell A2 on your Summary sheet, and you want to count the number of entries in cells B2:B1000 on the sheet with the same name as in cell A2, this is the formula you would put in cell B2:
Excel Formula:
=COUNTA(INDIRECT("'"&A2&"'!B20:B1000"))
You sir.... are a legend! It's working great.

Thanks so much. I messed with this for ages, but just couldn't get there.

For some reason when the cell is empty it adds it as one.. but that's not an issue.... just remove the empty cell haha!

1710797766567.png



I'm now going to to expand on this and try to get trends from each tab for the error reasons each person is making and the most common one etc. EG a word typed in in B20:B1000 in each tab.... calculate the entries on all of the tabs for said word.

1710797717876.png
 
Upvote 0
For some reason when the cell is empty it adds it as one.. but that's not an issue.... just remove the empty cell haha!
You could modify the formula like this:
Excel Formula:
=IF(A2="","",COUNTA(INDIRECT("'"&A2&"'!B20:B1000")))
 
Upvote 0
G
You could modify the formula like this:
Excel Formula:
=IF(A2="","",COUNTA(INDIRECT("'"&A2&"'!B20:B1000")))
Great thanks.

Before i over complicate it, is there a way to calulate the following from all tabs in a workbook?

This is on the master data tab:

1710870360830.png


To pull from quantity of entries with the reason in column J(master data) that match column B in every single tab

1710870417623.png
 

Attachments

  • 1710870336090.png
    1710870336090.png
    12.6 KB · Views: 1
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,096
Latest member
Anshu121

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