Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JR
 
Posts: n/a
Default Help with Date formula

Good Morning Excel Masters,

I would like to ask for help.

I have a report where I have to show only Monday, Wednesday and Friday
dates. I need to go backwards starting with todays date. So for example in
A2 I will put =today().

However in A3 I need the formula to show the date for the previous Wednesday
(3/22). Now writing this is generally easy, however when Monday (3/27) comes
around I will need A3 to show the date for Friday (3/24), and then A4 will
need to show Wednesdays date (3/22) etc€¦

Your help is appreciated.

JR

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CarlosAntenna
 
Posts: n/a
Default Help with Date formula

Put this formula in A3 and copy down the column.

=IF(WEEKDAY(A2)=2,A2-3,A2-2)

--
Carlos

"JR" wrote in message
...
Good Morning Excel Masters,

I would like to ask for help.

I have a report where I have to show only Monday, Wednesday and Friday
dates. I need to go backwards starting with today's date. So for example

in
A2 I will put =today().

However in A3 I need the formula to show the date for the previous

Wednesday
(3/22). Now writing this is generally easy, however when Monday (3/27)

comes
around I will need A3 to show the date for Friday (3/24), and then A4 will
need to show Wednesday's date (3/22) etc.

Your help is appreciated.

JR



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JR
 
Posts: n/a
Default Help with Date formula

perfect

"CarlosAntenna" wrote:

Put this formula in A3 and copy down the column.

=IF(WEEKDAY(A2)=2,A2-3,A2-2)

--
Carlos

"JR" wrote in message
...
Good Morning Excel Masters,

I would like to ask for help.

I have a report where I have to show only Monday, Wednesday and Friday
dates. I need to go backwards starting with today's date. So for example

in
A2 I will put =today().

However in A3 I need the formula to show the date for the previous

Wednesday
(3/22). Now writing this is generally easy, however when Monday (3/27)

comes
around I will need A3 to show the date for Friday (3/24), and then A4 will
need to show Wednesday's date (3/22) etc.

Your help is appreciated.

JR




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CarlosAntenna
 
Posts: n/a
Default Help with Date formula

Of course that only works if the date in A2 is a M, W, or F.

If A2 can be any date, you would need something like this:
=IF(WEEKDAY(A2)=2,A2-3,IF(WEEKDAY(A2)=1,A2-2,IF(MOD(WEEKDAY(A2),2)<0,A2-1,A
2-2)))

You may need to consider this because the today() function is volatile.
--
Carlos

"JR" wrote in message
...
perfect

"CarlosAntenna" wrote:

Put this formula in A3 and copy down the column.

=IF(WEEKDAY(A2)=2,A2-3,A2-2)

--
Carlos

"JR" wrote in message
...
Good Morning Excel Masters,

I would like to ask for help.

I have a report where I have to show only Monday, Wednesday and Friday
dates. I need to go backwards starting with today's date. So for

example
in
A2 I will put =today().

However in A3 I need the formula to show the date for the previous

Wednesday
(3/22). Now writing this is generally easy, however when Monday

(3/27)
comes
around I will need A3 to show the date for Friday (3/24), and then A4

will
need to show Wednesday's date (3/22) etc.

Your help is appreciated.

JR






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dana DeLouis
 
Posts: n/a
Default Help with Date formula

With a valid date in A2, another option for A3 might be:

=A2-MOD(128,WEEKDAY(A2)+3)

and copy down.
--
HTH. :)
Dana DeLouis
Windows XP, Office 2003


"JR" wrote in message
...
Good Morning Excel Masters,

I would like to ask for help.

I have a report where I have to show only Monday, Wednesday and Friday
dates. I need to go backwards starting with today's date. So for example
in
A2 I will put =today().

However in A3 I need the formula to show the date for the previous
Wednesday
(3/22). Now writing this is generally easy, however when Monday (3/27)
comes
around I will need A3 to show the date for Friday (3/24), and then A4 will
need to show Wednesday's date (3/22) etc.

Your help is appreciated.

JR





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dana DeLouis
 
Posts: n/a
Default Help with Date formula

If A2 can be any date, ...
=IF(WEEKDAY(A2)=2,A2-3,IF(WEEKDAY(A2)=1,A2-2,IF(MOD(WEEKDAY(A2),2)<0,A2-1,A
2-2)))


Just another option with any date in A1, then copied down.
=A1-MOD(86349937, 6*WEEKDAY(A1) - 1)

--
HTH. :)
Dana DeLouis
Windows XP, Office 2003


"CarlosAntenna" wrote in message
...
Of course that only works if the date in A2 is a M, W, or F.

If A2 can be any date, you would need something like this:
=IF(WEEKDAY(A2)=2,A2-3,IF(WEEKDAY(A2)=1,A2-2,IF(MOD(WEEKDAY(A2),2)<0,A2-1,A
2-2)))

You may need to consider this because the today() function is volatile.
--
Carlos

"JR" wrote in message
...
perfect

"CarlosAntenna" wrote:

Put this formula in A3 and copy down the column.

=IF(WEEKDAY(A2)=2,A2-3,A2-2)

--
Carlos

"JR" wrote in message
...
Good Morning Excel Masters,

I would like to ask for help.

I have a report where I have to show only Monday, Wednesday and
Friday
dates. I need to go backwards starting with today's date. So for

example
in
A2 I will put =today().

However in A3 I need the formula to show the date for the previous
Wednesday
(3/22). Now writing this is generally easy, however when Monday

(3/27)
comes
around I will need A3 to show the date for Friday (3/24), and then A4

will
need to show Wednesday's date (3/22) etc.

Your help is appreciated.

JR



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Trending Formula Results by Date sony654 Excel Worksheet Functions 0 January 2nd 06 02:33 AM
Year-to-date year to date formula Philm Excel Worksheet Functions 1 October 7th 05 02:50 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


All times are GMT +1. The time now is 02:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"