+ Reply to Thread
Results 1 to 3 of 3

Converting a number to an integer using int

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Converting a number to an integer using int

    Hey there everyone,

    Is there any fast solution to converting a number within a cell to an int?

    I know you can quickly convert a number in a cell by clicking "int" on the formula ribbon and selecting another cell that has the desired data to change.

    But I just need to change it in the one column. I am having a data type error with my SQL when trying to import the data into an already existing database.

    Thanks!!!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,603

    Re: Converting a number to an integer using int

    You can write =INT(A1) (as you said)
    Then copy that column and paste values into A column (for example).
    Then delete additional column.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Converting a number to an integer using int

    You can do it in the column without any formulas.

    1.Select range of cell.
    2. Press Ctrl+F to open Find tool
    3. In Find what type in: .? or .* (if there are more than 1 dec) then click Replace button and Replace All
    Last edited by AlKey; 05-14-2014 at 06:35 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Converting a Named Range from a Formula to an Integer Array
    By mattflow in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2011, 05:59 PM
  2. Count the number of occurrences of an integer withing a larger integer
    By nnktran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2010, 01:04 PM
  3. converting from a string to integer in an array
    By jerseyguy1996 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2009, 05:40 PM
  4. Converting variant return type from evaluate to integer
    By PJN4 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-07-2009, 12:16 PM
  5. [SOLVED] Number formate of Integer
    By Alf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2006, 06:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1