Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Link loses formatting

I have two cells, the first is suppose to be four characters and the second
is suppose to be six. These two cells are combined into a third cell.

Sometimes people don't enter the full six digits so I changed the cell
formatting so that it pre-fills zeros when people forget.

However when these are copied over to the new cell the pre-filled zeros are
lost.

The formula in the third cell is ...

=IF(B10="","",$B$2&B10)

If B2 is 1234 and B10 is 000123 I would like the new cell to be 1234000123
but it only shows 1234123 and loses the pre-filled zeros.

Does any of this make sense?

Does anyone have any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Link loses formatting

=IF(B10="","",$B$2&text(B10,"000000"))

Do you need =text() around the B2, too?

FrankM wrote:

I have two cells, the first is suppose to be four characters and the second
is suppose to be six. These two cells are combined into a third cell.

Sometimes people don't enter the full six digits so I changed the cell
formatting so that it pre-fills zeros when people forget.

However when these are copied over to the new cell the pre-filled zeros are
lost.

The formula in the third cell is ...

=IF(B10="","",$B$2&B10)

If B2 is 1234 and B10 is 000123 I would like the new cell to be 1234000123
but it only shows 1234123 and loses the pre-filled zeros.

Does any of this make sense?

Does anyone have any ideas?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Link loses formatting

THAT'S EXACTLY WHAT I NEEDED !!!!!!!!!

"Dave Peterson" wrote:

=IF(B10="","",$B$2&text(B10,"000000"))

Do you need =text() around the B2, too?

FrankM wrote:

I have two cells, the first is suppose to be four characters and the second
is suppose to be six. These two cells are combined into a third cell.

Sometimes people don't enter the full six digits so I changed the cell
formatting so that it pre-fills zeros when people forget.

However when these are copied over to the new cell the pre-filled zeros are
lost.

The formula in the third cell is ...

=IF(B10="","",$B$2&B10)

If B2 is 1234 and B10 is 000123 I would like the new cell to be 1234000123
but it only shows 1234123 and loses the pre-filled zeros.

Does any of this make sense?

Does anyone have any ideas?


--

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
Copying tab loses formatting Brad E. Excel Worksheet Functions 7 October 9th 09 11:04 AM
copy/paste loses formatting Excel_VBA_Newb Excel Discussion (Misc queries) 0 July 28th 09 11:13 PM
Dynamic Picture defined by Name using a formula loses link when sa Mines_a_pie Excel Worksheet Functions 0 September 7th 07 05:06 PM
Macro that loses formatting [email protected] Excel Programming 0 March 19th 07 10:45 PM
Excel workspace loses formatting Snarf Excel Discussion (Misc queries) 3 March 16th 06 03:47 PM


All times are GMT +1. The time now is 09:55 PM.

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"