numerical prefix?

psalm60nine

New Member
Joined
Nov 28, 2005
Messages
4
is it possible to format a cell so that if any letter is entered, it will display with a numerical prefix?

I want the number "65" to appear before an entered letter.
example:
enter "M" . . . . display "65M"

anyone got anything?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473
Welcome to MrExcel - you can Custom format the cell - Format/Cells/Custom - with

"M"0
 

psalm60nine

New Member
Joined
Nov 28, 2005
Messages
4
I know how to do that, but what I'm trying to do is the opposite of what you explained.

I'll be entering a column of different letters, but I want the number "65" before all the different letters.

ex:
65M
65F
65T
65X

I'm assuming if it is possible, I'll have to format the cell, and enter a custom formula . . . I'm just not sure what to enter there though.
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,344
Office Version
  1. 365
Platform
  1. Windows
Do you mean that if A was entered then 65A would be displayed?

If so I don't think this is possible using just a format.

The only way I can think of would be using VBA.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,002
Messages
5,834,821
Members
430,324
Latest member
bosphoruskid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top