TODAY()

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am looking to use a formula to list orders placed at certain times

I am trying the following

=IF(B9="","","Orders Placed 1 to 7 Days > "&COUNT(E23:E122,TODAY()-7))

But when I use this style of formula whatever the - I use after TODAY it shows exactly the same result of 26?

Not sure where I am going wrong

All of E23:E122 has formula in them but ot all will show a date

Many thanks for any help
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Try changing the count to countif

&COUNTIF(E23:E122,TODAY()-7))
 
Upvote 0
My interpretation of your requirement is

=IF(B9="","","Orders Placed 1 to 7 Days > "&COUNTIF(E23:E122,">="&TODAY()-7))
 
Upvote 0
Hi Peter,

That's great many thanks

Could this be changed to a range, ie 1-7 days, 8-14 days, over 14 days

Thanks again
 
Upvote 0
Could this be changed to a range, ie 1-7 days, 8-14 days, over 14 days
You may need to tweak the numbers and the >= versus > symbols to get the exact count you need but these should get you headed in the right direction.

=IF(B9="","","Orders Placed 8 to 14 Days > "&COUNTIFS(E23:E122,">="&TODAY()-14,E23:E122,"<"&TODAY()-7))

=IF(B9="","","Orders Placed over 14 Days > "&COUNTIF(E23:E122,"<"&TODAY()-14))
 
Upvote 0

Forum statistics

Threads
1,215,062
Messages
6,122,925
Members
449,094
Latest member
teemeren

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