Formula will not pick up cell value

freefall3

New Member
Joined
Aug 22, 2011
Messages
6
Can anyone help please. I have never come across this problem and do not know how to get past it. (apologies if i'm writing a bit long winded but am finding it hard to explain)

I have a formula which displays "MATCH", when a cell contains a value

eg =IF(ISNUMBER(SEARCH($E$1,A1)), "MATCH", "NO")
$E$1 being the value, searching in A1

$E$1 is a value from another workbook. When i run a macro, it opens a workbook, copies a value into E1 and searches for the value in the current worksheet in the adjacent cell, then repeats again. it does this multiple times running through different workbooks

the problem i am having is that sometimes the copied value cannot be found with the formula, and it still returns "NO". I have formatted the new value to suit the workbook, re formatted the whole worksheet, etc.. but nothing happens. The only way the number can be found is if I manually type the value in.
This is not happening with all of the copied values. Mostof the time i'm copying multiple values from the same workbook and only one value cannot be read.

thankyou in advance

paul
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Welcome to the board!

Can you give us an example of what E1's and A1's values are when the formula's returning "NO" and you think it should be returning "MATCH"?

Are you sure there are no leading or trailing spaces in E1's value that are causing the problem?
 
Upvote 0
I cannot believe i missed that one. A few values had a trailing *space*. thankyou very much (i'm sure i'll get better in time)
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,754
Members
452,940
Latest member
rootytrip

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