macattack1
New Member
- Joined
- May 12, 2022
- Messages
- 7
- Office Version
- 365
- Platform
- MacOS
Hello everyone. Awesome forum! Hope everyone is having a wonderful Thursday. I was wondering if any of you could help me with this problem I have been having in excel. I am creating a filter function based off of raw data to give me data from that raw data given two date constraints and two dollar constraints. The syntax is as follows:
Where D7:M1000 is the raw data range and D, E, F, G are the columns from it I am attempting to pull from. The values at the end of each statement following ">=" and "<=" are the specific cells that are constraints. I believe this syntax is correct but unfortunately, it is not returning any values given the for ranged constraints. Is there something I am doing wrong? Is there something I need to add? Please let me know if you have any idea. I appreciate your consideration and thank you for any help you are able to provide.
VBA Code:
=FILTER('Raw Data'!D7:M1000,('Raw Data'!D7:D1000>=D37)*
('Raw Data'!D7:D1000<=D38)*('Raw Data'!E7:E1000>=E37)*
('Raw Data'!E7:E1000>=E38)*('Raw Data'!F7:F1000>=F37)*
('Raw Data'!F7:F1000>=F38)*('Raw Data'!G7:G1000>=G37)*('Raw Data'!G7:G1000>=G38),"")
Where D7:M1000 is the raw data range and D, E, F, G are the columns from it I am attempting to pull from. The values at the end of each statement following ">=" and "<=" are the specific cells that are constraints. I believe this syntax is correct but unfortunately, it is not returning any values given the for ranged constraints. Is there something I am doing wrong? Is there something I need to add? Please let me know if you have any idea. I appreciate your consideration and thank you for any help you are able to provide.