Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Dates change the next day.
I'm using the formula below to give a date in column 'A' when a 1, 2, 3, or 4
is put in column 'H'. =IF(OR(H1={1,2,3,4}),TODAY(),"") Is it possible to make it so the date does not change the next day when the the sheet is update/opened, with this or with a different formula. -- Thanks TimM |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Dates change the next day.
How about a worksheet_open event in the ThisWorkbook module?
Sub ifdate() MyArray = Array(1, 2, 3 , 4) For Each c In MyArray If Range("h1") = c Then Range("H3") = Date Next End Sub -- Don Guillett SalesAid Software "TimM" wrote in message ... I'm using the formula below to give a date in column 'A' when a 1, 2, 3, or 4 is put in column 'H'. =IF(OR(H1={1,2,3,4}),TODAY(),"") Is it possible to make it so the date does not change the next day when the the sheet is update/opened, with this or with a different formula. -- Thanks TimM |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Dates change the next day.
Is there a way to do it with a script.
-- Thanks TimM "Don Guillett" wrote: How about a worksheet_open event in the ThisWorkbook module? Sub ifdate() MyArray = Array(1, 2, 3 , 4) For Each c In MyArray If Range("h1") = c Then Range("H3") = Date Next End Sub -- Don Guillett SalesAid Software "TimM" wrote in message ... I'm using the formula below to give a date in column 'A' when a 1, 2, 3, or 4 is put in column 'H'. =IF(OR(H1={1,2,3,4}),TODAY(),"") Is it possible to make it so the date does not change the next day when the the sheet is update/opened, with this or with a different formula. -- Thanks TimM |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Dates change the next day.
Sorry something my fingers are faster than the brain. I meant is there a way
to do it with out a script, and just use a formula. -- Thanks TimM "Don Guillett" wrote: I don't understand the question. -- Don Guillett SalesAid Software "TimM" wrote in message ... Is there a way to do it with a script. -- Thanks TimM "Don Guillett" wrote: How about a worksheet_open event in the ThisWorkbook module? Sub ifdate() MyArray = Array(1, 2, 3 , 4) For Each c In MyArray If Range("h1") = c Then Range("H3") = Date Next End Sub -- Don Guillett SalesAid Software "TimM" wrote in message ... I'm using the formula below to give a date in column 'A' when a 1, 2, 3, or 4 is put in column 'H'. =IF(OR(H1={1,2,3,4}),TODAY(),"") Is it possible to make it so the date does not change the next day when the the sheet is update/opened, with this or with a different formula. -- Thanks TimM |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Dates change the next day.
I guess you could use two cells
if F8 =TODAY()-1 another cell =IF(TODAY()<F8,TODAY()) -- Don Guillett SalesAid Software "TimM" wrote in message ... Sorry something my fingers are faster than the brain. I meant is there a way to do it with out a script, and just use a formula. -- Thanks TimM "Don Guillett" wrote: I don't understand the question. -- Don Guillett SalesAid Software "TimM" wrote in message ... Is there a way to do it with a script. -- Thanks TimM "Don Guillett" wrote: How about a worksheet_open event in the ThisWorkbook module? Sub ifdate() MyArray = Array(1, 2, 3 , 4) For Each c In MyArray If Range("h1") = c Then Range("H3") = Date Next End Sub -- Don Guillett SalesAid Software "TimM" wrote in message ... I'm using the formula below to give a date in column 'A' when a 1, 2, 3, or 4 is put in column 'H'. =IF(OR(H1={1,2,3,4}),TODAY(),"") Is it possible to make it so the date does not change the next day when the the sheet is update/opened, with this or with a different formula. -- Thanks TimM |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Dates change the next day.
That won't work either because it is still using today() which will update
every time you calculate anything. -- Don Guillett SalesAid Software "Don Guillett" wrote in message ... I guess you could use two cells if F8 =TODAY()-1 another cell =IF(TODAY()<F8,TODAY()) -- Don Guillett SalesAid Software "TimM" wrote in message ... Sorry something my fingers are faster than the brain. I meant is there a way to do it with out a script, and just use a formula. -- Thanks TimM "Don Guillett" wrote: I don't understand the question. -- Don Guillett SalesAid Software "TimM" wrote in message ... Is there a way to do it with a script. -- Thanks TimM "Don Guillett" wrote: How about a worksheet_open event in the ThisWorkbook module? Sub ifdate() MyArray = Array(1, 2, 3 , 4) For Each c In MyArray If Range("h1") = c Then Range("H3") = Date Next End Sub -- Don Guillett SalesAid Software "TimM" wrote in message ... I'm using the formula below to give a date in column 'A' when a 1, 2, 3, or 4 is put in column 'H'. =IF(OR(H1={1,2,3,4}),TODAY(),"") Is it possible to make it so the date does not change the next day when the the sheet is update/opened, with this or with a different formula. -- Thanks TimM |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculating number of days between two dates that fall between two other dates | Excel Discussion (Misc queries) | |||
Automatic shading of cells based on dates??? | Excel Worksheet Functions | |||
Why does Excel Copy and Paste change dates from the original when. | Excel Discussion (Misc queries) | |||
how do i make a date change automatically if i change one before . | Excel Discussion (Misc queries) | |||
Formating Dates for production schedule | Excel Discussion (Misc queries) |