简体   繁体   中英

Excel - how to split cell with delimiter

i want to split the value of the excel cell in two values, but still have them only in one cell. I mean: i have cells with for example 40/50. Many of them. I want to count sum of numbers in front of / and the second sum of numbers behind /. Is it somehow possible without splitting those numbers in two different columns? thx

If all your cells in range A1:A4 are in format x/y ,

  • to sum all x use: =SUM(1*LEFT(A1:A4,FIND("/",A1:A4)-1))
  • to sum all y use: =SUM(1*RIGHT(A1:A4,LEN(A1:A4)-FIND("/",A1:A4)))

both formulas are array formulas, so you should press CTRL + SHIFT + ENTER to evaluate them.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM