If formula with Date Range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello guys, this is what I need to do, if the date range of cell A1 is
anywhere between 10/30/04 thru 11/05/04, then I need it to say week nbr 40.
Is this possible with a if formula without having to type up 10/30/04, then
10/31/04 all the way till 11/05?
 
Hi Javy

try

=IF(AND(A1>DATEVALUE("10/30/04"),A1<DATEVALUE("11/05/04")),"week nbr 40","")

Cheers
JulieD
 
Worked like a charm, thanks a million.

JulieD said:
Hi Javy

try

=IF(AND(A1>DATEVALUE("10/30/04"),A1<DATEVALUE("11/05/04")),"week nbr 40","")

Cheers
JulieD
 
If you need to have Excel determine the week number rather than doing it
manually, look at the WEEKNUM function in Help. In particular, do that if the
function returns the #NAME! error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top