I am working in two different files. If number "40556" on worksheet B is showing on worksheet A, the function is to state "TRUE", but it's stating "FALSE". Both files' numbers are listed as GENERAL under FORMAT CELLS. Please help!
I am working in two different files. If number "40556" on worksheet B is showing on worksheet A, the function is to state "TRUE", but it's stating "FALSE". Both files' numbers are listed as GENERAL under FORMAT CELLS. Please help!
Trailing spaces? Use TRIM or LEN to verify there is ONLY 5 characters in the cell containing 40556
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
Special-K, I tested and there are only 5 characters.
Which function are you using?
Just because the format says "general" doesn't mean the cells are formatted the same. Check the two "matching" cells using the formula
=ISNUMBER(cell)
[replace "cell" with the relevant cell reference]. They both need to be TRUE (or both FALSE) otherwise you have a "data mismatch"
I am using the "IF" function. I am comparing numbers in two different files.
Ok so assume you are using
=IF(Sheet1!A1=Sheet2!B2,TRUE,FALSE)
what do you get if you try
=IF(Sheet1!A1+0=Sheet2!B2+0,TRUE,FALSE)
I tried and it's not working. This is frustrating as I use the IF function all the time.
Can you post the workbook or a sample that shows the formulas that don't work?
Here are the two files I'm working on. The IF function is in the CDM file.
I didn't post the attachments correctly. I will re-post in a few. Sorry!
Okay, here's the correct files. The IF function is in the CDM file.
I don't see anything wrong. You are comparing each cell in A2:A10 in CDM file to a single cell, A2, in the other file.....only one of them matches so you get one TRUE, in C6.
Do you mean to compare each value in A2:A10 CDM to all the values in A2:A10 in the other file? If so you need to use MATCH like this in C2 copied down
=IF(ISNUMBER(MATCH(A2,'[Grouped%20Charge%20Codes(1).xls]Sheet1'!$A$2:$A$10,0)),TRUE,FALSE)
Note: that's how the workbook name came out when I opened it, you probably need to amend it in your formula......
Last edited by daddylonglegs; 09-22-2009 at 07:46 PM.
You are exactly right! Thank you so much!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks