Formula to get the number of times a company name appears in a month and year

MariahCab

New Member
Joined
Mar 27, 2024
Messages
10
Office Version
  1. 365
Platform
  1. Windows
In the Referrals & Admissions Analysis sheet I am needing to calculate how many times a Referral Source appears in the Referrals & Admissions sheet as well as how many of them were actually admitted to our services.

Prior to this I had just been tracking overall so I only needed the =COUNTIF(Referrals & Admissions!A:A, "Referral Source") formula but am unsure of how to get more specific than this.

thank you for any help!
 

Attachments

  • Referrals and Admissions .png
    Referrals and Admissions .png
    18.7 KB · Views: 27
  • Referrals and Admissions Analysis.png
    Referrals and Admissions Analysis.png
    24.4 KB · Views: 22

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Untested, but something like this:

Excel Formula:
=COUNTIFS(Referals & Admissions!A:A,"Referral Source",Referals & Admissions!B:B, ">=" & EOMONTH(B1,-1)+1, Referals & Admissions!B:B, "<=" & EOMONTH(B1,0))

Excel Formula:
=COUNTIFS(Referals & Admissions!A:A,"Referral Source",Referals & Admissions!B:B, ">=" & EOMONTH(B1,-1)+1, Referals & Admissions!B:B, "<=" & EOMONTH(B1,0),Referals & Admissions!G:G,"Yes")
 
Upvote 0
Untested, but something like this:

Excel Formula:
=COUNTIFS(Referals & Admissions!A:A,"Referral Source",Referals & Admissions!B:B, ">=" & EOMONTH(B1,-1)+1, Referals & Admissions!B:B, "<=" & EOMONTH(B1,0))

Excel Formula:
=COUNTIFS(Referals & Admissions!A:A,"Referral Source",Referals & Admissions!B:B, ">=" & EOMONTH(B1,-1)+1, Referals & Admissions!B:B, "<=" & EOMONTH(B1,0),Referals & Admissions!G:G,"Yes")
when i entered this it is opening my file explorer to upload something to it.
 
Upvote 0
Ooops. Referrals is spelled wrong. You can delete the referrals & admissions! and replace it with the actual reference.
 
Upvote 0
Column B & Dragged Down:
Excel Formula:
=COUNTIFS('Referrals $ Admissions'!$A:$A,$A3,'Referrals $ Admissions'!$B:$B, ">=" & EOMONTH(B$1,-1)+1,'Referrals $ Admissions'!$B:$B,"<="&EOMONTH(B$1,0))
Column C & Dragged Down:
Excel Formula:
=COUNTIFS('Referrals $ Admissions'!$A:$A,$A3,'Referrals $ Admissions'!$B:$B, ">=" & EOMONTH(B$1,-1)+1,'Referrals $ Admissions'!$B:$B,"<="&EOMONTH(B$1,0),'Referrals $ Admissions'!$G:$G,"YES")
Copy and paste those columns in F:G and so on
 
Upvote 1
Solution
you are my new
Column B & Dragged Down:
Excel Formula:
=COUNTIFS('Referrals $ Admissions'!$A:$A,$A3,'Referrals $ Admissions'!$B:$B, ">=" & EOMONTH(B$1,-1)+1,'Referrals $ Admissions'!$B:$B,"<="&EOMONTH(B$1,0))
Column C & Dragged Down:
Excel Formula:
=COUNTIFS('Referrals $ Admissions'!$A:$A,$A3,'Referrals $ Admissions'!$B:$B, ">=" & EOMONTH(B$1,-1)+1,'Referrals $ Admissions'!$B:$B,"<="&EOMONTH(B$1,0),'Referrals $ Admissions'!$G:$G,"YES")
Copy and paste those columns in F:G and so on
you are literally the best!! thank you!!
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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