# Excel does not seem to recognize a cell value.

Discussion in 'Business Applications' started by Brendon, Jul 2, 2003.

Not open for further replies.

Joined:
Jul 2, 2003
Messages:
11
In cell B5: 54.5 3L 1-39.16

In order to extract the 3 that is next to "L" in the middle
of the text, I made up the following formula:

=IF(R4>1,MID(B5,(FIND(" ",B5)+2),LEN(B5)-((LEN(B5)-FIND
("L",B5)+1)+((FIND(" ",B5))+1))),IF(R4=1,-MID(B5,(FIND
(" ",B5)+2),LEN(B5)-((LEN(B5)-FIND("L",B5)+1)+((FIND
(" ",B5))+1)))))

(Please note: there is a condition set for a value in cell
R4 too (If R4 is greater than 1). And also the text in the
B column which B5 is a part, varies in length, so the formula did get a bit clunky).

Anyway, I end up with "3" displayed in the cell that contains the above formula, as I wanted.

Say the formula that produces "3" is in cell S4: If I enter: "=S4" in another cell, excel doesn't seem to recognize "3" as S4 value. All I get is "=S4" in the new cell!

I can't do anything with it. Excel does not seem to
recognize the value "3" from the above formula. So can't use its value in another cell.

Is there a way to get around this? I have formatted the
cell to General, Number, etc. Doen't seem to make a
difference.

2. ### SabreWolf3

Joined:
Nov 6, 2000
Messages:
227
Hi Brendon,

Try changing the formatting to General, then select the cell above S4 and then do a Find>Replace. Replace = with = and see if that fixes it. Don't ask me why, but I had the same problem before, and this solution was given to me by an Excel MVP at another help forum. It worked like a charm for me.

Good luck,
Richard

Joined:
Jul 2, 2003
Messages:
11
Thanks SabreWolf3.

It worked. And I won't ask how!....

4. ### SabreWolf3

Joined:
Nov 6, 2000
Messages:
227
There's a way to prevent this from happening in the future, as well. Whenever I start a new workbook, on each new sheet I create, I select all cells and set the formatting to General.

General should be the default, but doing this has prevented me from running into this problem again.

Happy excelling,
Richard

As Seen On