# Using a named range in an IFS formula's criteria

#### nigelandrewfoster

##### Well-known Member
Hi,

I have an IFS formula thus:

=COUNTIFS(Orders!\$V:\$V,\$K\$4,Orders!\$H:\$H,I7,Orders!\$G:\$G,"unfulfilled",Orders!\$E:\$E,"<43566")

where 43566 is the serial number of a cut-off date. This date is however regularly changing.

I have created a named range, Order_Cuttoff_Date and put the date in that.

What is the correct way to amend the above formula, please? Because

=COUNTIFS(Orders!\$V:\$V,\$K\$4,Orders!\$H:\$H,I7,Orders!\$G:\$G,"unfulfilled",Orders!\$E:\$E,"<Order_Cuttoff_Date")

doesn't work.

I have searched Google but not come up with an answer yet so wondered if someone could enlighten me?

Thanks so much

Nigel

Last edited by a moderator:

#### RoryA

##### MrExcel MVP, Moderator
You need to use:

"<" & Order_Cuttoff_Date

at the end.

#### nigelandrewfoster

##### Well-known Member
Thank you again for your speed reply, Rory. Don't know what I'd do without you!

#### tyija1995

##### Well-known Member
Instead of "<43566" (assuming this serial number is the named range of "Order_Cuttoff_Date" try replace it with:
"<"&Order_Cuttoff_Date
So your first formula becomes:
=COUNTIFS(Orders!\$V:\$V,\$K\$4,Orders!\$H:\$H,I7,Orders!\$G:\$G,"unfulfilled",Orders!\$E:\$E,"<"&Order_Cuttoff_Date)

#### nigelandrewfoster

##### Well-known Member
Thanks tyija - I think that was a dead-heat. Appreciate your time. Love the signature

Threads
1,081,990
Messages
5,362,584
Members
400,683
Latest member
LogChief

### This Week's Hot Topics

• populate from drop list with multiple tables
Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
• Find list of words from sheet2 in sheet1 before a comma and extract text vba
Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
• Dynamic Formula entry - VBA code sought
Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
• Listbox Header
Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
• Complex Heat Map using conditional formatting
Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
• Conditional formatting
Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...