IF statement with Filter

ianjwerner

New Member
Joined
Sep 20, 2023
Messages
17
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a report card that uses the FILTER function and looks at date ranges.
I have it set to say IF a cell =0 the result will be from UNIQUE list
IF Not, FILTER by the Cell's value.
The IF NOT by cells value also looks at date ranges but I can't get the IF Cell = 0 also look at the dates

=IF(C8=0,UNIQUE(SOURCE!L3#),SORT(FILTER(SOURCE!L3#,(SOURCE!M3:M560=CARD!C8)*(SOURCE!R3:R560>=ORGN!AA3)*(SOURCE!R3:R560<=ORGN!AB3),"NO RESULTS")))

What can I add to this to have =IF(C8=0,UNIQUE(SOURCE!L3#) also do (SOURCE!R3:R560>=ORGN!AA3)*(SOURCE!R3:R560<=ORGN!AB3)
 

Attachments

  • Untitled.png
    Untitled.png
    48.1 KB · Views: 7

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi,
Mr. Excel has a tool that allows you to post mini worksheets of your data/formulas. It is called xl2bb add in (Link below). Mr. Excel encourages anonymization of data (which you sort of did in your image by blocking that out). If you cannot use the add in, then please post your data as a table. Posting images, while somewhat helpful does not help the forum help you the best. The forum would have to create your scenario from scratch and that can lead to misinterpretations and errors.

Please help the forum help you.

Thanks in advance.
 
Upvote 0
Hi & welcome to MrExcel.
Maybe
Excel Formula:
=IF(C8=0,UNIQUE(FILTER(SOURCE!L3#,(SOURCE!R3:R560>=ORGN!AA3)*(SOURCE!R3:R560<=ORGN!AB3),"No Result")),SORT(FILTER(SOURCE!L3#,(SOURCE!M3:M560=CARD!C8)*(SOURCE!R3:R560>=ORGN!AA3)*(SOURCE!R3:R560<=ORGN!AB3),"NO RESULTS")))
 
Upvote 0
Solution
Hi & welcome to MrExcel.
Maybe
Excel Formula:
=IF(C8=0,UNIQUE(FILTER(SOURCE!L3#,(SOURCE!R3:R560>=ORGN!AA3)*(SOURCE!R3:R560<=ORGN!AB3),"No Result")),SORT(FILTER(SOURCE!L3#,(SOURCE!M3:M560=CARD!C8)*(SOURCE!R3:R560>=ORGN!AA3)*(SOURCE!R3:R560<=ORGN!AB3),"NO RESULTS")))
It works! :giggle:
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,387
Messages
6,124,633
Members
449,177
Latest member
Sousanna Aristiadou

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