Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Nested Formula Giving Incorrect Answer

Hi,

I am looking at an issue one of our staff has. He is using the below formula
across a set of data

=IF(INT(MOD(E13,C14))1,INT(E13/C14),0)

This returns 0, if E13 is not disvisible by C14, or the closest integer
(rounded down) if it is. The formula works perfectly for most of the data,
but when E13 is 50,000 it throws a wobbler and returns 0, it doesn't matter
what the value of C14 is. After doing a bit of testing, and typing figures
into the formula manually, I have figured out that if a number between 50,000
and 50,002 is entered, the formula returns 0, above or below this range it is
OK.

The user has MS Office 2003, SP3, we have also tested this on Office 2007,
SP1 and we are geting the same result.

I haven't a clue why this is happening, na dwhy between that range of numbers.

Anyone got any ideas?

Thanks in advance,

Will.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Nested Formula Giving Incorrect Answer

Doesn't behave that way for me (with Excel 2003 SP3). I have 49 in C14,
50001 in E13, and it returns 1020.

What values are you using?
--
David Biddulph

"William McCann" wrote in message
...
Hi,

I am looking at an issue one of our staff has. He is using the below
formula
across a set of data

=IF(INT(MOD(E13,C14))1,INT(E13/C14),0)

This returns 0, if E13 is not disvisible by C14, or the closest integer
(rounded down) if it is. The formula works perfectly for most of the data,
but when E13 is 50,000 it throws a wobbler and returns 0, it doesn't
matter
what the value of C14 is. After doing a bit of testing, and typing figures
into the formula manually, I have figured out that if a number between
50,000
and 50,002 is entered, the formula returns 0, above or below this range it
is
OK.

The user has MS Office 2003, SP3, we have also tested this on Office 2007,
SP1 and we are geting the same result.

I haven't a clue why this is happening, na dwhy between that range of
numbers.

Anyone got any ideas?

Thanks in advance,

Will.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Nested Formula Giving Incorrect Answer

I note also that your description is very strange.

You said:
"This returns 0, if E13 is not disvisible by C14, or the closest integer
(rounded down) if it is."
but your formula doesn't seem to be trying to do anything like that.
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Doesn't behave that way for me (with Excel 2003 SP3). I have 49 in C14,
50001 in E13, and it returns 1020.

What values are you using?
--
David Biddulph

"William McCann" wrote in
message ...
Hi,

I am looking at an issue one of our staff has. He is using the below
formula
across a set of data

=IF(INT(MOD(E13,C14))1,INT(E13/C14),0)

This returns 0, if E13 is not disvisible by C14, or the closest integer
(rounded down) if it is. The formula works perfectly for most of the
data,
but when E13 is 50,000 it throws a wobbler and returns 0, it doesn't
matter
what the value of C14 is. After doing a bit of testing, and typing
figures
into the formula manually, I have figured out that if a number between
50,000
and 50,002 is entered, the formula returns 0, above or below this range
it is
OK.

The user has MS Office 2003, SP3, we have also tested this on Office
2007,
SP1 and we are geting the same result.

I haven't a clue why this is happening, na dwhy between that range of
numbers.

Anyone got any ideas?

Thanks in advance,

Will.





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Nested Formula Giving Incorrect Answer

The formula which does what you described is
=IF(MOD(E13,C14)=0,INT(E13/C14),0)

INT function doesn't round but truncate!

Regards,
Stefi

€˛William McCann€¯ ezt Ć*rta:

Hi,

I am looking at an issue one of our staff has. He is using the below formula
across a set of data

=IF(INT(MOD(E13,C14))1,INT(E13/C14),0)

This returns 0, if E13 is not disvisible by C14, or the closest integer
(rounded down) if it is. The formula works perfectly for most of the data,
but when E13 is 50,000 it throws a wobbler and returns 0, it doesn't matter
what the value of C14 is. After doing a bit of testing, and typing figures
into the formula manually, I have figured out that if a number between 50,000
and 50,002 is entered, the formula returns 0, above or below this range it is
OK.

The user has MS Office 2003, SP3, we have also tested this on Office 2007,
SP1 and we are geting the same result.

I haven't a clue why this is happening, na dwhy between that range of numbers.

Anyone got any ideas?

Thanks in advance,

Will.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Nested Formula Giving Incorrect Answer

On Tue, 1 Dec 2009 04:37:01 -0800, William McCann
wrote:

Hi,

I am looking at an issue one of our staff has. He is using the below formula
across a set of data

=IF(INT(MOD(E13,C14))1,INT(E13/C14),0)

This returns 0, if E13 is not disvisible by C14, or the closest integer
(rounded down) if it is. The formula works perfectly for most of the data,
but when E13 is 50,000 it throws a wobbler and returns 0, it doesn't matter
what the value of C14 is. After doing a bit of testing, and typing figures
into the formula manually, I have figured out that if a number between 50,000
and 50,002 is entered, the formula returns 0, above or below this range it is
OK.

The user has MS Office 2003, SP3, we have also tested this on Office 2007,
SP1 and we are geting the same result.

I haven't a clue why this is happening, na dwhy between that range of numbers.

Anyone got any ideas?

Thanks in advance,

Will.


How about giving some real numbers for both cells, what you expect, and what is
being returned.

For example, on my system (2007 SP2), it is NOT the case that for values
50000-50002 that the contents of C14 is irrelevant.

For example, E13 50,001 C14 140 Your formula -- 357
--ron


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
Pmt formula returns incorrect answer Heinz Excel Discussion (Misc queries) 2 June 6th 08 01:10 AM
Excel 2007- formula =SUM(850*77.1) returns incorrect answer = 1000 Diane Excel Discussion (Misc queries) 5 October 22nd 07 08:43 AM
SUMPRODUCT is giving incorrect number Richard Excel Discussion (Misc queries) 2 June 22nd 07 11:17 AM
Formula incorrect answer Wanna Learn Excel Discussion (Misc queries) 3 February 19th 07 04:29 PM
Formula giving incorrect answer... Jambruins Excel Discussion (Misc queries) 3 February 25th 05 06:59 PM


All times are GMT +1. The time now is 04:23 AM.

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"