Trying to find most common value with 2 criteria

shukero

Board Regular
Joined
Dec 3, 2015
Messages
64
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

I have a table of data that contains a list of requests (and their specifics) which come into our team. These specifics include the creator, created date, type of request (IE: Issue type), etc.

I'm trying to have an excel formula find the most common user per request, type per year. (IE: I have two search criterias: a) That the request be between 1/1/2020 & 12/31/2020, & b) That the request type be a specific type of request - "Request Type #1".

I have all my data combined into one table, and I've labelled specific columns with user friendly terms for my formulas:
"Creator" = The User who created the request
"Created Date" = The date the request was created
"Request_Type" = The type of request I'm searching for within this particular formula

So far I've tried variations for the following but haven't gotten anywhere due to the date "IF" statement always coming up as a "#N/A".
Excel Formula:
=INDEX(Creator,MODE(IF(AND(Request_Type="Request Type #1", Created_Date<DATEVALUE("01/01/2021")), MATCH(Creator,Creator,0))))

Can someone please help me?

Thanks,
Mike
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Please upload your example file & Desired Results with XL2BB ADDIN (Preferable) OR upload it at free uploading site e.g. www.dropbox.com or googledrive or onedrive and insert link here.
 
Upvote 0
As you are dealing with an array the formula should be
Excel Formula:
=INDEX(Creator,MODE(IF((Request_Type="Request Type A")*(Created_Date<DATEVALUE("01/01/2021")), MATCH(Creator,Creator,0))))
 
Upvote 0
Solution
Thanks Fluff,

That worked! So since I named several of my columns for ease of use within formulas I needed to add the "*" and remove the "AND" part of the formula. Just out of curiosity, what does the "*" represent within a formula? is that an array replacement for "AND"?

Thanks,
Mike
 
Upvote 0

Forum statistics

Threads
1,213,483
Messages
6,113,919
Members
448,533
Latest member
thietbibeboiwasaco

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