Formula mod to include AND in Logic

Walker_Ice

Board Regular
Joined
Oct 6, 2023
Messages
50
Office Version
  1. 2021
Platform
  1. MacOS
Hi everyone,

I am trying to modify a formula that works to take into account which employee made the appointments.
The employee name is listed in cell B4 & the column with the employee name is in the range "Income_Artist".

Below you can see the mini table version of what I am working on. Any help would be appreciated. Thank you.


TEsting_Excel_File.xlsx
ABC
3Appointment Analysis
4Select Artist:Bob2023
5Month:# of ApptsAvg price per Appt
6JAN0$ -
7FEB1$ 85.00
8MAR0$ -
9APR0$ -
10MAY1$ 90.00
11JUN1$ 100.00
12JUL0$ -
13AUG0$ -
14SEP1$ 90.00
15OCT0$ -
16NOV0$ -
17DEC0$ -
Sheet4
Cell Formulas
RangeFormula
B6:B17B6=IF( $C$4="All", COUNT(FILTER(Income_Dates, MONTH(Income_Dates) = MONTH(DATEVALUE("1-"&TEXT(A6, "mmm")&"-2000")))), COUNT( FILTER( Income_Dates, (MONTH(Income_Dates) = MONTH(DATEVALUE("1-"&TEXT(A6, "mmm")&"-2000"))) * (YEAR(Income_Dates) = $C$4) ) ) )
C6:C17C6=IFERROR( IF( $C$4="All", SUM(FILTER(Income_TotalPay, MONTH(Income_Dates) = MONTH(DATEVALUE("1-"&TEXT($A6,"mmm")&"-2000")))) / B6, SUM(FILTER(Income_TotalPay, (MONTH(Income_Dates) = MONTH(DATEVALUE("1-"&TEXT($A6,"mmm")&"-2000"))) * (YEAR(Income_Dates) = $C$4))) / B6 ), 0 )
Named Ranges
NameRefers ToCells
Income_Dates=Sheet2!$A$2:$A$8B6:C17
Income_TotalPay=Sheet2!$D$2:$D$8C6:C17
Cells with Data Validation
CellAllowCriteria
B4ListJoe,Bob,Steve
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
COUNT(FILTER(Income_Dates, MONTH(Income_Dates) = MONTH(DATEVALUE("1-"&TEXT(A6, "mmm")&"-2000"))))
Are you looking for this? Actually your question is bit unclear -

COUNT(FILTER(Income_Dates, (MONTH(Income_Dates) = MONTH(DATEVALUE("1-"&TEXT(A6, "mmm")&"-2000")))*(Income_Artist=$B$4)))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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