Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ade ade is offline
external usenet poster
 
Posts: 16
Default Cell contents not recognised untill clicked

I have a column of data - part nos, that Excel does not seem to properly
recognise. I can select one of these cell and copy/paste it to another cell
which works fine but if I try to use the cells as part of a MATCH (or other)
function against another column that I know has the same values in cells, it
does not seem to see this.

What is also strange is that the data in the 'bad' column is left justified
and formatted as General but if I double click one of the cells as if to edit
it and then deselect the cell by clicking on any other cell on the worksheet
the cell becomes right justified and and Excel will now recognise it enabling
functions such as MATCH to correctly work with it.

I don't understand why this is happening which is quite a problem as the
column contains a few thousand cells and it's not very efficient to have to
double click every cell before I can work with them.
I have even tried selecting all cells in the column and formatting as text
but this makes no difference.

So if anyone can tell me why this is the case or can suggest a workaround /
VBA code I (and my boss) would be very grateful.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Cell contents not recognised untill clicked

Select the cells you want to fix and run:

Sub fixum()
Set rr = Selection
For Each r In rr
r.Select
Application.SendKeys "{F2}"
Application.SendKeys "{ENTER}"
DoEvents
Next
End Sub
--
Gary''s Student
gsnu200712

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Cell contents not recognised untill clicked

It sounds like the data in your "bad" column is formatted as Text. The
"General" format was likely applied later, and Excel will not reevaluate Text
entries simply by changing the Cell Format. This is why when you reenter the
data, it works.

Try this to change all text values to numbers.

Enter a 1 into any blank cell
Copy that cell
Select your range of data to convert (bad column)
From the Edit Menu, choose "Paste Special"
Select the "Values" and "Multiply" options
Click OK
Delete the 1 you entered originally

That should do it. By multiplying everything by 1, anything that can be
recognized as a number, will be converted to a number without changing the
value.

HTH,
Elkar


"Ade" wrote:

I have a column of data - part nos, that Excel does not seem to properly
recognise. I can select one of these cell and copy/paste it to another cell
which works fine but if I try to use the cells as part of a MATCH (or other)
function against another column that I know has the same values in cells, it
does not seem to see this.

What is also strange is that the data in the 'bad' column is left justified
and formatted as General but if I double click one of the cells as if to edit
it and then deselect the cell by clicking on any other cell on the worksheet
the cell becomes right justified and and Excel will now recognise it enabling
functions such as MATCH to correctly work with it.

I don't understand why this is happening which is quite a problem as the
column contains a few thousand cells and it's not very efficient to have to
double click every cell before I can work with them.
I have even tried selecting all cells in the column and formatting as text
but this makes no difference.

So if anyone can tell me why this is the case or can suggest a workaround /
VBA code I (and my boss) would be very grateful.

  #4   Report Post  
Posted to microsoft.public.excel.misc
ade ade is offline
external usenet poster
 
Posts: 16
Default Cell contents not recognised untill clicked

Thanks for your advice Elkar but some of the part nos have letters as part of
their designation. Also I do not understand when you say the cells are
formatted as Text if Excel is telling me they are General, why can't changing
the Cell Format change the format of the cell?

"Elkar" wrote:

It sounds like the data in your "bad" column is formatted as Text. The
"General" format was likely applied later, and Excel will not reevaluate Text
entries simply by changing the Cell Format. This is why when you reenter the
data, it works.

Try this to change all text values to numbers.

Enter a 1 into any blank cell
Copy that cell
Select your range of data to convert (bad column)
From the Edit Menu, choose "Paste Special"
Select the "Values" and "Multiply" options
Click OK
Delete the 1 you entered originally

That should do it. By multiplying everything by 1, anything that can be
recognized as a number, will be converted to a number without changing the
value.

HTH,
Elkar


"Ade" wrote:

I have a column of data - part nos, that Excel does not seem to properly
recognise. I can select one of these cell and copy/paste it to another cell
which works fine but if I try to use the cells as part of a MATCH (or other)
function against another column that I know has the same values in cells, it
does not seem to see this.

What is also strange is that the data in the 'bad' column is left justified
and formatted as General but if I double click one of the cells as if to edit
it and then deselect the cell by clicking on any other cell on the worksheet
the cell becomes right justified and and Excel will now recognise it enabling
functions such as MATCH to correctly work with it.

I don't understand why this is happening which is quite a problem as the
column contains a few thousand cells and it's not very efficient to have to
double click every cell before I can work with them.
I have even tried selecting all cells in the column and formatting as text
but this makes no difference.

So if anyone can tell me why this is the case or can suggest a workaround /
VBA code I (and my boss) would be very grateful.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
unhide rows when cell is clicked lauren_roberts08 New Users to Excel 3 June 14th 06 03:06 AM
unhide rows when cell is clicked lauren_roberts08 Excel Worksheet Functions 2 June 13th 06 08:54 PM
How do I insert radio button to sum a cell when clicked Joe D. Excel Worksheet Functions 1 March 6th 06 08:54 PM
how do i change 20050614 within in a cell to a recognised date Richard carpenter @ uniq Excel Worksheet Functions 1 June 8th 05 11:32 AM
Sum of row untill you reach a certain point (2) Andman Excel Discussion (Misc queries) 3 April 1st 05 04:17 PM


All times are GMT +1. The time now is 10:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"