How to force Excel not to do arithmetics when reading data from cell?

  • Thread starter Thread starter Jack
  • Start date Start date
J

Jack

The data in cell is:
22:35

using .value property the value retrieved is: 0.732638888888889

I need to retrieve that data in original form.
How?
Jack
 
You can use the Text property.


Jack said:
The data in cell is:
22:35

using .value property the value retrieved is: 0.732638888888889

I need to retrieve that data in original form.
How?
Jack
 
Jack,

just for added info, what you should have gotten (and I got) with the Value property is
0.940972222222222 if the cell contains 22:35. This is a date-time value for 10:35 PM, or
22:35. The Text property gave you the date-time formatted version of the cell contents,
which is what you wanted.
 

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

Back
Top