Comparing two cells

jgrillo04

New Member
Joined
Jun 24, 2011
Messages
7
On Sheet1 in cell A5 is 10069.

On Sheet9 in Cell A7455 is 10069.

Both are formatted as text. =EXACT(Sheet1!A5,Sheet9!A7455) returns TRUE.

Yet, =IF(Sheet1!A5=Sheet9!A7455,"T","F") returns F, and hence Index-Match is not working.

What is the problem here?

If I delete the contents of Sheet1 cell A5, then type in 10069,
=IF(Sheet1!A5=Sheet9!A7455,"T","F") returns T.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Welcome to the board...

If I delete the contents of Sheet1 cell A5, then type in 10069,
=IF(Sheet1!A5=Sheet9!A7455,"T","F") returns T.

This statement tells me that you have formula's in Sheet1!A5 and/or Sheet9!A7455

I suspect this is due to a "floating point precision" issue (google it for explaination).

Try adding the ROUND function to your formula in those cells..

=ROUND(originalformula,0)


Hope that helps.
 
Upvote 0
Welcome to the board...



This statement tells me that you have formula's in Sheet1!A5 and/or Sheet9!A7455

I suspect this is due to a "floating point precision" issue (google it for explaination).

Try adding the ROUND function to your formula in those cells..

=ROUND(originalformula,0)


Hope that helps.

Neither Sheet1!A5 nor Sheet9!A7455 contains a formula. I am typing the functions into cell B5 (where I plan to use Index-Match) on Sheet1 (cell B5 is formatted as 'general')
 
Upvote 0
Ok,

If Sheet1!A5 is NOT a formula, then how did the value 10069 get into that cell before you did this..
If I delete the contents of Sheet1 cell A5, then type in 10069,
=IF(Sheet1!A5=Sheet9!A7455,"T","F") returns T.

Was it imported from some other program?


Try this on BOTH Sheet1 and Sheet9 Column A.
Copy any blank cell
Right click Column A - Paste Special - Values - Add
 
Upvote 0
Ok,

Try this on BOTH Sheet1 and Sheet9 Column A.
Copy any blank cell
Right click Column A - Paste Special - Values - Add


This solved my problem!

The values were imported but i've never had this problem before (atleast not to this extent).

THANK YOU
 
Upvote 0
Glad to help, thanks for the feedback...

Yes, "Numbers stored as text", one of the most common and most annoying issues.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top