Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 148
Default Cell Format - What's wrong?

Hi,

I downloaded an excel spreadsheet from a website. Column A:B on the
spreadsheet is a reference for my vlookup formula in another worksheet.

The cell where my formula returns #N/A.

Say Column A5 reflects 2000.01

If I go to the specific cell (A5) and "manually type" the exact information
on the same cell (2000.01) then my formula will work!

After typing manually and my formula works referring to A5 I tried use
Column A5 as a base and use Format painter for the rest of Column A but all
the rows in column A does not work for my formula unless I type manually each
information on the cells in column A.

Please help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Cell Format - What's wrong?

Try a few functions that'll describe that cell (before you retype the value).

=istext(a1)
=isnumber(a1)
=len(a1)

My bet is that you're pasting extra characters into that cell--maybe extra
spaces or those HTML non-breaking spaces (char(160)'s).

Depending on what you find out, ...

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



Danny wrote:

Hi,

I downloaded an excel spreadsheet from a website. Column A:B on the
spreadsheet is a reference for my vlookup formula in another worksheet.

The cell where my formula returns #N/A.

Say Column A5 reflects 2000.01

If I go to the specific cell (A5) and "manually type" the exact information
on the same cell (2000.01) then my formula will work!

After typing manually and my formula works referring to A5 I tried use
Column A5 as a base and use Format painter for the rest of Column A but all
the rows in column A does not work for my formula unless I type manually each
information on the cells in column A.

Please help.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 148
Default Cell Format - What's wrong?

You are absolutely right Mr. Peterson. Some are text, some are numbers but
most importantly, using =len(a1:a200), some rows comes with a different
number!

I'll go to the website you provided and hopefully, I'll be able to
"clean-up" the worksheet.

Thanks a lot.

"Dave Peterson" wrote:

Try a few functions that'll describe that cell (before you retype the value).

=istext(a1)
=isnumber(a1)
=len(a1)

My bet is that you're pasting extra characters into that cell--maybe extra
spaces or those HTML non-breaking spaces (char(160)'s).

Depending on what you find out, ...

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



Danny wrote:

Hi,

I downloaded an excel spreadsheet from a website. Column A:B on the
spreadsheet is a reference for my vlookup formula in another worksheet.

The cell where my formula returns #N/A.

Say Column A5 reflects 2000.01

If I go to the specific cell (A5) and "manually type" the exact information
on the same cell (2000.01) then my formula will work!

After typing manually and my formula works referring to A5 I tried use
Column A5 as a base and use Format painter for the rest of Column A but all
the rows in column A does not work for my formula unless I type manually each
information on the cells in column A.

Please help.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Cell Format - What's wrong?

Use a difference cell for each of the =len() formulas.

And only use a single cell in that formula:
=len(a1)
=len(a2)
.....

Danny wrote:

You are absolutely right Mr. Peterson. Some are text, some are numbers but
most importantly, using =len(a1:a200), some rows comes with a different
number!

I'll go to the website you provided and hopefully, I'll be able to
"clean-up" the worksheet.

Thanks a lot.

"Dave Peterson" wrote:

Try a few functions that'll describe that cell (before you retype the value).

=istext(a1)
=isnumber(a1)
=len(a1)

My bet is that you're pasting extra characters into that cell--maybe extra
spaces or those HTML non-breaking spaces (char(160)'s).

Depending on what you find out, ...

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



Danny wrote:

Hi,

I downloaded an excel spreadsheet from a website. Column A:B on the
spreadsheet is a reference for my vlookup formula in another worksheet.

The cell where my formula returns #N/A.

Say Column A5 reflects 2000.01

If I go to the specific cell (A5) and "manually type" the exact information
on the same cell (2000.01) then my formula will work!

After typing manually and my formula works referring to A5 I tried use
Column A5 as a base and use Format painter for the rest of Column A but all
the rows in column A does not work for my formula unless I type manually each
information on the cells in column A.

Please help.


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Cell Format - What's wrong?

Use a _different_ cell for each of the =len() formulas.

(stupid fingers!)

Dave Peterson wrote:

Use a difference cell for each of the =len() formulas.

And only use a single cell in that formula:
=len(a1)
=len(a2)
....

Danny wrote:

You are absolutely right Mr. Peterson. Some are text, some are numbers but
most importantly, using =len(a1:a200), some rows comes with a different
number!

I'll go to the website you provided and hopefully, I'll be able to
"clean-up" the worksheet.

Thanks a lot.

"Dave Peterson" wrote:

Try a few functions that'll describe that cell (before you retype the value).

=istext(a1)
=isnumber(a1)
=len(a1)

My bet is that you're pasting extra characters into that cell--maybe extra
spaces or those HTML non-breaking spaces (char(160)'s).

Depending on what you find out, ...

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



Danny wrote:

Hi,

I downloaded an excel spreadsheet from a website. Column A:B on the
spreadsheet is a reference for my vlookup formula in another worksheet.

The cell where my formula returns #N/A.

Say Column A5 reflects 2000.01

If I go to the specific cell (A5) and "manually type" the exact information
on the same cell (2000.01) then my formula will work!

After typing manually and my formula works referring to A5 I tried use
Column A5 as a base and use Format painter for the rest of Column A but all
the rows in column A does not work for my formula unless I type manually each
information on the cells in column A.

Please help.

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Cell Format - What's wrong?

There is another trick to this. Copy the entire column of numbers into a
notepad file and save it (as a txt). Then from Excel, open the txt file.
These numbers will all be in number format and you can paste it over your
original data.

"Dave Peterson" wrote:

Use a _different_ cell for each of the =len() formulas.

(stupid fingers!)

Dave Peterson wrote:

Use a difference cell for each of the =len() formulas.

And only use a single cell in that formula:
=len(a1)
=len(a2)
....

Danny wrote:

You are absolutely right Mr. Peterson. Some are text, some are numbers but
most importantly, using =len(a1:a200), some rows comes with a different
number!

I'll go to the website you provided and hopefully, I'll be able to
"clean-up" the worksheet.

Thanks a lot.

"Dave Peterson" wrote:

Try a few functions that'll describe that cell (before you retype the value).

=istext(a1)
=isnumber(a1)
=len(a1)

My bet is that you're pasting extra characters into that cell--maybe extra
spaces or those HTML non-breaking spaces (char(160)'s).

Depending on what you find out, ...

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



Danny wrote:

Hi,

I downloaded an excel spreadsheet from a website. Column A:B on the
spreadsheet is a reference for my vlookup formula in another worksheet.

The cell where my formula returns #N/A.

Say Column A5 reflects 2000.01

If I go to the specific cell (A5) and "manually type" the exact information
on the same cell (2000.01) then my formula will work!

After typing manually and my formula works referring to A5 I tried use
Column A5 as a base and use Format painter for the rest of Column A but all
the rows in column A does not work for my formula unless I type manually each
information on the cells in column A.

Please help.

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 148
Default Cell Format - What's wrong?

I went to: http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")


The Trim All macro did it!

Thank you for your help and tips!

"Poorvi" wrote:

There is another trick to this. Copy the entire column of numbers into a
notepad file and save it (as a txt). Then from Excel, open the txt file.
These numbers will all be in number format and you can paste it over your
original data.

"Dave Peterson" wrote:

Use a _different_ cell for each of the =len() formulas.

(stupid fingers!)

Dave Peterson wrote:

Use a difference cell for each of the =len() formulas.

And only use a single cell in that formula:
=len(a1)
=len(a2)
....

Danny wrote:

You are absolutely right Mr. Peterson. Some are text, some are numbers but
most importantly, using =len(a1:a200), some rows comes with a different
number!

I'll go to the website you provided and hopefully, I'll be able to
"clean-up" the worksheet.

Thanks a lot.

"Dave Peterson" wrote:

Try a few functions that'll describe that cell (before you retype the value).

=istext(a1)
=isnumber(a1)
=len(a1)

My bet is that you're pasting extra characters into that cell--maybe extra
spaces or those HTML non-breaking spaces (char(160)'s).

Depending on what you find out, ...

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



Danny wrote:

Hi,

I downloaded an excel spreadsheet from a website. Column A:B on the
spreadsheet is a reference for my vlookup formula in another worksheet.

The cell where my formula returns #N/A.

Say Column A5 reflects 2000.01

If I go to the specific cell (A5) and "manually type" the exact information
on the same cell (2000.01) then my formula will work!

After typing manually and my formula works referring to A5 I tried use
Column A5 as a base and use Format painter for the rest of Column A but all
the rows in column A does not work for my formula unless I type manually each
information on the cells in column A.

Please help.

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson

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
Date in wrong format GKW in GA Excel Discussion (Misc queries) 6 February 19th 08 03:21 PM
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
Excel mailing list in wrong format for mail merge Loren Smith[_2_] Excel Discussion (Misc queries) 0 March 8th 07 09:38 PM
Wrong date format in header Curt Charles PDX Excel Discussion (Misc queries) 1 October 25th 06 10:42 PM
YYYY format displaying wrong date Blaise Excel Discussion (Misc queries) 3 October 12th 05 02:28 AM


All times are GMT +1. The time now is 01:51 AM.

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

About Us

"It's about Microsoft Excel"