Как извлечь числа только из текстовых строк в листе Google?
Автор: СяоянПоследнее изменение: 2020 июля 05 г.
Если вы хотите извлечь только числа из списка текстовых строк, чтобы получить результат, как показано на следующем снимке экрана, как вы могли бы выполнить эту задачу в листе Google?
Извлекать числа только из текстовых строк в листе Google с формулой
Следующая формула может помочь вам завершить эту работу, пожалуйста, сделайте следующее:
1. Введите эту формулу: = РАЗДЕЛЕНИЕ (НИЖНИЙ (A2); «abcdefghijklmnopqrstuvwxyz»)в пустую ячейку, в которую вы хотите извлечь только числа, а затем нажмите Enter key, все числа в ячейке A2 были извлечены сразу, см. снимок экрана:
2. Затем выберите ячейку формулы и перетащите дескриптор заполнения вниз к ячейкам, к которым вы хотите применить эту формулу, и все числа были извлечены из каждой ячейки, как показано на следующем снимке экрана:
Улучшите свои навыки работы с Excel с помощью Kutools for Excel и почувствуйте эффективность, как никогда раньше. Kutools for Excel предлагает более 300 расширенных функций для повышения производительности и экономии времени. Нажмите здесь, чтобы получить функцию, которая вам нужна больше всего...
This comment was minimized by the moderator on the site
3년 전에 이렇게 유익한 함수를 공유해 주셨네요. 너무 감사합니다.
너무나 감사해서 혹시 저 같은 경우가 있으신 분들을 위해서 오늘 제가 응용한 함수도 공유하고 갑니다.
Gas Super VIC (G_22GD_2BD_NF )
VIC Loyalty Plus (E_19GD_3BD)
이런 조합에서 숫자만 추출해서 각 숫자의 합을 내야했었는데
=SPLIT (LOWER (A2); "abcdefghijklmnopqrstuvwxyz") 여기에서
=SPLIT (LOWER (A6), "abcdefghijklmnopqrstuvwxyz ()_") 제가 제외하고자 하는 기호도 포함시켰더니 깔끔하게
22 2
19 3
이라는 결과를 얻었고 sum 함수를 접목해서 24, 22 라는 숫자를 얻을 수 있었습니다.
감사합니다
This comment was minimized by the moderator on the site
this is useful, but doesn't fully solve my problem. When I use this formula, punctuation marks and non-Latin characters are also treated as numbers. Is the best way around this to expand the list of characters in the quotation marks as currently written? My approach for now has been to try and clean the data of any existing punctuation, but the stuff written in Cyrillic is necessary information that I cannot remove.
This comment was minimized by the moderator on the site
Hello,
If there are some other punctuation marks and non-Latin characters in your text strings, you can apply this formula to extract the numbers only:
=REGEXREPLACE(A1,"\D+", "")
Hope it can help you, thank you!
This comment was minimized by the moderator on the site
Hi santhosh,
Yes, as you said, this formula only can extract all the numbers into one cell.
If you have any other good formulas, please comment here.
Thank you!