3229_zh-TW
將數字數據轉換為字符我必須將幾個數據類型列導入jmp作為數字(例如,編碼1-4)。我想將數字轉換為更有意義的字符。例如,在標有“SITE”的列中,我想進行以下更改:
1 == DL
2 == SL
3 == KA
4 == MP
是否應該在公式編輯器中使用一系列IF語句完成,或者是否有更簡潔的方法。如果我使用IF語句,那麼如何刪除原始數字編碼列。提前致謝。Re:將數字數據轉換為字符如何列,重新編碼(菜單選項,而不是公式)。這可以在適當的位置,在另一列中或在公式中交換值。Re:將數字數據轉換為字符
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-family:Arial;”>我認為“匹配”功能
會最好的。 只需創建一個名為SITE的新列,然後
使用以下公式(替換:第1列與您的參考
柱)。
匹配(:第1列,
style =“font-family:Arial;”>
1,“DL”,
2,“SL”,
3,“KA”,
4,“MP”
);
style =“font-family:Arial;”>
如果要將其設為腳本,請執行以下操作:
DT
style =“font-size:10pt; font-family:”Courier New“; color:navy;”> =
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“;顏色:rgb(0,0,221);”>當前
數據表
style =“font-size:10pt; font-family:”Courier New“; color:black;”>()
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>;
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:black;”> site_col
style =“font-size:10pt; font-family:”Courier New“; color:navy;”> =
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
DT
style =“font-size:10pt; font-family:”Courier New“; color:navy;”> <<
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
風格=“”>
style =“font-size:10pt; font-family:”Courier New“;顏色:rgb(0,0,221);”>新的
柱
style =“font-size:10pt; font-family:”Courier New“; color:black;”>(
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:purple;”>“SITE”
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
風格=“”>
字符
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
風格=“”>
公稱
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
風格=“”>
式 (
style =“font-size:10pt; font-family:”Courier New“;顏色:rgb(0,0,221);”>匹配
style =“font-size:10pt; font-family:”Courier New“; color:black;”>(
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>:
style =“font-size:10pt; font-family:”Courier New“; color:black;”> Column
1
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
風格=“”>
style =“font-size:10pt; font-family:”Courier New“; color:teal;”> 1
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:purple;”>“DL”
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
風格=“”>
style =“font-size:10pt; font-family:”Courier New“; color:teal;”> 2
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:purple;”>“SL”
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
風格=“”>
style =“font-size:10pt; font-family:”Courier New“; color:teal;”> 3
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:purple;”>“KA”
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
風格=“”>
style =“font-size:10pt; font-family:”Courier New“; color:teal;”> 4
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>,
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:purple;”>“MP”
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
)
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
風格=“”>
)
style =“font-size:10pt; font-family:”Courier New“; color:black;”>)
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>;
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; font-family:”Courier New“; color:black;”> site_col
style =“font-size:10pt; font-family:”Courier New“; color:navy;”> <<
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
刪除公式
style =“font-size:10pt; font-family:”Courier New“; color:navy;”>;
style =“font-size:10pt; font-family:”Courier New“; color:black;”>
style =“font-size:10pt; line-height:115%; font-family:”Courier New“; color:black;”> dt
style =“font-size:10pt; line-height:115%; font-family:”Courier New“; color:navy;”> <<
style =“font-size:10pt; line-height:115%; font-family:”Courier New“;顏色:黑色;”>
刪除列 (
style =“font-size:10pt; line-height:115%; font-family:”Courier New“; color:navy;”>:
style =“font-size:10pt; line-height:115%; font-family:”Courier New“; color:black;”> Column
1 )
style =“font-size:10pt; line-height:115%; font-family:”Courier New“; color:navy;”>;
Comments
There are no comments yet