Rounding numbers to millions with the dollar sign in InDesign

I've been struggling with this problem for over a year now and I need to start asking some experts. I have several large files that have a lot of big numbers ($millions) excellent and I need to cut them to fit into smaller cells by rounding to the millionth closest in InDesign CC. So instead of $23,564,950.00 I need $23.6 Mr. the layout of the import version does not format. It is possible to wright is a script for this? I have not found a way to do this with styles.

This isn't what you asked

If millions are made optional you get 0.8 against 817 000 and 880 000 0.9:

(function(){
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = '(?<=[$])(?:\\d{1,3},)?\\d{3},\\d{3}(?:\\.\\d\\d)?';
    var found = app.documents[0].findGrep();
    for (var i = found.length-1; i >= 0; i--) {
        found[i].contents = (found[i].contents.replace(/,/g,'').replace(/\.\d\d/,'')/1000000).toFixed(1)+'M';
    }
}());

P.

Tags: InDesign

Similar Questions

  • Basic: what is the dollar sign ($) to an average of name of column?

    Periodically, I see dollar signs in the column names in the Oracle tables. For example, when I create a LOB, the LOB segment often ends in a dollar sign (or two). Sometimes when a developer creates an object, I see some of the field namess have dollar signs at the end of their.

    What is the dollar sign?

    Which means two dollar signs?

    Just curious... they seem to function as normal characters.

    These are normal characters. But Oracle (and other vendors) frequently use characters such as $ who normally do not use normal developers to create agreements around table names.

    For example, Oracle provides a number of data dictionary tables that use x$, v$ and gv$ as prefixes. There is nothing inherently special about these prefixes. But they convey useful information for users of these systems (x$ views are undocumented, v$ views provide information about activity on the local instance, gv$ views provide information about the activity on all instances of a RAC cluster). And using these sorts of prefixes prevents confusion between the tables of the application and the Oracle tables. Many applications, for example, have a table in a SESSION. With the prefix $ V for the Oracle format V$ SESSION table makes it easy confusion to have two tables with the same named.

    Justin

  • Format of column with the percent sign (%)

    Y at - it shaped the column put percent signs (%)?

    Currently, one of the fields in the report shows a number, for example "3.75", but we must add the percent (%) sign, for example "3.75%".

    I found the following:
    * To view '$5 234,10', I use "FML999G999G999G999G990D00", these formats with a dollar sign ($) and two decimal places.
    * To display "-5,234.10", I can use "S999G999G999G999G990D00", these formats with the sign (+) or (-) and two decimal places.

    However, I can't find how to add the percent (%) sign...

    -Frank

    Hello

    You can specify a normal number format, and then in the Expression of HTML (in the attributes column) you enter in the ex #COLUMN #%

    Kind regards
    Dimitri
    ----------------------------------
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Ignore the dollar sign and comma

    Can someone help me please. I have two fields that perform calculations based on what a user entered for a value of homes. Basically I want to ignore the dollar signs and commas if they put in the value of the homes. So if the user enters $120,000.00 I still want the value to be calculated even if he has the dollar sign and the decimal point in it... Any ideas?




    Try oldHomeChange not call in init()

  • Windows media center analysis drops channels with the call sign not in the guide

    I'm trying to find the right place to report this problem.

    When library scanned for channels recently that he hasn't found a bunch of DTT hd (clearqam) who are present and unencrypted.

    Scanning with the help of the application of the tv tuner has revealed that the channel was present and unencrypted.

    He showed that the channels have call signs which were not present in the digital guide. that is a call sign was "KPHO HD" when the digital guide for the channel list KPHODT

    I had checked in the list of all channels that find the Media Center and the numbers were not present in media center.

    This seems to be a bug because the channel should be found even if no digital guide for the channel is found.

    The solution is to locate the actual channels by another application.

    Add channels with the guides Add missing channels

    Change the channel to have the correct list and the channel number.

    Check out these links

    TV on your computer: understanding and TV tuners TV signals:
    http://windowshelp.Microsoft.com/Windows/en-us/help/aa79e7b4-E423-4459-ad22-1c240a8ffcd51033.mspx

    TV signals that are supported by Windows Media Center:
    http://windowshelp.Microsoft.com/Windows/en-us/help/ef5b8360-958c-425B-9529-2922167e78631033.mspx

    The transition to digital TV and Windows:
    http://windowshelp.Microsoft.com/Windows/en-us/help/4d88063d-8842-42d2-B699-0fdce8249e531033.mspx

    Set up a TV signal in Windows Media Center:
    http://windowshelp.Microsoft.com/Windows/en-us/help/589879da-b5a9-4E8F-b43c-c5eb99290e8d1033.mspx

  • Using the Dollar sign ($) in an implementation of the user-defined function

    Hi all

    Just a quick question: how would you use a dollar sign ($) in the (Oracle) implementation of a user function? I ask because the table name that I use in the application happens to contain a dollar sign (I$ _FACT_SALES) and post the results I get now, ODI bed the $ as a reference to a variable, the sign $ so my name removed from the table during execution (I_FACT_SALES). Is there something like a backslash or some other character that could be inserted before the $ for him be part of the name of the table?

    Any response would be greatly appreciated.

    Thank you very much
    Marco

    You have 3 options:

    1.) try using the tablename parameter in the following quotations: ' MY$ TABLE "or maybe MY$ $TABLE using double symbol $
    or
    2) 2) I found this snippet: odiRef.getInfo (\\u0022DEST_WORK_SCHEMA\\u0022) + \\u0022.\\u0022,\\u0022\\u0022)?. "So on these lines, so that you can use \\u0022 as a symbol.
    You can see the similar problem/solution/explanation
    Re: Expression regular wierdness - problem with the character $

    or
    3.) change the prefix work Tables in the topology manager > physical schema > Your_Schema
    E$ _, $ CAN, I have$ _ something like ERR_, SRC_, TD4100

    Published by: Ace2 on December 2, 2009 09:57

  • New tab page as a tab (with the plus sign next to the tabs) open rather than below as a button to open a new page in the tab?

    Alrighty, the Firefox on my laptop (und such that she has always been with Firefox for me) has the "Open a new tab" button as a tab himself. Always to the right of the tabs I have open und is smaller with only one more sign on this subject. (+) I hit that, bam, a new tab page opens upward, always with the + page to the right to open another tab, if I want to.

    Yet, on the desktop that I use currently, this option isn't here. Instead, Open a button tab is a real personal touch I can move it anywhere near the bar of the browser, much as I have with the: start a conversation, current downloads, bookmark, home, options, privacy, etc... buttons.

    I like the feature to open a new tab with Firefox on my laptop but not on my desktop. However, I can't find anything on how to open a new tab appears with the real tablets themselves where it is conveniently next to the tab I'm on that, rather than being a button where I have to go to one side or the other of my screen to get a new tab to open...

    How do I change it?

    The image I have uploaded, 'B', this is what is on my desk, 'A' is what is on my laptop. "A" is what I want on my desktop.

    Don't know what you're going with "expected normal behavior." I was asking how to pass from one to the other, in this case 'B' to 'A' in regards to my image is concerned. But, in any case, go out of your first line "the new tab button displays a button"+"when the button is on the tab bar", it's answered my question without answering it directly.

    I asked how to get from one to the other, I know that both are possible. Which... answer my question would have been:

    Just drag the new customizable tab to the tabs above button, not the toolbar with the browser bar, etc. below.

    Behavior is not what I was asking, I was wondering how to change from one to the other. But thanks, move the button to the top with the tabs is what has changed for me in what I wanted.

  • Why can't I just open a new tab with the "Plus" sign or "command-T"?

    If I want to open a new tab, I either press 'Command T' or select 'New tab' in the file menu, or click on the little "plus" sign in my tab bar - right? None of them work. What Miss me?

    This problem is Firefox on your Mac?

    Perhaps users have discovered that this problem is caused by led modules, for example a plugin Conduit and/or an extension "Community Toolbar".

    You can check and disable the extensions on page modules. Either:

    • Command + shift + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then, when in doubt, turn off.

    Often, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    What helps with the button "+"? If so, you can name the specific extension that caused the problem?

    You can also see the Plugins page modules. You can never use 'activate' to disable plugins that you do not usually use.

  • 'Something wrong with the credentials' sign in error

    When I try to recover my gamertag, it says "sorry, but there is something wrong with the credentials you use to connect." How can I fix it?

    Hello

    Answers has no influence on the XBox or XBox Live must
    contact with them.

    XBox - Support
    http://support.Xbox.com/en-us/pages/default.aspx

    XBox - Contact us (support)
    http://support.Xbox.com/en-us/contact-us

    XBox - Support Forums - and my XBox (top-right)
    http://forums.Xbox.com/

    Xbox technical support phone number

    • Toll-free: (800) 4MY-XBOX or (800) 469-9269

    XBox LIVE - Service status
    http://support.Xbox.com/en-us/Xbox-Live-status

    Manage the XBox Live account
    http://support.Xbox.com/en-us/billing-and-subscriptions/account-management/Xbox-Live-account-management

    XBox Live Sign-in problems
    http://support.Xbox.com/en-us/billing-and-subscriptions/Windows-Live-ID/Xbox-Live-sign-in

    ==================================================

    If you have problems connecting with the Microsoft Account (formerly
    Windows Live ID) and then check in this forum. (This thread has been
    moved on this forum and a Moderator Microsoft should be along
    to help.
    )

    Answers - Hotmail, Messenger, and SkyDrive (and all things Windows
    Live webcam) - Microsoft - Forum login and logout account.
    http://answers.Microsoft.com/en-us/windowslive/Forum/LiveID-signin

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to search files of names that contain the dollar sign ($)?

    I typed "$" in the search box and all the files were returned. I tried------$ and no items found.

    Hello

    Use the wildcards * and?

    * means 'everything' or 'all '.

    ? means 'any character a' then? We hear every two characters and so on.

    So * $*. * would find all the names of file with a $ in the name with any extension.

    ?$*.? XE'd find filenames with characters 1 or not before the $ and with the
    extensions that contain characters 1 or not before a xe as .axe, .3xe or just in. XE.

    Tips for finding files
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-finding-files

    How to use advanced search in Vista Options
    http://www.Vistax64.com/tutorials/75451-advanced-search.html

    How to restore the page button on the Start Menu after installing Vista SP1
    http://www.Vistax64.com/tutorials/145787-Search-start-menu-button-restore-after-SP1.html

    How to restore the context Menu item search after installing Vista SP1
    http://www.Vistax64.com/tutorials/134065-search-context-menu-item-restore-after-Vista-SP1.html

    How to create a shortcut on the desktop search in Vista
    http://www.Vistax64.com/tutorials/126499-search-desktop-shortcut.html

    ----------------------------------------------------------

    Win Key F opens advanced search

    Searching in Windows Vista, part 1
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-1-secrets-of-the-search-box

    Part 2
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-2-Start-menu-and-control-panel-search-tips

    Part 3
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-3-using-advanced-search-for-those-hard-to-find-files

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Numbers in TOC with the release of DITA in HTML5

    Hello

    Very new to FrameMaker. I'm trying to publish a ditamap reactive HTML5 in 2015 FM. When I do, the TOC is numbered (see image). The numbers do not appear in a DPF file. Anyone know how I can disable this option? I can't find it in the settings. I feel that there should be a simple solution.


    toc.numbers.png


    Thank you!

    Yes, you can exclude the FrameMaker paragraph styles auto-numeros in the output of HTML5:

    1. Open the pod to publish to > file > publish.
    2. Select "Responsive HTML5."
    3. Right-click on 'Responsive HTML5' and select 'change settings '.
    4. Open the tag 'Style Mapping'.
    5. Select the paragraph style that you want to change (for example, "heading 1").
    6. The value "AutoNumber: ' to 'ignore '.
    7. Click "save and close".
    8. Republish.

    This should do the trick.

    See also section of the online help of FrameMaker 2015 on this setting here.

    Let us know if it worked for you :-)

  • How to add numbers like these on the text and images Indesign

    Hi, I would like to know how this is possible (to add numbers with the black circle to refer to an image on the text), when I copy paste I get the number I guess it's a kind of ascii?

    Thank you

    img.png

    There are some fonts with numbers, but they have a limit on numbers.

    I would create

    1. Paragraph with your desired font, size, and white color style.
    2. Create an object with fill blach and in paragraph style select step 1 created a style.
    3. Draw a circular text frame, apply the style of the object and write the number in there.
    4. Copy the circle and then insert the tool in the desired location and paste it into the text.
    5. Lift the text by clicking the ESC key, paste it on the image.
    6. Adjust the vertical position of the text through a style of object > anchored the parameters of the framework.
  • Is there a known problem with the quick keys in InDesign CC?

    More specifically, with the quick key to justify the text/paragraphs to the left.

    Shift + command C = works

    SHIFT + R = work order

    Shift + command L = does not work

    Any information would be appreciated.

    Thank you in advance.

    You are on a Mac.

    Open system preferences > keyboard > shortcuts > Services. Go to the Google search and uncheck the box. He would steal your keystrokes at the keyboard.

  • change the dollar sign to pound sign on button 4

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    If you use the UK keyboard, press SHIFT + 3.

    If you use the keyboard, with NumLock on, hold down the ALT key and type 156 on the keyboard. When you release the ALT key, the symbol of the book is displayed.

    You can also change your keyboard type in Windows 7.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP

  • How to auto-off rounded af:inputText liaison with the data type Double?

    Hello Experts,

    If a component af:inputText is bind with a field whose data type is Double I saw if I enter 12.0 in the text field, and then it changes automatically to 12. Another example: 12,010 turns into 12.01.

    My requirement is to maintain the value that it has been seized. But the validation client side of the field, that ADF provides by default, should be present. I mean that ADF throws the error message if I get 12a.01; as it is not a Double.

    How can I achieve this?

    Any pointer would be vary useful.

    JDeveloper version: 11.1.1.6.0

    No, what I mean is that if you keep the zeros on the right, the data type is not a Double.

    Once you save 12.010 and read it again, you will see zero residue. You would see only the zero if you or the other say the number still show for example 3 fraction digits or if you store the value as a string that will store the entry as is and use a regular expression validator to ensure that only valid numbers are entered.

    In the first case ever number has 3 digits of fraction for example 12-> 12.000 and 12.010-> 12.010

    In summary, you will need to decide which way to go. If the data type must be Double, then there is no zero leakage or you must use the minFractionDigits which will always use the zero leak until the number of spezified. If the does not like what you have to store strings.

    Timo

Maybe you are looking for