+ Reply to Thread
Results 1 to 5 of 5

Used input function and text but unable to format the number (amt)

  1. #1
    Registered User
    Join Date
    06-09-2024
    Location
    Bahrain
    MS-Off Ver
    2019
    Posts
    2

    Post Used input function and text but unable to format the number (amt)

    I am using the input function to make it easier to prepare documents, but i have a problem when it comes to format the amount as X,XXX.XX, The commas disappear and i dont have a clue from where i can make it look like USD x,xxx.xx , If i dont use text in the cell then i could normally format as i want, but when there is text, for example ="US $ "&INPUT!$C$15 i am unable to format the input which is a number to thousand separator commas and the two digits of cents after it.
    in more than one occasion i have to use text before and after the input function but at the same time I want the input (amount) formatting to be as X,XXX.00, The separators are important.
    I have attached the file explaining the problem.

    thank you and appreciate your help
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,691

    Re: Used input function and text but unable to format the number (amt)

    Welcome to the forum.

    Try this:

    ="US $ "&TEXT(INPUT!$C$15,"0,000.00")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,691

    Re: Used input function and text but unable to format the number (amt)

    Or, without the formula, custom cell formatting:

    "US "_-[$$-en-US]* #,##0.00_ ;_-[$$-en-US]* -#,##0.00 ;_-[$$-en-US]* "-"??_ ;_-@_

    Change the cell to this:

    =INPUT!$C$15
    Last edited by AliGW; 06-09-2024 at 03:50 AM.

  4. #4
    Registered User
    Join Date
    06-09-2024
    Location
    Bahrain
    MS-Off Ver
    2019
    Posts
    2

    Re: Used input function and text but unable to format the number (amt)

    Thank you very much, it worked

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,691

    Re: Used input function and text but unable to format the number (amt)

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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] Unable to input text-box using VBA
    By TildesleyH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2022, 05:06 PM
  2. [SOLVED] Text function with custom number format
    By wally_j in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2016, 03:12 AM
  3. Replies: 3
    Last Post: 06-17-2014, 12:07 AM
  4. Replies: 1
    Last Post: 04-24-2014, 12:25 AM
  5. Using text box input to lookup number and replace based on user input into new column
    By harl3y412 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2011, 03:15 PM
  6. User Form Text Box running Function - How to format number?
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2011, 12:57 PM
  7. Unable to format number in cells
    By Brunel in forum Excel General
    Replies: 3
    Last Post: 09-05-2007, 03:55 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