#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 191
Default no decimals

I have two cells that add up to a third. I need to validate or do something,
which limits the first two cells' inputs, to where the sum of the two does
not equal a decimal. The order in which the two cells will be input is not
certain, and so the "validation" must be on both input cells.

So what I need is what to apply, and to what cells. I'd like to avoid VB if
possible, so am hoping there's a way to do this with validation.

Thx.
--
Boris
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default no decimals

That's going to be tuff to do because of the input order being random. I
assume an entry of 10.5 in one cell and 10.5 in the other is OK since the
total is an interger? The "easy" way would be to use a formula in the sum
cell that pops a message if the sum is not a whole number and tells the user
to "adjust" the inputs:

Assume the input cells are A1 and A2.

=IF(COUNT(A1:A2)<2,"",IF(MOD(SUM(A1:A2),1)0,"Inva lid Sum, Re-enter
data",SUM(A1:A2)))

Biff

"BorisS" wrote in message
...
I have two cells that add up to a third. I need to validate or do
something,
which limits the first two cells' inputs, to where the sum of the two does
not equal a decimal. The order in which the two cells will be input is
not
certain, and so the "validation" must be on both input cells.

So what I need is what to apply, and to what cells. I'd like to avoid VB
if
possible, so am hoping there's a way to do this with validation.

Thx.
--
Boris



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
How do I align decimals in Excel when not all numbers have % sym. sjgiles Excel Discussion (Misc queries) 2 September 7th 06 10:36 PM
Displaying a number with different decimals depending on a condition JGarces Excel Worksheet Functions 1 August 16th 06 05:37 PM
Desire Sum to add visible figures rather than underlying decimals Jerry Excel Discussion (Misc queries) 3 July 22nd 06 03:31 AM
Comma format button decimals Steve Ruiter Excel Discussion (Misc queries) 0 November 30th 05 06:51 PM
How do I calculate without decimals in excel? upstate Excel Worksheet Functions 1 August 11th 05 09:26 PM


All times are GMT +1. The time now is 01:24 AM.

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"