Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pat
 
Posts: n/a
Default Help to fix formula ="Yes"


The following formula is not doing what it is supposed to be doing:

=IF(AND(I87-J870,S87="Yes"),0,I87-J87)

A value should only be returned if S87="Yes"

What happens is a value is returned regardless if S87="Yes" or not. Anyone
know what is wrong here?

Thanks
Pat


  #2   Report Post  
peter
 
Posts: n/a
Default

Hi,
the "yes" in the formula needs to be double quoted...
the yes in cell s87 does not.

peter
-----Original Message-----

The following formula is not doing what it is supposed

to be doing:

=IF(AND(I87-J870,S87="Yes"),0,I87-J87)

A value should only be returned if S87="Yes"

What happens is a value is returned regardless if

S87="Yes" or not. Anyone
know what is wrong here?

Thanks
Pat


.

  #3   Report Post  
Pat
 
Posts: n/a
Default

Peter,
What through the formula is that the cell had been custom formatted. I have
now changed the formula to:
=IF(AND(I87-J870,S87=1),0,I87-J87)
Thanks



"peter" wrote in message
...
Hi,
the "yes" in the formula needs to be double quoted...
the yes in cell s87 does not.

peter
-----Original Message-----

The following formula is not doing what it is supposed

to be doing:

=IF(AND(I87-J870,S87="Yes"),0,I87-J87)

A value should only be returned if S87="Yes"

What happens is a value is returned regardless if

S87="Yes" or not. Anyone
know what is wrong here?

Thanks
Pat


.



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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Formula Result Correct but value in the cell is wrong jac Excel Worksheet Functions 2 December 17th 04 08:05 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 09:56 PM.

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"