Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jez
 
Posts: n/a
Default HOW DO I SELECT ROUND NUMBERS ONLY IN EXCEL SPREADSHEET

I want to write a formula where if a cell contains a whole number a certain
value will be returned (true) but if its not a whole number (false) another
value will be returned. Thanks for any help
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi

One way
=IF(INT(A1)=A1,1,2)
Replace 1 and 2 with your values or cell references.

Regards

Roger Govier


Jez wrote:
I want to write a formula where if a cell contains a whole number a certain
value will be returned (true) but if its not a whole number (false) another
value will be returned. Thanks for any help

  #3   Report Post  
Jez
 
Posts: n/a
Default

Hi, Thanks very much for that - fantastic

"Roger Govier" wrote:

Hi

One way
=IF(INT(A1)=A1,1,2)
Replace 1 and 2 with your values or cell references.

Regards

Roger Govier


Jez wrote:
I want to write a formula where if a cell contains a whole number a certain
value will be returned (true) but if its not a whole number (false) another
value will be returned. Thanks for any help


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does a spreadsheet sent in Excel round numbers when mailed? artisan New Users to Excel 1 August 17th 05 11:42 AM
Cells User Select Locked after upgrade to Excel 2002 TWilson Excel Discussion (Misc queries) 1 August 5th 05 12:22 PM
How to Round Whole Numbers? blank Excel Discussion (Misc queries) 3 May 18th 05 09:32 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Mouse continues to select after clicking on a cell in excel. Fletch Excel Discussion (Misc queries) 4 February 22nd 05 02:27 AM


All times are GMT +1. The time now is 02:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"