A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Custom formatting



 
 
Thread Tools Display Modes
  #1  
Old April 3rd, 2008, 12:43 PM posted to microsoft.public.excel.worksheet.functions
Yvonne
external usenet poster
 
Posts: 78
Default Custom formatting

I have a very large spreadsheet in which I need to change all dates that
appear this way: 1994 - 1995, to this: (1994 - 1995).

Is there any way I can create a custom format for the latter? Otherwise I
have to go through each cell one by one and change each one individually.

I hope someone can help...
  #2  
Old April 3rd, 2008, 01:50 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Custom formatting

If the data is in a column, then use a helper column. Say the data is in
column A. In B1 enter:

="(" & A1 & ")" and copy down.


If you dates are scattered, then a macro is the best approach.
--
Gary''s Student - gsnu200777


"Yvonne" wrote:

I have a very large spreadsheet in which I need to change all dates that
appear this way: 1994 - 1995, to this: (1994 - 1995).

Is there any way I can create a custom format for the latter? Otherwise I
have to go through each cell one by one and change each one individually.

I hope someone can help...

  #3  
Old April 3rd, 2008, 02:49 PM posted to microsoft.public.excel.worksheet.functions
Ivyleaf
external usenet poster
 
Posts: 29
Default Custom formatting

On Apr 3, 11:50*pm, Gary''s Student
wrote:
If the data is in a column, then use a helper column. *Say the data is in
column A. *In B1 enter:

="(" & A1 & ")" and copy down.

If you dates are scattered, then a macro is the best approach.
--
Gary''s Student - gsnu200777



"Yvonne" wrote:
I have a very large spreadsheet in which I need to change all dates that
appear this way: 1994 - 1995, to this: (1994 - 1995). *


Is there any way I can create a custom format for the latter? *Otherwise I
have to go through each cell one by one and change each one individually..


I hope someone can help...- Hide quoted text -


- Show quoted text -


Or as a custom format: (@)

Cheers,
Ivan.
  #4  
Old April 3rd, 2008, 03:25 PM posted to microsoft.public.excel.worksheet.functions
Yvonne
external usenet poster
 
Posts: 78
Default Custom formatting

Thanks, it is helpful, but I am relatively new to Excel, and I'm not familiar
with macros.

The dates are scattered. I need this:

National Yeast 1950-1951,1955-1957; General Motors 1954-1955; Parker Sheet
Metal 1956-1960; Sun Oil Co., 1965-1986

to look like this:

National Yeast (1950-1951,1955-1957); General Motors (1954-1955); Parker
Sheet Metal (1956-1960); Sun Oil Co., (1965-1986)

We have a database at work that runs reports, and puts all information into
an Excel document. If the information isn't entered correctly into our
database in the first place, then we are left to clean up the mess in the
reports. It wastes a great deal of time, and I was hoping there might be a
way to cut back on that time.

Is there a macro for me somewhere out there?

"Gary''s Student" wrote:

If the data is in a column, then use a helper column. Say the data is in
column A. In B1 enter:

="(" & A1 & ")" and copy down.


If you dates are scattered, then a macro is the best approach.
--
Gary''s Student - gsnu200777


"Yvonne" wrote:

I have a very large spreadsheet in which I need to change all dates that
appear this way: 1994 - 1995, to this: (1994 - 1995).

Is there any way I can create a custom format for the latter? Otherwise I
have to go through each cell one by one and change each one individually.

I hope someone can help...

  #5  
Old April 3rd, 2008, 04:40 PM posted to microsoft.public.excel.worksheet.functions
Ivyleaf
external usenet poster
 
Posts: 29
Default Custom formatting

On Apr 4, 1:25*am, Yvonne wrote:
Thanks, it is helpful, but I am relatively new to Excel, and I'm not familiar
with macros. *

The dates are scattered. *I need this:

National Yeast 1950-1951,1955-1957; General Motors 1954-1955; Parker Sheet
Metal 1956-1960; Sun Oil Co., 1965-1986

to look like this:

National Yeast (1950-1951,1955-1957); General Motors (1954-1955); Parker
Sheet Metal (1956-1960); Sun Oil Co., (1965-1986)

We have a database at work that runs reports, and puts all information into
an Excel document. *If the information isn't entered correctly into our
database in the first place, then we are left to clean up the mess in the
reports. *It wastes a great deal of time, and I was hoping there might be a
way to cut back on that time.

Is there a macro for me somewhere out there? *



"Gary''s Student" wrote:
If the data is in a column, then use a helper column. *Say the data is in
column A. *In B1 enter:


="(" & A1 & ")" and copy down.


If you dates are scattered, then a macro is the best approach.
--
Gary''s Student - gsnu200777


"Yvonne" wrote:


I have a very large spreadsheet in which I need to change all dates that
appear this way: 1994 - 1995, to this: (1994 - 1995). *


Is there any way I can create a custom format for the latter? *Otherwise I
have to go through each cell one by one and change each one individually.


I hope someone can help...- Hide quoted text -


- Show quoted text -


Hi Yvonne,

Where you write the example, do the semicolons represent different
cells? i.e. is the data as such:

cell A1: "National Yeast 1950-1951"
cell A2: "General Motors 1954-1955"
cell A3: "Parker Sheet Metal 1956-1960"
cell A4: "Sun Oil Co., 1965-1986"
etc...

or do they run across in a row, or is the whole thing just one big
string in a cell? Shouldn't be hard to write a macro for it, but the
more info we have on the structure of your data te easier it will be.

Cheers,
Ivan.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:53 PM.


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