Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
I'm using a formula to copy a time from one cell to another
across sheets. The format of the time is h:mm AM/PM. However, when the formula references an empty cell, it puts in a default value of 12:00 AM and I need it to remain blank, (just as the referenced cell) It's such a simple copy formula. ie: =sheet1!A1 I can't see anything causing this. Has anyone any ideas? thanks in advance, Howard. -- Howard Coakley e-mail... howard<dot}coakleyatcoakley<dot].codotuk Skype ID: howie10 (get skype from www.skype.com) |
#2
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
=IF(Sheet1!A1="","",Sheet1!A1)
you refer to another cell a (blank cell equals zero) thus the 12:00 AM which is the same as zero time, if you format the cell as General you'll see 0 -- Regards, Peo Sjoblom "Howie" wrote in message ... I'm using a formula to copy a time from one cell to another across sheets. The format of the time is h:mm AM/PM. However, when the formula references an empty cell, it puts in a default value of 12:00 AM and I need it to remain blank, (just as the referenced cell) It's such a simple copy formula. ie: =sheet1!A1 I can't see anything causing this. Has anyone any ideas? thanks in advance, Howard. -- Howard Coakley e-mail... howard<dot}coakleyatcoakley<dot].codotuk Skype ID: howie10 (get skype from www.skype.com) |
#3
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
one way
<tools<options<viewdeselect " zero values" in window options -- Greetings from New Zealand Bill K "Howie" wrote in message ... I'm using a formula to copy a time from one cell to another across sheets. The format of the time is h:mm AM/PM. However, when the formula references an empty cell, it puts in a default value of 12:00 AM and I need it to remain blank, (just as the referenced cell) It's such a simple copy formula. ie: =sheet1!A1 I can't see anything causing this. Has anyone any ideas? thanks in advance, Howard. -- Howard Coakley e-mail... howard<dot}coakleyatcoakley<dot].codotuk Skype ID: howie10 (get skype from www.skype.com) |
#4
|
|||
|
|||
Formula is entering a default time when it comes across an empty c
In Excel, if the formula refers to cell A1 and A1 is blank, the result is zero.
Try one of these: =IF(ISBLANK(Sheet1!A1),"",Sheet1!A1) or =IF(ISNUMBER(Sheet1!A1),Sheet1!A1,"") or =IF(Sheet1!A10,Sheet1!A1,"") Do any of those help? €¢€¢€¢€¢€¢€¢€¢€¢€¢€¢ Regards, Ron "Howie" wrote: I'm using a formula to copy a time from one cell to another across sheets. The format of the time is h:mm AM/PM. However, when the formula references an empty cell, it puts in a default value of 12:00 AM and I need it to remain blank, (just as the referenced cell) It's such a simple copy formula. ie: =sheet1!A1 I can't see anything causing this. Has anyone any ideas? thanks in advance, Howard. -- Howard Coakley e-mail... howard<dot}coakleyatcoakley<dot].codotuk Skype ID: howie10 (get skype from www.skype.com) |
#5
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
On Wed, 9 Nov 2005 12:45:23 -0800, "Peo Sjoblom"
wrote: |=IF(Sheet1!A1="","",Sheet1!A1) | | you refer to another cell a (blank cell equals zero) thus the |12:00 AM which is the same as zero time, if you format the cell as General |you'll see 0 Ahh. I see. Thank you for that. It's a shame to have to enter an IF statement as I have many formulas to enter-in manually. A couple of clicks per cell would have been much easier! However, it solves it, so thank you! H. |
#6
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
On Thu, 10 Nov 2005 09:48:49 +1300, "Bill Kuunders"
wrote: |one way | |<tools<options<viewdeselect " zero values" in window options Ahh, yes. This is much simpler. However, if I send my sheet to soomebody, will it just re-insert the 0 value if their version of excel is not set up as deselecting zero values? If so, I have now changed the cell format to custom: [$-409]h:mm AM/PM;@ But I still get the zero value entered by the formula. (Only this time it shows as 12:00 AM of course). I don't suppose there is a way to alter the above custom cell format line to ignore zeros'? |
#7
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
You could enter a macro in the "this workbook" "before open"
Private Sub Workbook_Open() ActiveWindow.DisplayZeros = False End Sub and in the "before close" ActiveWindow.DisplayZeros = True -- Greetings from New Zealand Bill K "Howie" wrote in message ... On Thu, 10 Nov 2005 09:48:49 +1300, "Bill Kuunders" wrote: |one way | |<tools<options<viewdeselect " zero values" in window options Ahh, yes. This is much simpler. However, if I send my sheet to soomebody, will it just re-insert the 0 value if their version of excel is not set up as deselecting zero values? If so, I have now changed the cell format to custom: [$-409]h:mm AM/PM;@ But I still get the zero value entered by the formula. (Only this time it shows as 12:00 AM of course). I don't suppose there is a way to alter the above custom cell format line to ignore zeros'? |
#8
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
You could also give the cells a conditional format.
If is equal to 0 font is white. -- Greetings from New Zealand Bill K "Howie" wrote in message ... On Thu, 10 Nov 2005 09:48:49 +1300, "Bill Kuunders" wrote: |one way | |<tools<options<viewdeselect " zero values" in window options Ahh, yes. This is much simpler. However, if I send my sheet to soomebody, will it just re-insert the 0 value if their version of excel is not set up as deselecting zero values? If so, I have now changed the cell format to custom: [$-409]h:mm AM/PM;@ But I still get the zero value entered by the formula. (Only this time it shows as 12:00 AM of course). I don't suppose there is a way to alter the above custom cell format line to ignore zeros'? |
#9
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
On Sun, 13 Nov 2005 20:39:31 +1300, "Bill Kuunders"
wrote: |You could also give the cells a conditional format. | |If is equal to 0 |font is white. Thanks for those hints bill. f I use the conditional format option, can it be an additional condition to the one I already have? (see my posting, above) Thanks again, H. -- Howard Coakley e-mail... howard<dot}coakleyatcoakley<dot].codotuk Skype ID: howie10 (get skype from www.skype.com) |
#10
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
Yep,
It worked on this side of the world. -- Greetings from New Zealand Bill K "Howie" wrote in message ... On Sun, 13 Nov 2005 20:39:31 +1300, "Bill Kuunders" wrote: |You could also give the cells a conditional format. | |If is equal to 0 |font is white. Thanks for those hints bill. f I use the conditional format option, can it be an additional condition to the one I already have? (see my posting, above) Thanks again, H. -- Howard Coakley e-mail... howard<dot}coakleyatcoakley<dot].codotuk Skype ID: howie10 (get skype from www.skype.com) |
#11
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Formula is entering a default time when it comes across an empty cell..
On Tue, 15 Nov 2005 08:18:16 +1300, "Bill Kuunders"
wrote: |Yep, |It worked on this side of the world. And here. Excellent. thanks again everyone. H. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Formula for a time card | Excel Worksheet Functions | |||
how prevent formula in cell from deleting when deleting value???? | New Users to Excel | |||
How do I make a cell appear empty when the formula = 0? | Excel Discussion (Misc queries) | |||
looking for a formula | Excel Worksheet Functions | |||
How can I write an if-then formula for 0 or less than 0 in cell t. | Excel Worksheet Functions |