Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default Help removing "space" character (question updated)

I am copying data from the web that's in a spreadsheet format and which can
be dropped straight into Excel. The information is yearly values that are
displayed for each month of the year. I have two problems:

1. The data is "backward" - on the sheet I want to input this data, it
starts in year 2004 and moves month by month down the spreadsheet, ending
with 2008. The data on the website *begins* 12/08 and moves down the page so
that the earliest data is at the bottom rather than the top. (I resolved
this by putting the data in the order I want it and doing a vlookup against
the data I'm pasting from the web).

2. Second issue is that there is an extra space in the monthly information
at the
end of the data. Conseqeuently, when I paste the vlookup result info (I also
copy that info and paste again in the sheet as a value . . .) each cell that
has data has a space at the end of it. I can go into each one and remove the
space but the "find and replace" feature won't remove the space universally.

I have about 150 companies for which I have to update 2006, 2007 and 2008
data by month so being able to copy from the site, do a tiny bit of
manipulation and pasting the result into my ultimate spreadhseet would be
great and a real time saver (and much faster than hand-keying all the info!).

Thanks for any ideas you have on making this process faster and more
efficient.

mm
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Help removing "space" character (question updated)

2. presuming yr data starts in A1 (in some other column) use the
formula:
=LEFT(A1,LEN(A1)-1)
to get rid of spaces in the end, then copy and paste special as values

HIH
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Help removing "space" character (question updated)

You can also use the following formula to remove the trailing space:

=TRIM(A1)

Copy down the column as far as necessary, then copy the entire column with
the formula and do a EDIT/PASTE SPECIAL/VALUES over the original data.

You can then remove the helper column w/the TRIM function.
--
Kevin Backmann


"Jarek Kujawa" wrote:

2. presuming yr data starts in A1 (in some other column) use the
formula:
=LEFT(A1,LEN(A1)-1)
to get rid of spaces in the end, then copy and paste special as values

HIH

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Help removing "space" character (question updated)

Hi

Some of the spaces may be the non-break space character (0160).
Assuming your data is in column B, in a spare column on the sheet enter
=SUBSTITUTE(SUBSTITUTE(B1,CHAR(160),"")," ","")
and copy down as far as required.
This will remove both type of space.
Then, copy this new column of dataPaste SpecialValues over the data you
have in column B.
The extra column can then be deleted.

To reverse your data, just do the following.
Assuming you have data in columns A:D that you want to reverse.
In cell F1 enter
=INDEX(A:A,COUNTA(A:A)+1-ROW())
Copy across through G1:I1, then copy down as far as you require
--
Regards
Roger Govier

"smartgal" wrote in message
...
I am copying data from the web that's in a spreadsheet format and which
can
be dropped straight into Excel. The information is yearly values that are
displayed for each month of the year. I have two problems:

1. The data is "backward" - on the sheet I want to input this data, it
starts in year 2004 and moves month by month down the spreadsheet, ending
with 2008. The data on the website *begins* 12/08 and moves down the page
so
that the earliest data is at the bottom rather than the top. (I resolved
this by putting the data in the order I want it and doing a vlookup
against
the data I'm pasting from the web).

2. Second issue is that there is an extra space in the monthly
information
at the
end of the data. Conseqeuently, when I paste the vlookup result info (I
also
copy that info and paste again in the sheet as a value . . .) each cell
that
has data has a space at the end of it. I can go into each one and remove
the
space but the "find and replace" feature won't remove the space
universally.

I have about 150 companies for which I have to update 2006, 2007 and 2008
data by month so being able to copy from the site, do a tiny bit of
manipulation and pasting the result into my ultimate spreadhseet would be
great and a real time saver (and much faster than hand-keying all the
info!).

Thanks for any ideas you have on making this process faster and more
efficient.

mm


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default Help removing "space" character (question updated)

Works! Thanks much!

"Kevin B" wrote:

You can also use the following formula to remove the trailing space:

=TRIM(A1)

Copy down the column as far as necessary, then copy the entire column with
the formula and do a EDIT/PASTE SPECIAL/VALUES over the original data.

You can then remove the helper column w/the TRIM function.
--
Kevin Backmann


"Jarek Kujawa" wrote:

2. presuming yr data starts in A1 (in some other column) use the
formula:
=LEFT(A1,LEN(A1)-1)
to get rid of spaces in the end, then copy and paste special as values

HIH



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Help removing "space" character (question updated)

Thanks for the global solution in your prior post. I'm gonna' file that one
away for future reference.
--
Kevin Backmann


"Roger Govier" wrote:

Hi

Some of the spaces may be the non-break space character (0160).
Assuming your data is in column B, in a spare column on the sheet enter
=SUBSTITUTE(SUBSTITUTE(B1,CHAR(160),"")," ","")
and copy down as far as required.
This will remove both type of space.
Then, copy this new column of dataPaste SpecialValues over the data you
have in column B.
The extra column can then be deleted.

To reverse your data, just do the following.
Assuming you have data in columns A:D that you want to reverse.
In cell F1 enter
=INDEX(A:A,COUNTA(A:A)+1-ROW())
Copy across through G1:I1, then copy down as far as you require
--
Regards
Roger Govier

"smartgal" wrote in message
...
I am copying data from the web that's in a spreadsheet format and which
can
be dropped straight into Excel. The information is yearly values that are
displayed for each month of the year. I have two problems:

1. The data is "backward" - on the sheet I want to input this data, it
starts in year 2004 and moves month by month down the spreadsheet, ending
with 2008. The data on the website *begins* 12/08 and moves down the page
so
that the earliest data is at the bottom rather than the top. (I resolved
this by putting the data in the order I want it and doing a vlookup
against
the data I'm pasting from the web).

2. Second issue is that there is an extra space in the monthly
information
at the
end of the data. Conseqeuently, when I paste the vlookup result info (I
also
copy that info and paste again in the sheet as a value . . .) each cell
that
has data has a space at the end of it. I can go into each one and remove
the
space but the "find and replace" feature won't remove the space
universally.

I have about 150 companies for which I have to update 2006, 2007 and 2008
data by month so being able to copy from the site, do a tiny bit of
manipulation and pasting the result into my ultimate spreadhseet would be
great and a real time saver (and much faster than hand-keying all the
info!).

Thanks for any ideas you have on making this process faster and more
efficient.

mm


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
Help removing "space" character from imported data smartgal Excel Discussion (Misc queries) 3 June 30th 08 07:38 PM
Can I automatically add space after ea. row ("Space After" in Word Reddheddz Excel Discussion (Misc queries) 0 June 17th 08 05:55 PM
how do I type "itis" without Excel putting a space "it is"? Max Excel Worksheet Functions 4 March 18th 07 10:22 PM
"Disk is Full" add-on question to "Can't reset last cell" post tod [email protected] Excel Discussion (Misc queries) 0 January 22nd 07 02:32 AM
NEED HELP-----Removing a space at the end of a string of character FRS Excel Discussion (Misc queries) 7 April 13th 06 03:57 AM


All times are GMT +1. The time now is 02:58 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"