Solved

Show all characters before period

Posted on 2010-08-16
5
467 Views
Last Modified: 2012-05-10
How do I show all the characters before a period?

Exp: 1.19
Output: 1

Exp2: 19.8
Output: 19

Thanks.
0
Comment
Question by:IntercareSupport
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:MWGainesJR
ID: 33447888
set the number of decimal places in the number cell formatting to 0.
0
 

Author Comment

by:IntercareSupport
ID: 33447911
I need a formula because I need the literal output of the characters before the period, not a change of view.
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 33447915
MWGaines suggestion works by altering the display but the underlying value of the cell won't change. If you want to extract the value into another cell try
=INT(A1)
where your data is in A1
regards, barry
0
 

Author Closing Comment

by:IntercareSupport
ID: 33447931
Perfect, thanks!
0
 
LVL 13

Expert Comment

by:MWGainesJR
ID: 33447937
=LEFT(A1,FIND(".",A1,1)-1)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question