ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculating a date (https://www.excelbanter.com/excel-worksheet-functions/233171-calculating-date.html)

Jafferi[_2_]

Calculating a date
 

Cell A1 ~ Jan 1, 2009
Cell B1 ~ [if Cell A is a date, multiple by 8]

Basically, I want the cell to acknowledged that a day is equal to 8 hours.
Can you help to figure out how can I do this?

Thank you in advance.

Jacob Skaria

Calculating a date
 
The below formula will return D1 to D5 if cell A1 contains a date...Refer
help on CELL function

=CELL("format",A1)

If this post helps click Yes
---------------
Jacob Skaria


"Jafferi" wrote:


Cell A1 ~ Jan 1, 2009
Cell B1 ~ [if Cell A is a date, multiple by 8]

Basically, I want the cell to acknowledged that a day is equal to 8 hours.
Can you help to figure out how can I do this?

Thank you in advance.


Jacob Skaria

Calculating a date
 
Jafferi

The CELL function check the format only. Even if you dont have data it still
return a value. If you want to check whether a date is present or not; you
can try the below which returns 8 if a date is present...Is that you are
looking for...

=IF(ISERROR(DAY(A1)),,8)

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

The below formula will return D1 to D5 if cell A1 contains a date...Refer
help on CELL function

=CELL("format",A1)

If this post helps click Yes
---------------
Jacob Skaria


"Jafferi" wrote:


Cell A1 ~ Jan 1, 2009
Cell B1 ~ [if Cell A is a date, multiple by 8]

Basically, I want the cell to acknowledged that a day is equal to 8 hours.
Can you help to figure out how can I do this?

Thank you in advance.



All times are GMT +1. The time now is 05:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com