FORMULA HELP

G

Guest

I have a column of cells with numbers like 5.10, 4.10, and whole integers
like 60,65,70,etc. the whole numbers are in inches and the fractions are in
feet and inches like 5feet and ten inches. If I want all the numbers to
appear in inches format in the next column ,what formula do I apply.That is
the values inches should remain as they are and the values in feet should be
converted into inches and displayed. The feet measurements are below 9 feet
in value.
any help in this regard will be appreciated very much.
thank you guys and have a nice day
steve
 
S

Sandy Mann

B1: =IF(INT(A1)=A1,A1,INT(A1)*12+MOD(A1,1)*100)

Wouldn't just =INT(A1)*12+MOD(A1,1)*100

work just as well?

--
HTH

Sandy
In Perth, the ancient capital of Scotland

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 
G

Guest

Wouldn't just =INT(A1)*12+MOD(A1,1)*100

I don't think so. According the the post, values without decimal places are
already stated in inches:
So you wouldn't want 10 converted to 12.
But you would want 10.4 converted to 124.

***********
Regards,
Ron

XL2002, WinXP
 
G

Guest

So you wouldn't want 10 converted to 12.
But you would want 10.4 converted to 124.

....That should have been

So you wouldn't want 10 converted to 120.
But you would want 10.4 converted to 124.

(is it Friday, yet?)
***********
Regards,
Ron

XL2002, WinXP
 
S

Sandy Mann

Yes you're quite right - I would be better at this game if I could read. <g>

Just for fun an alternative could be:

=INT(A1)*12^(MOD(A1,1)>0)+MOD(A1,1)*100

--
Regards,

Sandy
In Perth, the ancient capital of Scotland

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 
R

Ron Rosenfeld

Ron,

Your system clock seems to be off by a day. Please fix it.

Yes, someone pointed that out to me yesterday. I don't know how it got changed
but it seems to be OK now (since I corrected it last night). I'll have to keep
a closer eye on it.


--ron
 
R

Ron Rosenfeld

I have a column of cells with numbers like 5.10, 4.10, and whole integers
like 60,65,70,etc. the whole numbers are in inches and the fractions are in
feet and inches like 5feet and ten inches. If I want all the numbers to
appear in inches format in the next column ,what formula do I apply.That is
the values inches should remain as they are and the values in feet should be
converted into inches and displayed. The feet measurements are below 9 feet
in value.
any help in this regard will be appreciated very much.
thank you guys and have a nice day
steve

If you happen to have the Analysis ToolPak installed, you could use:

=IF(A1=INT(A1),A1,DOLLARDE(A1,12)*12)

otherwise

=IF(A1=INT(A1),A1,INT(A1)*12+MOD(A1,1)*100)


--ron
 

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