Calculating a date

J

Jafferi

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.
 
J

Jacob Skaria

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
 
J

Jacob Skaria

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 said:
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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top