Cell A = Cell B but Excell thinks it doesn't

oswalda

New Member
Joined
May 27, 2024
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I have values in column A and values in column B. Both columns are formatted as General. A is a number and B is also a number generated from a formula
Both lines below have the same numbers in rows 1 and 2. Excell thinks row 1 numbers are equal and row 2 numbers are not equal
question.png


Why does Excell see the number in B2 as different than the number in A2?
thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
A is not a number, as you state in the image it is text (which is what it is in column A below).

Try the formulas in C3 or C4, where you replace the b cell reference with your formula that you haven't posted.

Book1
ABC
2123456123456FALSE
3123457123457TRUE
4123458123458TRUE
Sheet3
Cell Formulas
RangeFormula
C2C2=A2=B2
C3C3=A3+0=B3
C4C4=A4+0=ROUND(B4,0)
 
Upvote 0
=A3+0=B3 turned C3 to False so that isn't right

values in Col A should equal values in Col B
Cell B2 has =A2=B2 and returns TRUE, which is correct
Cell B3 has the same formula but returns False.

I tried theother formulas you suggested they both return FALSE
 
Upvote 0
I tried theother formulas you suggested they both return FALSE
Then try posting the formula in column B that you are using so we have a clue what we are dealing with

I take it you meant
Cell C2 has =A2=B2 and returns TRUE, which is correct
Cell C3 has the same formula but returns False.
 
Upvote 0
Here is the formula
=VALUETOTEXT(VLOOKUP($E2,'E:\NYCHHC\CSOD\Reports\Historical Data\[UsersforFeedComparison 5-29-2024.xlsx]Users for Feed Comparison'!$B$13:$L$25741,6,FALSE))
 
Upvote 0
What result do you get in column B if you remove the Valuetotext function and format the cell to 15 decimal places?

Also try
Excel Formula:
=TRIM(A2)=TRIM(B2)
 
Upvote 1
Solution
You're welcome, it probably means you have an extra space in the cells somewhere
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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