+ Reply to Thread
Results 1 to 2 of 2

using vba to transform an input number to a form number with formula

  1. #1
    Registered User
    Join Date
    12-06-2019
    Location
    Hong Kong
    MS-Off Ver
    2016
    Posts
    1

    Question using vba to transform an input number to a form number with formula

    cell A1 typed in value is "06-Dec-2019", cell B1 is what user needs to type numbers only, once cell B1 value is typed in let's say "1", then cell B1 will appear as "AB19120601CD" instead of "1"

    AB19120601CD = concatenate("AB",right(year($A$1),2),RIGHT(MONTH($A$1),2),Right(Day($A$1),2),text($B$1,"00"),"CD")

    how can i make the above happen which I can't use format as it runs automatically by cell A1 and cell B1

    pls help ||

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,636

    Re: using vba to transform an input number to a form number with formula

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. transform number in characters
    By paulikk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2015, 09:16 AM
  2. Need a formula to transform a given number to a different number
    By vardani in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-06-2014, 05:33 PM
  3. Data Input Form with number of line items based on user input
    By j_gideon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2013, 02:54 PM
  4. Transform number 1,70 to 1.70
    By ricci1212 in forum Excel General
    Replies: 2
    Last Post: 07-22-2010, 03:12 PM
  5. [SOLVED] Number Transform to Date
    By sotiris_s in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2006, 09:30 AM
  6. [SOLVED] Transform a Cell from Formula to Number
    By Sloth in forum Excel General
    Replies: 4
    Last Post: 07-11-2005, 01:05 PM
  7. Editing Number Input on a User Form
    By Don Wiss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2005, 12:06 AM

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