+ Reply to Thread
Results 1 to 8 of 8

to show interger only

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    871

    to show interger only

    I have this formula but I only want to show intergetrs only, so if its 2.75, I want to show 2
    for example:
    2.7 to show 2
    1.3 to show 1
    5.5 to show 5

    here is the formula :
     =IFERROR(INDEX(P$2:P$39, MATCH($A3&"-"&$B3&"-"&$C3, INDEX($L$2:$L$1000&"-"&$M$2:$M$1000&"-"&$N$2:$N$1000, 0), 0))/D3, 0)
    please help, thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: to show interger only

    Assume your data is in column A. Then =Int(A1)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    871

    Re: to show interger only

    how do I put it in that formula? or whats the syntax?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: to show interger only

    Quote Originally Posted by chubbychub View Post
    how do I put it in that formula? or whats the syntax?
    Like this...

    =IFERROR(INT(INDEX(P$2:P$39, MATCH($A3&"-"&$B3&"-"&$C3,INDEX($L$2:$L$1000&"-"&$M$2:$M$1000&"-"&$N$2:$N$1000,0),0))/D3),0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    871

    Re: to show interger only

    whats the difference if I put it this way? or will it work this way?

    =(INT(IFERROR(INDEX(P$2:P$39, MATCH($A3&"-"&$B3&"-"&$C3, INDEX($L$2:$L$1000&"-"&$M$2:$M$1000&"-"&$N$2:$N$1000, 0), 0))/D3, 0))

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: to show interger only

    Quote Originally Posted by chubbychub View Post
    whats the difference if I put it this way?
    It should work either way.

  7. #7
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    871

    Re: to show interger only

    thank you all alansidman and tony!

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: to show interger only

    You're welcome!

+ 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. [SOLVED] Convert Interger number to column Alphabet
    By rizmomin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2014, 08:05 AM
  2. How do I insert an interger into a range?
    By ratdogexcel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-15-2013, 01:27 PM
  3. Replies: 0
    Last Post: 06-15-2011, 10:36 AM
  4. Solver and Interger Programming Problem
    By hpman247 in forum Excel General
    Replies: 5
    Last Post: 10-08-2010, 12:51 AM
  5. Declaring Interger's
    By The_Vulcan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2006, 04:09 AM
  6. Display Positive Interger
    By scottnoddin77 in forum Excel General
    Replies: 7
    Last Post: 12-11-2006, 03:18 PM
  7. Weird interger calculation
    By Troi-Xanh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2005, 01:06 PM

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