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: 22

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

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