[英]Excel formula to extract number from a alphanumeric cell with multiple conditions
[英]Unable to extract a portion of text upto a number from a cell using excel formula
我在excel文件的不同單元格中只有幾個字符串。 在每個單元格中,字符串是字母和數字的組合。 我想使用Excel公式文本的一部分,直到它到達細胞中的任何號碼,單獨作為在Range("A1")
包含I spent 30 dollars for nothing
,我希望得到高達數部分30
這是I spent
。 更具體地說,我希望使用任何excel公式獲得像ColumnB
一樣的部分(第一部分用數字分隔)。
ColumnA ColumnB
I spent 30 dollars for nothing I spent
His ID has changed from 2341 to 2435 His ID has changed from
假設您的數據在A2
單元格中,
=LEFT(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789")-1))
該公式將提取您在問題中提到的任何數值之前的文本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.