Help on modify existing VBA to allow comparison of 2 text cells to work

ItalianPlatinum

Well-known Member
Joined
Mar 23, 2017
Messages
793
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello - running into an annoying problem where my comparison of two columns doesn't work when I check for a simple true/false statement. I am comparing Column K to Column U with formula K13=U13, data is the same but says false.

Column K (format of row K is TEXT)

Column U
VBA Code:
    .Range("U13:U" & lr).NumberFormat = "General"
    .Range("U13:U" & lr).Formula = "=IFERROR(VLOOKUP(D13,'NAS D'!$A$6:$Y$10000,8,0),"""")"
    .Range("U13:U" & lr).NumberFormat = "@"

even if i do a sample test it doesn't work - but does if i click into column U. how do I get VBA to do the same and click into each cell to get it to work? To note data set is LARGE over 10k rows. so clicking into each cell would kill performance. any help is appreciated. thanks in advance.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,676
Messages
6,126,168
Members
449,296
Latest member
tinneytwin

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