Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ben Ben is offline
external usenet poster
 
Posts: 509
Default If Statement Help

I have the following if statement in one of the cells:

IF(H465=$B$6,(((($B$4)/(($D$2^$D$2)*($F$2^$F$2)))^(1/($D$2+$F$2)))),(($B$3)*((H465-$B$6)/(H465+$B$1)))))

Now it is not giving me the answer that I calculate so to troubleshoot I
started by inserting the value that is in cell H465 and it did give me the
right answer. So my question is why if I change the value of H465 to a
constant in the comparison operator does the formula work as planned but if I
leave the cell reference (H465) then it does not calculate the right value.

One more piece of information is that there is a formula in the H465 to
calculate its value. Maybe that has something to do with it? Please help!

Thanks,
Ben
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default If Statement Help

On Thu, 8 Feb 2007 14:06:01 -0800, Ben wrote:

I have the following if statement in one of the cells:

IF(H465=$B$6,(((($B$4)/(($D$2^$D$2)*($F$2^$F$2)))^(1/($D$2+$F$2)))),(($B$3)*((H465-$B$6)/(H465+$B$1)))))

Now it is not giving me the answer that I calculate so to troubleshoot I
started by inserting the value that is in cell H465 and it did give me the
right answer. So my question is why if I change the value of H465 to a
constant in the comparison operator does the formula work as planned but if I
leave the cell reference (H465) then it does not calculate the right value.

One more piece of information is that there is a formula in the H465 to
calculate its value. Maybe that has something to do with it? Please help!

Thanks,
Ben


What is clear is that what you type into the formula to replace H465 is NOT the
same as the actual contents of H465 (or the result of that formula).

Probably either a TEXT versus NUMBER issue; or possibly a rounding versus
formatting issue.

What is the formula in H465?
What are the precedents of that formula?
What is the contents of B6?




--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default If Statement Help

Hi BEn,

Sir Ron, Ben can also try to use a very helpful tool in excel to derive
where the error maybe coming from the content of his formula...

toolsformula auditingEVALUATE FORMULA...

regards...
--
*****
birds of the same feather flock together..



"Ron Rosenfeld" wrote:

On Thu, 8 Feb 2007 14:06:01 -0800, Ben wrote:

I have the following if statement in one of the cells:

IF(H465=$B$6,(((($B$4)/(($D$2^$D$2)*($F$2^$F$2)))^(1/($D$2+$F$2)))),(($B$3)*((H465-$B$6)/(H465+$B$1)))))

Now it is not giving me the answer that I calculate so to troubleshoot I
started by inserting the value that is in cell H465 and it did give me the
right answer. So my question is why if I change the value of H465 to a
constant in the comparison operator does the formula work as planned but if I
leave the cell reference (H465) then it does not calculate the right value.

One more piece of information is that there is a formula in the H465 to
calculate its value. Maybe that has something to do with it? Please help!

Thanks,
Ben


What is clear is that what you type into the formula to replace H465 is NOT the
same as the actual contents of H465 (or the result of that formula).

Probably either a TEXT versus NUMBER issue; or possibly a rounding versus
formatting issue.

What is the formula in H465?
What are the precedents of that formula?
What is the contents of B6?




--ron

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ben Ben is offline
external usenet poster
 
Posts: 509
Default If Statement Help

When I used the evaluation tool I noticed something was going wrong with the
way the H* values are incrementing. I do not know how to fix it either. The
H* function is the value of the previous H row + 0.1 (Hn=H(n-1)+.1 or ex.
H50=H49+0.1) But one thing I noticed is that every 300 or so repeats of that
(H300) it adds an additional 0.0000000000001 to the previous number (if
H299=20.3 then H300=20.3000000000001) I do not know why it is doing this.

"driller" wrote:

Hi BEn,

Sir Ron, Ben can also try to use a very helpful tool in excel to derive
where the error maybe coming from the content of his formula...

toolsformula auditingEVALUATE FORMULA...

regards...
--
*****
birds of the same feather flock together..



"Ron Rosenfeld" wrote:

On Thu, 8 Feb 2007 14:06:01 -0800, Ben wrote:

I have the following if statement in one of the cells:

IF(H465=$B$6,(((($B$4)/(($D$2^$D$2)*($F$2^$F$2)))^(1/($D$2+$F$2)))),(($B$3)*((H465-$B$6)/(H465+$B$1)))))

Now it is not giving me the answer that I calculate so to troubleshoot I
started by inserting the value that is in cell H465 and it did give me the
right answer. So my question is why if I change the value of H465 to a
constant in the comparison operator does the formula work as planned but if I
leave the cell reference (H465) then it does not calculate the right value.

One more piece of information is that there is a formula in the H465 to
calculate its value. Maybe that has something to do with it? Please help!

Thanks,
Ben


What is clear is that what you type into the formula to replace H465 is NOT the
same as the actual contents of H465 (or the result of that formula).

Probably either a TEXT versus NUMBER issue; or possibly a rounding versus
formatting issue.

What is the formula in H465?
What are the precedents of that formula?
What is the contents of B6?




--ron

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default If Statement Help

Ben,
maybe u can try some extra function to round these decimals, if it is not so
relevant in the result you need....
--
*****
birds of the same feather flock together..



"Ben" wrote:

When I used the evaluation tool I noticed something was going wrong with the
way the H* values are incrementing. I do not know how to fix it either. The
H* function is the value of the previous H row + 0.1 (Hn=H(n-1)+.1 or ex.
H50=H49+0.1) But one thing I noticed is that every 300 or so repeats of that
(H300) it adds an additional 0.0000000000001 to the previous number (if
H299=20.3 then H300=20.3000000000001) I do not know why it is doing this.

"driller" wrote:

Hi BEn,

Sir Ron, Ben can also try to use a very helpful tool in excel to derive
where the error maybe coming from the content of his formula...

toolsformula auditingEVALUATE FORMULA...

regards...
--
*****
birds of the same feather flock together..



"Ron Rosenfeld" wrote:

On Thu, 8 Feb 2007 14:06:01 -0800, Ben wrote:

I have the following if statement in one of the cells:

IF(H465=$B$6,(((($B$4)/(($D$2^$D$2)*($F$2^$F$2)))^(1/($D$2+$F$2)))),(($B$3)*((H465-$B$6)/(H465+$B$1)))))

Now it is not giving me the answer that I calculate so to troubleshoot I
started by inserting the value that is in cell H465 and it did give me the
right answer. So my question is why if I change the value of H465 to a
constant in the comparison operator does the formula work as planned but if I
leave the cell reference (H465) then it does not calculate the right value.

One more piece of information is that there is a formula in the H465 to
calculate its value. Maybe that has something to do with it? Please help!

Thanks,
Ben

What is clear is that what you type into the formula to replace H465 is NOT the
same as the actual contents of H465 (or the result of that formula).

Probably either a TEXT versus NUMBER issue; or possibly a rounding versus
formatting issue.

What is the formula in H465?
What are the precedents of that formula?
What is the contents of B6?




--ron



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default If Statement Help

On Thu, 8 Feb 2007 14:50:00 -0800, Ben wrote:

When I used the evaluation tool I noticed something was going wrong with the
way the H* values are incrementing. I do not know how to fix it either. The
H* function is the value of the previous H row + 0.1 (Hn=H(n-1)+.1 or ex.
H50=H49+0.1) But one thing I noticed is that every 300 or so repeats of that
(H300) it adds an additional 0.0000000000001 to the previous number (if
H299=20.3 then H300=20.3000000000001) I do not know why it is doing this.


If all you need to do is increment by tenths, change your formula to something
like:

Hn: =ROUND(H(n-1)+0.1,1)

For an explanation, checkout Rounding Errors in Excel at support.microsoft.com
--ron
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ben Ben is offline
external usenet poster
 
Posts: 509
Default If Statement Help

Thank you both for your help. That worked.

Ben

"Ron Rosenfeld" wrote:

On Thu, 8 Feb 2007 14:50:00 -0800, Ben wrote:

When I used the evaluation tool I noticed something was going wrong with the
way the H* values are incrementing. I do not know how to fix it either. The
H* function is the value of the previous H row + 0.1 (Hn=H(n-1)+.1 or ex.
H50=H49+0.1) But one thing I noticed is that every 300 or so repeats of that
(H300) it adds an additional 0.0000000000001 to the previous number (if
H299=20.3 then H300=20.3000000000001) I do not know why it is doing this.


If all you need to do is increment by tenths, change your formula to something
like:

Hn: =ROUND(H(n-1)+0.1,1)

For an explanation, checkout Rounding Errors in Excel at support.microsoft.com
--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
Question using dates in a statement Wink20TCU Excel Discussion (Misc queries) 2 January 3rd 07 03:33 PM
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


All times are GMT +1. The time now is 05:43 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"