#1   Report Post  
Posted to microsoft.public.excel.misc
KeMet
 
Posts: n/a
Default Cell formatting

I have two colums of cells where I need the decimal point in the value
eliminated. I am importing weekly hours worked and weekly overtime hours
worked from a text file. They are imported in this fashion, 80.00 and 1.18
for overtime. I have to use the custom function to format the data like this:
0080.0000 and 0001.180. I do not need the decimal points (and I don't want to
round the values), but I still need the data as 0080000 and 0001180.
Any help on this is most appreciated.

Thanks,
Kyle
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default Cell formatting

create new helper column and enter:
=TEXT(A1*1000,"0000000")
You could also Copy and Paste-Special Value
to rid yourself of the formula afterwards..
Jim

"KeMet" wrote:

I have two colums of cells where I need the decimal point in the value
eliminated. I am importing weekly hours worked and weekly overtime hours
worked from a text file. They are imported in this fashion, 80.00 and 1.18
for overtime. I have to use the custom function to format the data like this:
0080.0000 and 0001.180. I do not need the decimal points (and I don't want to
round the values), but I still need the data as 0080000 and 0001180.
Any help on this is most appreciated.

Thanks,
Kyle

  #3   Report Post  
Posted to microsoft.public.excel.misc
KeMet
 
Posts: n/a
Default Cell formatting

Thanks, but I can't create another column. I am using this with some payroll
interface, so I need to save the .xls file as a .txt file. If I hide the
columns in excel, they still appear in the text file.

I'll keep trying, thanks.

Kyle


"Jim May" wrote:

create new helper column and enter:
=TEXT(A1*1000,"0000000")
You could also Copy and Paste-Special Value
to rid yourself of the formula afterwards..
Jim

"KeMet" wrote:

I have two colums of cells where I need the decimal point in the value
eliminated. I am importing weekly hours worked and weekly overtime hours
worked from a text file. They are imported in this fashion, 80.00 and 1.18
for overtime. I have to use the custom function to format the data like this:
0080.0000 and 0001.180. I do not need the decimal points (and I don't want to
round the values), but I still need the data as 0080000 and 0001180.
Any help on this is most appreciated.

Thanks,
Kyle

  #4   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Cell formatting

If you follow the second part of Jim's suggestion, you don't need to
keep the additional column. Use the helper column to create the
formatted text, copy the column, then select your original column and
choose Edit/Paste Special, selecting the Values radio button. Delete the
"helper" column, and you're good to go.

In article ,
KeMet wrote:

Thanks, but I can't create another column. I am using this with some payroll
interface, so I need to save the .xls file as a .txt file. If I hide the
columns in excel, they still appear in the text file.

I'll keep trying, thanks.

Kyle


"Jim May" wrote:

create new helper column and enter:
=TEXT(A1*1000,"0000000")
You could also Copy and Paste-Special Value
to rid yourself of the formula afterwards..
Jim

  #5   Report Post  
Posted to microsoft.public.excel.misc
KeMet
 
Posts: n/a
Default Cell formatting

That did it. Thank you so much to the both of you.

Kyle


"JE McGimpsey" wrote:

If you follow the second part of Jim's suggestion, you don't need to
keep the additional column. Use the helper column to create the
formatted text, copy the column, then select your original column and
choose Edit/Paste Special, selecting the Values radio button. Delete the
"helper" column, and you're good to go.

In article ,
KeMet wrote:

Thanks, but I can't create another column. I am using this with some payroll
interface, so I need to save the .xls file as a .txt file. If I hide the
columns in excel, they still appear in the text file.

I'll keep trying, thanks.

Kyle


"Jim May" wrote:

create new helper column and enter:
=TEXT(A1*1000,"0000000")
You could also Copy and Paste-Special Value
to rid yourself of the formula afterwards..
Jim




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
Cell Formatting Conditional On Other Cells Fill Color? [email protected] Excel Worksheet Functions 1 April 5th 06 10:05 PM
Applying conditional formatting to cell based on another cell's in kdesemple Excel Discussion (Misc queries) 1 March 22nd 06 06:37 PM
Conditional Formatting For A Cell Other Than The One With The Form Jim J. Excel Worksheet Functions 2 February 19th 06 07:11 PM
Can you apply split colour formatting to the same cell? Gazzypops Excel Discussion (Misc queries) 4 January 18th 06 06:36 PM
Transfer Cell Formatting for linked cells Scott Excel Discussion (Misc queries) 2 November 23rd 05 11:04 PM


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