Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Celt
 
Posts: n/a
Default Formula to identify decimals??


Thanks in advance for any help you all provide!!

I am trying to come up with a function that will identify if a cell has
a decimal in it. My staff will be entering budgetary amounts into a
spreadsheet and I want the amounts to be in whole dollars. I want to
be able to use this function with conditional formatting to identify
the decimal (error) when they enter it.

does that make sense?


--
Celt
------------------------------------------------------------------------
Celt's Profile: http://www.excelforum.com/member.php...o&userid=19413
View this thread: http://www.excelforum.com/showthread...hreadid=513350

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Formula to identify decimals??

For your Conditional Formatting formula use this:

=MOD(A1,1)<0

You could also use Data Validation to prevent entry of these numbers to
begin with. This would allow you to customize an error message so the user
would know why the value is invalid. Using this formula:

=MOD(A1,1)=0

HTH,
Elkar

"Celt" wrote:


Thanks in advance for any help you all provide!!

I am trying to come up with a function that will identify if a cell has
a decimal in it. My staff will be entering budgetary amounts into a
spreadsheet and I want the amounts to be in whole dollars. I want to
be able to use this function with conditional formatting to identify
the decimal (error) when they enter it.

does that make sense?


--
Celt
------------------------------------------------------------------------
Celt's Profile: http://www.excelforum.com/member.php...o&userid=19413
View this thread: http://www.excelforum.com/showthread...hreadid=513350


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Formula to identify decimals??

Assuming you want to check column A, try this formula somewhere else:

=IF(A1=INT(A1),"no decimals","decimals")

and copy down. Of course, you could change the first message to ""
(i.e. blank) so that the other message stands out as you scroll down
the page. If you don't expect many of these you can apply a filter to
the column with the formula in to just display the cells with decimals.
With conditional formatting you could change the foreground or
background colour (or both) for further emphasis.

Hope this helps.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Celt
 
Posts: n/a
Default Formula to identify decimals??


Worked great!!! Thanks!


--
Celt
------------------------------------------------------------------------
Celt's Profile: http://www.excelforum.com/member.php...o&userid=19413
View this thread: http://www.excelforum.com/showthread...hreadid=513350

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Formula to identify decimals??

That was a few days ago, but thanks for the feedback.

Pete

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Identify month in a period and run a formula M Excel Discussion (Misc queries) 4 August 9th 05 12:39 PM
Formula to identify cell with different value in list carlossaltz Excel Worksheet Functions 8 June 12th 05 11:26 PM
Formula to identify what was NOT found Arla M Excel Worksheet Functions 1 February 10th 05 03:09 PM
How to identify an inserted picture within a formula Jeff Melvaine Excel Discussion (Misc queries) 9 January 30th 05 01:02 PM


All times are GMT +1. The time now is 10:31 PM.

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

About Us

"It's about Microsoft Excel"