1. Excel tools/macro/analysis tools/There are indeed similar functions in which the decimal number can be easily converted to binary. However, the fatal disadvantage of this function is that it can only be replaced.
-512 ~ An integer between 511 and beyond this range.
Therefore, we can only use VBA to write an available function.
2.2.alt + F11 orTool/macro/Visual Basic Editor/, Insert the module into the following functions
Function n10to2 (byval B
Use VBA in Excel to convert dollars to renminbi
1, first we open a table as an example. The numerical units in the example are all RMB and we convert them to dollar units.
2, we press ALT + F11 combination shortcut to enter VBE edit it, insert a new module, and in the Code Editor write the following code:
Option Explicit
Sub TOUSD ()
Assume that column A is a social security number (15-bit or 18-bit) since A2.1, the Social Security number is changed to 18 bits, the input array formula:=if (LEN (A2) =15,replace (a2,7,,19) mid ("10x98765432", MOD (SUM (For MID (REPLACE (a2,7,,19), ROW (INDIRECT ("1:17"), 1) * 2^ (18-row (INDIRECT ("1:17"))), one) +1,1), A2)Note: Array formula Input Method: Do not press ENTER after entering the formula, but press Ctrl+shift+enter.2, the Social Security number is changed to 15 bits, enter the fo
Convert the PostgreSQL data table to excel and postgresqlexcel
COPYExchange data between PostgreSQL tables and standard file system files.COPYTOCopy all contents of a tableToOne file, whileCOPYFROMSlaveCopy data from a file to a table (attach the data to the existing content in the table ).
COPY table name TO 'file name .csv 'csv header;
Note: CSV
Open the comma-separated variable (CSV) mode.
HEADER
T
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.