Filter formula giving #value error

leatherhen99

New Member
Joined
Dec 17, 2019
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hi All!

I have tried to search for a solution, but I'm not able to figure out what I'm doing incorrectly with this formula. I can get it to work with one criterion but when I try to use two criteria, it doesn't work...

Heres a small snippet of my table "AuditCriteria"
1704905907282.png

Q3 = "Jan"
Q4 = "New Hire"
Excel Formula:
=FILTER(AuditCriteria[[Jan]:[Dec]],AuditCriteria[[#Headers],[Jan]:[Dec]]=Q3)
Excel Formula:
=FILTER(AuditCriteria[[Jan]:[Dec]],AuditCriteria[Type]=Q4)
this one will not work:(
Excel Formula:
=FILTER(AuditCriteria[[Jan]:[Dec]],(AuditCriteria[[#Headers],[Jan]:[Dec]]="Jan")*(AuditCriteria[Type]="New Hire"))

I'm getting a #VALUE error... When I highlight and hove over each section of the code, the small pop-ups are giving me the correct values and/or true/false statements...but I cannot get it to give me the correct information.

Any support would be greatly appreciated!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
You need to do a double filter
Excel Formula:
=filter(FILTER(AuditCriteria[[Jan]:[Dec]],AuditCriteria[[#Headers],[Jan]:[Dec]]="Jan"),AuditCriteria[Type]="New Hire")
 
Upvote 0
Solution
You need to do a double filter
Excel Formula:
=filter(FILTER(AuditCriteria[[Jan]:[Dec]],AuditCriteria[[#Headers],[Jan]:[Dec]]="Jan"),AuditCriteria[Type]="New Hire")
That worked PERFECTLY!!!! Thank you so much!!! I watched so many videos and read so many articles, but no one gave that as a solution... thanks again!!!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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