메인 컨텐츠로 가기

Excel에서 숫자의 모든 자릿수를 합하는 방법은 무엇입니까?

값을 포함하는 셀이 있고 이제 셀의 모든 숫자를 더하고 싶습니다. 예를 들어 셀에 12345 값이있는 경우 1 + 2 + 3 + 4 + 5 계산을 수행하고 값 15를 구합니다. 숫자의 모든 자릿수를 합산하는 좋은 방법이 있습니까? Excel에서?


수식을 사용하여 셀에있는 숫자의 모든 자릿수 합계

숫자를 하나씩 수동으로 추가하지 않고도 다음 수식을 사용하면 셀 합계를 빠르게 얻을 수 있습니다.

1. 결과를 출력하려면 다음 수식 중 하나를 빈 셀에 입력하거나 복사하십시오.

=SUMPRODUCT(1*MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1))
=SUM(INDEX(1*(MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1)),,))

2. 그런 다음 엔터 버튼 키를 눌러 결과를 반환하고 셀 C2를 선택한 다음 채우기 핸들을이 수식을 적용하려는 범위로 드래그하면 각 셀 번호의 자릿수 합계가 표시됩니다.

노트:

  • 위의 공식에서 A2 숫자를 합할 숫자가 포함 된 셀입니다.
  • 숫자에 음수 부호 나 소수점이 있으면 수식에서 #VALUE! 오류.

사용자 정의 함수를 사용하여 셀에있는 숫자의 모든 자릿수 합계

셀 번호의 모든 자릿수를 더하려면 다음 VBA 코드도 도움이 될 수 있습니다.

1. 누르고 ALT + F11 키가 열립니다. Microsoft Visual Basic for Applications 창.

2. 딸깍 하는 소리 끼워 넣다 > 모듈을 클릭하고 다음 코드를 모듈 창.

VBA 코드 : 셀 번호의 모든 자릿수 합계

 Function SumDigits(Number As String) As Integer
'Updateby Extendoffice
Dim x As Integer, C As String
For x = 1 To Len(Number)
C = Mid(Number, x, 1)
If IsNumeric(C) Then SumDigits = SumDigits + C
Next
End Function

3. 그런 다음이 코드를 저장하고 닫고 워크 시트로 돌아간 다음이 공식을 입력합니다. = SumDigits (A2) 빈 셀에 넣은 다음 채우기 핸들을이 수식을 포함 할 셀로 드래그하면 다음과 같은 결과가 나타납니다.


쉬운 기능을 사용하여 셀에서 숫자의 모든 자릿수를 더합니다.

여기서도 유용한 도구에 대해 이야기 할 수 있습니다. Excel 용 Kutools그와 셀의 합계 기능을 사용하면 숫자 내의 모든 자릿수를 빠르게 더할 수 있습니다.

참고 :이것을 적용하려면 셀의 합계, 먼저 Excel 용 Kutools을 클릭 한 다음 기능을 빠르고 쉽게 적용하십시오.

설치 후 Excel 용 Kutools, 다음과 같이하십시오.

1. 결과를 출력 할 빈 셀을 클릭합니다.

2. 그런 다음 쿠툴 > 수식 도우미 > 수식 도우미, 스크린 샷 참조 :

3. 에서 수식 도우미 대화 상자에서 다음 작업을 수행하십시오.

  • 선택 연산 옵션에서 공식 타입 드롭 다운 목록;
  • 그런 다음 셀의 합계 인사말 fromula 선택 리스트 박스;
  • 오른쪽에서 인수 입력 섹션에서 숫자를 합할 셀을 선택하십시오.

4. 그런 다음 Ok 버튼을 클릭하고 채우기 핸들을 셀의 숫자를 합산 할 셀로 드래그합니다. 그리고 각 셀의 모든 숫자가 함께 추가되었습니다. 스크린 샷을 참조하십시오.

Excel 용 Kutools를 지금 다운로드하고 무료로 평가하십시오!


더 많은 관련 기사 :

  • Excel에서 범위의 대각선 합계
  • 산술 계산을 할 때 테이블에서 대각선으로 숫자를 합산해야 할 수도 있습니다. 실제로 Excel에서 대각선 숫자를 합산 할 수도 있으므로 숫자를 하나씩 합할 필요가 없습니다. 이 질문에 대해 더 알고 싶다면 다음 기사를 읽으십시오.
  • 중복 행 결합 및 값 합산
  • Excel에서 다음 스크린 샷과 같이 일부 중복 항목이 포함 된 데이터 범위가 있고 이제 중복 데이터를 결합하고 다른 열의 해당 값을 합산하려는 경우 항상이 문제가 발생할 수 있습니다. 이 문제를 어떻게 해결할 수 있습니까?
  • 열 및 행 기준에 따른 합계
  • 행 및 열 머리글을 포함하는 데이터 범위가 있습니다. 이제 열 및 행 머리글 기준을 모두 충족하는 셀의 합계를 가져오고 싶습니다. 예를 들어 다음 스크린 샷과 같이 열 기준이 Tom이고 행 기준이 Feb 인 셀을 합산합니다. 이 기사에서는이를 해결하는 데 유용한 몇 가지 공식에 대해 설명합니다.
  • Excel에서 1에서 N까지 숫자 합계
  • 대부분의 Excel 사용자의 경우 아래 스크린 샷과 같이 텍스트 문자열의 시작 부분에서 처음 n 개 문자를 삭제하거나 텍스트 문자열 끝에서 마지막 x 개 문자를 제거해야하는 경우가 있습니다. 이 기사에서는 Excel에서이 작업을 빠르고 쉽게 해결할 수있는 몇 가지 유용한 트릭을 소개합니다.

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (26)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Bonjour,
Je cherchais justement cette solution c.à.d. comment faire la somme des chiffres d'un nombre (de 4 chiffres) sur excel et je suis tombé sur ce site. Je suis en profonde admiration devant l'intelligence de certains qui ont trouvé des formules de ouf. Malheureusement, je ne suis pas à ce niveau pour les mettre en pratique. Je me suis dit (car j'aime me parler, comme ça, j'ai toujours raison LOL) que pourquoi chercher compliqué quand on peut faire plus simple et j'ai trouvé une solution qui n'est pas élégante (OK je ne suis pas Einstein) et qui marche. Que veut on de plus ! Je vous la donne ici.
Je prends un exemple avec un nombre à 4 chiffres mais vous pouvez ajouter autant de chiffres que vous voulez. Disons que ce nombre est dans la cellule A2 pour l'exemple :
=STXT($A$2;1;1)+STXT($A$2;2;1)+STXT($A$2;3;1)+STXT($A$2;4;1)
J'ai mis des $ pour pouvoir copier plus facilement et ensuite je n'ai qu'à changer le rang du chiffre, dans mon cas 1, 2, 3, 4 et vous pouvez allez aussi loin que vous voulez
En anglais, vous remplacez STXT par MID et en allemand par TEIL
Si vous voulez la somme du résultat (dans la cellule A3 par ex.), vous faites la même chose en remplaçant A2 par A3.
Voila
Julien
This comment was minimized by the moderator on the site
Já procurei mais não acho por nada eu queira fazer uma planilha que o resultado da soma final reduz o número a 1 dígito. Por exemplo o resultado deu 7+6=13 e ele virasse 1+3= 4
This comment was minimized by the moderator on the site
I want to two digits like: 11.03 and 1.11, so i want to answer is coming 13.02.kindly provide a formula.
This comment was minimized by the moderator on the site
I play KillerSudoku: If I have n number of sums (not the total or answer) but I have say 2 or 3 or more empty cells with number possibilities who's sum totals 15; say, the total is 15 and I have 4 empty squares that all live in the same cage (meaning non-repeating), how do I show all possible sums: ie, 2+3+6+4, or 3+5+1+6, or 3+4+6+1 and so on. Also, I need to sometimes show all possible sums with repeating. Can this be done in Excel
This comment was minimized by the moderator on the site
Hello, Kevin,Maybe the following article can do you a favor:https://www.extendoffice.com/documents/excel/3557-excel-find-all-combinations-that-equal-given-sum.html
Please try, thank you!
This comment was minimized by the moderator on the site
Hello Experts. I have a question. For instance i have 18487.73486. I want a cell to sum 18487 and another cell that would sum the 73486. How do I go about doing it? Will appreciate any response. tia
This comment was minimized by the moderator on the site
Your Solution or the Formula is excellent. Thanks for the quick fix .
This comment was minimized by the moderator on the site
I typed 3 zero in 2nd column and put sum formula i.e. 50 in 1st column and three zero in 2nd column but excel is not working because the zero are going to remove automatically. Could you please help me.
This comment was minimized by the moderator on the site
Hello, Murtuza,
Sorry, I don't get your point, please give more detailed information about your problem, or you can insert a screenshot here.
Thank you!
This comment was minimized by the moderator on the site
How to count number in a cell in excel i.e. for example : 1+1+2+3+4+5+6+7 = 8
This comment was minimized by the moderator on the site
Hi,
Maybe the below article can solve your problem, please check it:
https://www.extendoffice.com/documents/excel/1504-excel-count-letters-in-cell.html
Hope it can help you!
This comment was minimized by the moderator on the site
Thank you so much
This comment was minimized by the moderator on the site
I am trying to find the avg of multipule numbers in a cell, lets say 22,11,18,14,3,6 are all in the same cell is there a way for another cell to display 12.3?
This comment was minimized by the moderator on the site
Hello, john,
To calculate the average of multiple numbers within a cell, please apply the below formula:
=IF(A1="","",ROUND(SUMPRODUCT(--(0&TRIM(MID(SUBSTITUTE(A1,",",REPT(" ",99)),ROW($1:$99)*99-98,99))))/(LEN(A1)-LEN(SUBSTITUTE(A1,",",))+1),2))
Note: the last number 2 in the formula indicates that retain two decimal places after rounding. You can change it to your need.

Please try it, hope it can help you!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations