Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Date in Excel Header
Is there a way to modify the date in an Excel Header? I would like to use an
IF function to subtract one or three days depending upon the current date. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Date in Excel Header
=if(a1<a2,a1-1,a1-3)
Assuming a1 & a2 contain date values, you can simply subtract the number of days from a date. -- http://HelpExcel.com "Wink20TCU" wrote: Is there a way to modify the date in an Excel Header? I would like to use an IF function to subtract one or three days depending upon the current date. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Date in Excel Header
Will this work in the Custom Header?
"galimi" wrote: =if(a1<a2,a1-1,a1-3) Assuming a1 & a2 contain date values, you can simply subtract the number of days from a date. -- http://HelpExcel.com "Wink20TCU" wrote: Is there a way to modify the date in an Excel Header? I would like to use an IF function to subtract one or three days depending upon the current date. |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Date in Excel Header
You would have to use VBA code to place a cell value into the header.
Here is a basic one. Sub CellInFooter() 'or Private Sub Workbook_BeforePrint(Cancel As Boolean) With ActiveSheet .PageSetup.CenterFooter = .Range("A1").Value End With End Sub Your date would be taken from the cell in which you have the formula that subtracts the 1 or 3 days. Gord Dibben MS Excel MVP On Wed, 27 Dec 2006 08:59:00 -0800, Wink20TCU wrote: Will this work in the Custom Header? "galimi" wrote: =if(a1<a2,a1-1,a1-3) Assuming a1 & a2 contain date values, you can simply subtract the number of days from a date. -- http://HelpExcel.com "Wink20TCU" wrote: Is there a way to modify the date in an Excel Header? I would like to use an IF function to subtract one or three days depending upon the current date. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Wrong date format in header | Excel Discussion (Misc queries) | |||
Excel date format trouble | Excel Discussion (Misc queries) | |||
Excel: I enter date and format for date, but shows as number | Excel Discussion (Misc queries) | |||
After concatenating data, how do I get Excel to recognise date? | Excel Discussion (Misc queries) | |||
Excel ignores boot-time regional settings when interpreting a date | Excel Discussion (Misc queries) |