#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Formatting Cells

Hi,

I have a w/sheet where Column A contains a 4 digit number and Column B An 8
Alphanumeric figure. e.g. below:

A B
0130 MADA2582
0450 MADA2582
1041 MADA2582
2030 MADA2582

The format cells for Column A is set to Custom 0000 so that the 0 is visible.

I want to enter in column C the formula:
=A2&" "&B2

So the figure i want looks like:
0130 MADA2582

BUT, when i do this it changed the figure to:
130MADA2582

How would i go about changing this? so that i can get the figure 0130
MADA2582???

As i need the figure to run a lookup and when i run the look up on 130
MADA2582, it does not pick up the 0130 MADA2582 codes.

Your help would be greatly appreciated

Ryan
  #2   Report Post  
Posted to microsoft.public.excel.misc
Mia Mia is offline
external usenet poster
 
Posts: 101
Default Formatting Cells

Hi

If you use textformat on the firs column instead of "0000" then it works. I
wrote in the numbers in A like this: '0130. The little character before the
numbers give you "text"-formatting.

A (text) B
0130 MADA2582
0450 MADA2582
1041 MADA2582
2030 MADA2582

Then your recieve this: 0130 MADA2582

Hope it will work

Mia


"unouwanme" skrev:

Hi,

I have a w/sheet where Column A contains a 4 digit number and Column B An 8
Alphanumeric figure. e.g. below:

A B
0130 MADA2582
0450 MADA2582
1041 MADA2582
2030 MADA2582

The format cells for Column A is set to Custom 0000 so that the 0 is visible.

I want to enter in column C the formula:
=A2&" "&B2

So the figure i want looks like:
0130 MADA2582

BUT, when i do this it changed the figure to:
130MADA2582

How would i go about changing this? so that i can get the figure 0130
MADA2582???

As i need the figure to run a lookup and when i run the look up on 130
MADA2582, it does not pick up the 0130 MADA2582 codes.

Your help would be greatly appreciated

Ryan

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formatting Cells

=A2&" "&B2

Try instead in C2:
=TEXT(A2,"0000")&" "&B2
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"unouwanme" wrote:
Hi,

I have a w/sheet where Column A contains a 4 digit number and Column B An 8
Alphanumeric figure. e.g. below:

A B
0130 MADA2582
0450 MADA2582
1041 MADA2582
2030 MADA2582

The format cells for Column A is set to Custom 0000 so that the 0 is visible.

I want to enter in column C the formula:
=A2&" "&B2

So the figure i want looks like:
0130 MADA2582

BUT, when i do this it changed the figure to:
130MADA2582

How would i go about changing this? so that i can get the figure 0130
MADA2582???

As i need the figure to run a lookup and when i run the look up on 130
MADA2582, it does not pick up the 0130 MADA2582 codes.

Your help would be greatly appreciated

Ryan

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Formatting Cells

RIGHT("0000" & A2, 4) & " " & B2

--

Rodrigo Ferreira


"unouwanme" escreveu na mensagem
...
Hi,

I have a w/sheet where Column A contains a 4 digit number and Column B An
8
Alphanumeric figure. e.g. below:

A B
0130 MADA2582
0450 MADA2582
1041 MADA2582
2030 MADA2582

The format cells for Column A is set to Custom 0000 so that the 0 is
visible.

I want to enter in column C the formula:
=A2&" "&B2

So the figure i want looks like:
0130 MADA2582

BUT, when i do this it changed the figure to:
130MADA2582

How would i go about changing this? so that i can get the figure 0130
MADA2582???

As i need the figure to run a lookup and when i run the look up on 130
MADA2582, it does not pick up the 0130 MADA2582 codes.

Your help would be greatly appreciated

Ryan



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
Deferring conditional formatting? Pheasant Plucker® Excel Discussion (Misc queries) 14 March 17th 06 08:17 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Conditional formatting...cont. from 9/25 Guenzak Excel Discussion (Misc queries) 4 September 26th 05 10:55 PM
Excel should allow more options for formatting cells rj123 Excel Worksheet Functions 0 July 23rd 05 03:45 AM
How to copy "edge" formatting to other cells. Sam Excel Discussion (Misc queries) 2 July 21st 05 01:23 PM


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