+ Reply to Thread
Results 1 to 4 of 4

Format part of an alphanumeric code

  1. #1
    Registered User
    Join Date
    10-26-2022
    Location
    Buenos Aires, Argentina
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2209 Build 16.0.15629.20200) 64-bit
    Posts
    2

    Question Format part of an alphanumeric code

    Hi Excellers!
    I've got a column with the following formula: =CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(100,999) that is given me an alphanumeric code for my small business database. I was wondering if there is a way to format the values in the following manner: AA999 (where the letters are bold and the numbers are not.

    I need a code that's kinda complex since I'm handling a vast amount of unique objects but I'd like to be able to identify it faster when I'm done with the inventory database. Any tips are welcome.

    Thanks you, hope you have a wonderful day!
    Cheers

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Format part of an alphanumeric code

    If that's what you want, you will need VBA. Are you OK to use macro-enabled files? If YES, I'll move the thread, if no... you'll need to think again.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    10-26-2022
    Location
    Buenos Aires, Argentina
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2209 Build 16.0.15629.20200) 64-bit
    Posts
    2

    Re: Format part of an alphanumeric code

    Yes please! I'm an absolute beginner with VBA though, but I'll try my best!
    Thank you very much

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Format part of an alphanumeric code

    If you want to format the cell partially, the cell must have String type data,

    So, formula or pure number needs to be converted to String value.

    If that is OK, it should be easy.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Alphanumeric date format
    By Maggie6360 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2015, 11:11 AM
  2. [SOLVED] Need to extract part of a cell that's an alphanumeric (minus sign with number/alpha value)
    By Jaybo7273 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2013, 09:47 AM
  3. Replies: 2
    Last Post: 03-09-2013, 04:30 AM
  4. Generating a 4 part Alphanumeric Sequence
    By Label-makers in forum Excel General
    Replies: 20
    Last Post: 06-06-2012, 07:54 PM
  5. Alphanumeric format
    By limn02 in forum Excel General
    Replies: 3
    Last Post: 12-10-2009, 02:44 PM
  6. Custom Alphanumeric Format
    By tkeith in forum Excel General
    Replies: 1
    Last Post: 07-28-2006, 08:25 PM
  7. [SOLVED] how to format alphanumeric cells as numbers
    By jennifer72401 in forum Excel General
    Replies: 1
    Last Post: 02-09-2006, 02:50 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1