Using a named range in an IFS formula's criteria

nigelandrewfoster

Well-known Member
Joined
May 27, 2009
Messages
747
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:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You need to use:

"<" & Order_Cuttoff_Date

at the end.
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,956
Latest member
JPav

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