Excel公式将左数值从数据中分离出来 [英] Excel Formula separate the left numeric values from the data

查看:68
本文介绍了Excel公式将左数值从数据中分离出来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在"K"列中有一些数据从那里我只是想像我在Col"H"中尝试的那样得到左边的字符?使用公式.

I have some data in Col"K" where from i am just trying to get the left characters as i tried in Col"H" using formula.

但是我使用的是= Function(cell,10)之类的Left函数,这不是正确的字符可以大于10或小于10的方式.

But what i used is Left function like =Function(cell,10) that is not the correct way characters can be more than 10 or less than 10.

第一个公式应该是动态的,以获取左侧的数值.第二个公式应复制并粘贴相同的数值,直到下一个值在Col"I"中可用

1st formula should be dynamic to get the left numeric values. 2nd Formula should copy and paste the same numeric values until next value comes as available in Col"I"

我试图做到这一点,但是我能做的就是创建左函数,并且不知道如何动态地开发它.

I tried to make it but what i can do is to create left function and do not know how to develop it dynamic.

任何帮助将不胜感激.

表格链接 https://docs.google.com/spreadsheets/d/1nJZELZZZZFZ17Fx0Fedit?usp = sharing

推荐答案

此公式应能完成工作.

[J2] =IFERROR(TRIM(LEFT(L2,FIND("-",L2)-1)),J1)

请注意,如果放在第1行并且L1中没有破折号,它将失败.

Note that it will fail if placed in row 1 and there is no dash in L1.

这篇关于Excel公式将左数值从数据中分离出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆