#1   Report Post  
mklapp
 
Posts: n/a
Default IF Issue

Hello,

I am trying to verify mathematical results. My approach is something like:

(in a Cell) =IF(V4=K4,"Yes","NO")

The problem seem to be that the IF function sees that a formula yielding :

398.8072513

is not = to a cell containing the value:

398.8072513

This seems counterintuitive.

Is there a way to get IF to evaluate the displayed values of the cells
instead of the
comparing the 'formulae'?

Thanks,

mklapp

  #2   Report Post  
 
Posts: n/a
Default

Hi

I think that 'counterintuitive' is a brilliant description!!
Two options spring to mind:
Use the ROUND function to round the figures.
Go to Tools|Options|Calculation and set Precision As Displayed. WARNING -
this will set all figures on the spreadsheet to be exactly as they show -
and hence lose decimal places that are not displayed.

--
Andy.


"mklapp" wrote in message
...
Hello,

I am trying to verify mathematical results. My approach is something
like:

(in a Cell) =IF(V4=K4,"Yes","NO")

The problem seem to be that the IF function sees that a formula yielding :

398.8072513

is not = to a cell containing the value:

398.8072513

This seems counterintuitive.

Is there a way to get IF to evaluate the displayed values of the cells
instead of the
comparing the 'formulae'?

Thanks,

mklapp



  #3   Report Post  
RagDyeR
 
Posts: n/a
Default

Your actual issue here, is that the formula is returning a value that is
*different* from the value contained in the other cell ... BUT ... your
formatting of the formula cell is *only* displaying 7 decimal places.

The proper approach would be to Round() the return of the formula.

i.e.:

Revise
=A1*B1
To
=ROUND(A1*B1,7)

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"mklapp" wrote in message
...
Hello,

I am trying to verify mathematical results. My approach is something like:

(in a Cell) =IF(V4=K4,"Yes","NO")

The problem seem to be that the IF function sees that a formula yielding :

398.8072513

is not = to a cell containing the value:

398.8072513

This seems counterintuitive.

Is there a way to get IF to evaluate the displayed values of the cells
instead of the
comparing the 'formulae'?

Thanks,

mklapp


  #4   Report Post  
mklapp
 
Posts: n/a
Default

Great, it works. I am so glad It is not what I thought it was. Thanks.



"RagDyeR" wrote:

Your actual issue here, is that the formula is returning a value that is
*different* from the value contained in the other cell ... BUT ... your
formatting of the formula cell is *only* displaying 7 decimal places.

The proper approach would be to Round() the return of the formula.

i.e.:

Revise
=A1*B1
To
=ROUND(A1*B1,7)

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"mklapp" wrote in message
...
Hello,

I am trying to verify mathematical results. My approach is something like:

(in a Cell) =IF(V4=K4,"Yes","NO")

The problem seem to be that the IF function sees that a formula yielding :

398.8072513

is not = to a cell containing the value:

398.8072513

This seems counterintuitive.

Is there a way to get IF to evaluate the displayed values of the cells
instead of the
comparing the 'formulae'?

Thanks,

mklapp



  #5   Report Post  
Ragdyer
 
Posts: n/a
Default

Appreciate the feed-back, but ... you've piqued my curiosity now ... what
did you actually *think* the problem was?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"mklapp" wrote in message
...
Great, it works. I am so glad It is not what I thought it was. Thanks.



"RagDyeR" wrote:

Your actual issue here, is that the formula is returning a value that is
*different* from the value contained in the other cell ... BUT ... your
formatting of the formula cell is *only* displaying 7 decimal places.

The proper approach would be to Round() the return of the formula.

i.e.:

Revise
=A1*B1
To
=ROUND(A1*B1,7)

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"mklapp" wrote in message
...
Hello,

I am trying to verify mathematical results. My approach is something

like:

(in a Cell) =IF(V4=K4,"Yes","NO")

The problem seem to be that the IF function sees that a formula yielding

:

398.8072513

is not = to a cell containing the value:

398.8072513

This seems counterintuitive.

Is there a way to get IF to evaluate the displayed values of the cells
instead of the
comparing the 'formulae'?

Thanks,

mklapp




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
Sorting Issue (Mixde Fields) Jonathan G. Excel Discussion (Misc queries) 1 May 11th 05 03:54 PM
An issue when sorting in excel PivotTable Microlong Excel Discussion (Misc queries) 0 May 10th 05 09:50 AM
Excel Viewer performance issue Macca101 Excel Discussion (Misc queries) 0 April 28th 05 12:09 PM
New Excel Comment Box Issue elai Excel Discussion (Misc queries) 3 February 23rd 05 01:09 AM
Shared File & Freeze panes issue JM Excel Discussion (Misc queries) 0 January 21st 05 07:01 PM


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