Counting specific dates from multiple columns

mattbird

Active Member
Joined
Oct 15, 2013
Messages
305
Office Version
  1. 2016
Hi,

I am trying to count how may time a month appear in my table, however, I have three columns. If the 1st date is cancelled then a 2nd date is given and so on. I need the 2nd invite to supersede the 1st invite and the 3rd invite to supersede the 2nd invite to produce the correct result.

Example 1: If I entre Apr in cell F2 (cell has a drop down list of months Apr to Dec), then G2 should return 2.

Example 2: If I enter Feb in cell F2, then G2 should return 3.

Also I don't want black cells to affect the count i.e. B9, as dates may be added at a later time etc.

Any help is greatly appreciated.

ABCDEFG
11st Invite2nd Invite3rd InviteMonthNo
201/01/202302/04/2023
320/01/2023
418/02/202302/03/202310/04/2023
505/02/2023
610/03/20/23
716/02/202320/02/202327/02/2023
803/03/2023
9
1001/01/202309/02/2023
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I used a helper column. If someone can do without a helper column it would be great. I know you can with 365, but you don't have that.

Book1
ABCDEFG
11st Invite2nd Invite3rd InviteLastMonthNo
201/01/202302/04/202302/04/2023Apr2
320/01/202320/01/2023feb3
418/02/202302/03/202310/04/202310/04/2023
505/02/202305/02/2023
610/03/202310/03/2023
716/02/202320/02/202327/02/202327/02/2023
803/03/202303/03/2023
9 
1001/01/202309/02/202309/02/2023
Sheet2
Cell Formulas
RangeFormula
G2:G3G2=SUM(--(TEXT($E$2:$E$10,"mmm")=F2))
E2:E10E2=IF(SUM(--(B2:D2<>""))=0,"",MAX(B2:D2))
 
Upvote 0
Thanks for the assist,

The formula is working. I am now trying to integrate the formula into my COUNTFI formula, however I'm struggling to get it to provide the correct outcome.

{=IF($G$7="Audit Review",COUNTIFS(AR_I,G4,AR_R,"<>"),SUM(--(TEXT(AR_E,"mmm")=$A33)))}

I'm trying to get the formula to look at AR_I (I3:I7) and depending on what is selected in the drop down list (G4) it will count. then I need it to look at AR_R (R3:R7) and if it has a percentage in it to count it. finally I need it to look at AR_E (E3:E7) and count what ever month is in A33.

I have tried different variations but am not sure how to integrate the SUM formula correctly.

I hope this makes
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,147
Members
453,021
Latest member
Justyna P

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