Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default comparing 2 cells where 1 is a cell with a formula

Anyone know how to 2 cells to see if they hold the same value when l
has a formula in it

eg in cell R2 I have AB and in cell S2 I have vlookup(.....) which
returns the value AB.

If I then enter the formula = if(R2=S2, true, false) I get the result
false when it should be true.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default comparing 2 cells where 1 is a cell with a formula

I guess that one or other (or both) of your cells have spaces or other
additional characters beyond what you're seeing.

Do =LEN(R2) and =LEN(S2) both return 2? If not, you may need to look at the
TRIM or CLEAN functions.

Note that you don't need the IF() function; you should get the same answer
from =R2=S2
--
David Biddulph

"colmkav" wrote in message
ps.com...
Anyone know how to 2 cells to see if they hold the same value when l
has a formula in it

eg in cell R2 I have AB and in cell S2 I have vlookup(.....) which
returns the value AB.

If I then enter the formula = if(R2=S2, true, false) I get the result
false when it should be true.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default comparing 2 cells where 1 is a cell with a formula

On 26 Jul, 16:09, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
I guess that one or other (or both) of your cells have spaces or other
additional characters beyond what you're seeing.

Do =LEN(R2) and =LEN(S2) both return 2? If not, you may need to look at the
TRIM or CLEAN functions.

Note that you don't need the IF() function; you should get the same answer
from =R2=S2
--
David Biddulph

"colmkav" wrote in message

ps.com...



Anyone know how to 2 cells to see if they hold the same value when l
has a formula in it


eg in cell R2 I have AB and in cell S2 I have vlookup(.....) which
returns the value AB.


If I then enter the formula = if(R2=S2, true, false) I get the result
false when it should be true.- Hide quoted text -


- Show quoted text -


thanks. I didnt realise thats all it was. Thought it was because it
was via formula.

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
Comparing cells when they are not exactly the same Garry Excel Discussion (Misc queries) 2 April 2nd 07 10:26 AM
Comparing cell contents with different reference cells Martin B Excel Worksheet Functions 3 November 22nd 06 07:10 PM
comparing cells Help me Excel Worksheet Functions 1 May 9th 06 10:01 PM
comparing a column of cell and then copy info to other cells Kelly******** Excel Discussion (Misc queries) 0 March 21st 06 09:51 AM
Formula for comparing two cells Frustrated Mike Excel Worksheet Functions 1 August 6th 05 01:20 AM


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