Excel Formula to count records in multiple tables

NWPhotoExplorer

New Member
Joined
Jan 19, 2021
Messages
34
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am trying to figure out what is wrong with my formula but I can't see to figure it out. I am trying to count all the records across different tables that have the same "SR NUMBER". I originally had this as 1 table, but then had to break it out into 12 tables, 1 for every month. So now I am trying to see if there is a way I can count the number of records for that particular job based on the SR Number field.

Here is my formula.
Excel Formula:
=IF(ISBLANK([@[SR Number]]),"",COUNTIFS(tbl_OFS_JANUARY[SR Number],[@[SR Number]],tbl_OFS_FEBRUARY[SR Number],[@[SR Number]],tbl_OFS_MARCH[SR Number],[@[SR Number]],tbl_OFS_APRIL[SR Number],[@[SR Number]],tbl_OFS_MAY[SR Number],[@[SR Number]],tbl_OFS_JUNE[SR Number],[@[SR Number]],tbl_OFS_JULY[SR Number],[@[SR Number]],tbl_OFS_AUGUST[SR Number],[@[SR Number]],tbl_OFS_SEPTEMBER[SR Number],[@[SR Number]],tbl_OFS_OCTOBER[SR Number],[@[SR Number]],tbl_OFS_NOVEMBER[SR Number],[@[SR Number]],tbl_OFS_DECEMBER[SR Number],[@[SR Number]]))

This just gives me an error of #VALUE and I cannot figure it out. Hoping someone on here can see what I did wrong and help me fix it.

Thanks!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You will need to do each table individually & add them together.
 
Upvote 0
You need to do it like
Excel Formula:
=IF(ISBLANK([@[SR Number]]),"",COUNTIFS(tbl_OFS_JANUARY[SR Number],[@[SR Number]])+COUNTIFS(tbl_OFS_FEBRUARY[SR Number],[@[SR Number]]))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

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