Formula does not capture all values

rthakur

Board Regular
Joined
Feb 22, 2005
Messages
121
Hello!

I use below formula to compare and load a specific message if the value matches or does not match. The formula does not pick up all values correctly. Very few entries are labeled with "not match" incorrectly.

=IF(F2="","",IF(ISNUMBER(MATCH(LEFT(F2,6),'PSCCR Queue - Manager'!$H$4:$H$201,0)),"CA - Natl","Non - CA Natl"))

Thank you for your kind help!

RT
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
There's only one thing you can do, that is to find an incorrect result, and compare the 6 leftmost characters of the cell in column F with the expected value in column H. I can 99% guarantee there'll be a difference; a leading/trailing space in one of them perhaps (use TRIM), upper/lower case doesn't matter with MATCH, but maybe if the values are pure numbers there may be instances where you're comparing a number with a number represented by text?
 
Upvote 0
Thanks p45cal. Yes, some values are numeric only, while other are alpha-numeric. Your hypothesis is correct.

I am not familar with the TRIM formula. Would you be able to suggest a formula please?

regards,

RT
 
Upvote 0
Help is your best bet.
Where you have
LEFT(F2,6)
use either
LEFT(TRIM(F2),6)
or
TRIM(LEFT(F2,6))

Also, as far as converting numbers to text, you can use
=TEXT(B16,"@")
which i think does nothing to text values.

I'm not going to reiterate the Help file contents.

Where you have
'PSCCR Queue - Manager'!$H$4:$H$201
I don't know if this will work but you could try
TEXT('PSCCR Queue - Manager'!$H$4:$H$201,"@")
instead. Perhaps add TRIM in there too?

I don't know the kinds of data in either what your searching, nor what's being sought, so I can't detail a formula. It's up to you to experiment
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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