设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 3615|回复: 4
打印 上一主题 下一主题

求对一组字符串中部分数据进行计算的公式

[复制链接]
跳转到指定楼层
1#
发表于 2009-10-21 12:23:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 botong 于 2009-10-22 13:50 编辑

103.750000:100::1627207:3232478;20509:28315;77.700000:100::1627207:3232478;20509:28316;77.700000:100::1627207:3232484;20509:28315;77.700000:100::1627207:3232484;20509:28316; 51.750000:100::1627207:28320;20509:28383; 62.500000:100::1627207:28341;20509:28314;46.800000:100::1627207:28341;20509:28315;46.800000:100::1627207:28341;20509:28316; 33.250000:100::1627207:28324;20509:28383;24.900000:100::1627207:28340;20509:28383;24.900000:100::1627207:3232478;20509:28383; 30.500000:100::1627207:28329;20509:28315;22.800000:100::1627207:2329;20509:28316;22.800000:100::1627207:28341;20509:28315;22.800000:100::1627207:28341;20509:28316; 50.750000:100::1627207:3232481;20509:28314;38.000000:100::1627207:3232481;20509:28315;38.000000:100::1627207:3232481;20509:28316; 55.750000:100::1627207:28320;20509:28383;41.700000:100::1627207:3232478;20509:28383;41.700000:100::1627207:3232480;20509:28383; 63.750000:100::1627207:28341;20509:28314;47.700000:100::1627207:28341;20509:28315;47.700000:100::1627207:28341;20509:28316; 42.500000:100::1627207:28320;20509:28314;31.800000:100::1627207:28320;20509:28315;31.800000:100::1627207:28320;20509:28316;31.800000:100::1627207:28341;20509:28314;31.800000:100::1627207:28341;20509:28315;31.800000:100::1627207:28341;20509:28316;31.800000:100::1627207:3232480;20509:28314;31.800000:100::1627207:3232480;20509:28315;31.800000:100::1627207:3232480;20509:28316; 55.750000:100::1627207:28338;20509:28314;41.700000:100::1627207:28338;20509:28315;41.700000:100::1627207:28338;20509:28316;41.700000:100::1627207:3232478;20509:28314;41.700000:100::1627207:3232478;20509:28315;41.700000:100::1627207:3232478;20509:28316; 109.250000:100::1627207:28320;20509:28314;81.900000:100::1627207:28320;20509:28315;81.900000:100::1627207:28320;20509:28316;81.900000:100::1627207:28329;20509:28314;81.900000:100::1627207:28329;20509:28315;81.900000:100::1627207:28329;20509:28316;81.900000:100::1627207:28332;20509:28314;81.900000:100::1627207:28332;20509:28315;81.900000:100::1627207:28332;20509:28316; 59.750000:100::1627207:28320;20509:28315;44.700000:100::1627207:28320;20509:28316;44.700000:100::1627207:3232480;20509:28315;44.700000:100::1627207:3232480;20509:28316; 99.750000:100::1627207:28332;20509:28315;74.700000:100::1627207:28332;20509:28316;74.700000:100::1627207:28341;20509:28315;74.700000:100::1627207:28341;20509:28316; 94.500000:100::1627207:28324;20509:28315;70.800000:100::1627207:28324;20509:28316; 43.750000:100::1627207:28320;20509:28314;32.700000:100::1627207:28320;20509:28315;32.700000:100::1627207:28320;20509:28316;32.700000:100::1627207:28332;20509:28314;32.700000:100::1627207:28332;20509:28315;32.700000:100::1627207:28332;20509:28316;32.700000:100::1627207:28338;20509:28314;32.700000:100::1627207:28338;20509:28315;32.700000:100::1627207:28338;20509:28316; ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 有以上一列数据串,每一行在一个单元格中(在附件中有下载,直接复制到excel中会乱格式),要求编一个公式对这组数据做如下计算:对形如109.250000进行计算,比如除以3然后乘以4,其它部分不变。(注意:每一个串中有多个这样的数。)并且要求计算后数的格式不变,即小数点后保留两位有效数字,然后在其后补四个零。 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 举例:计算前:62.500000:100::1627207:28341;20509:28314;46.800000:100::1627207:28341;20509:28315;46.800000:100::1627207:28341;20509:28316; 计算后: 83.330000:100::1627207:28341;20509:28314;62.400000:100::1627207:28341;20509:28315;62.400000:100::1627207:28341;20509:28316; ---------------------------------------------- 希望各位高手帮忙,不甚感谢,最好能解释一下公式。数字串原始文件点这里下载。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅

点击这里给我发消息

2#
发表于 2009-10-21 12:39:22 | 只看该作者
我按您的建议复制到EXCEL里了,所有的数据都在一个单元格里,那个叫混乱啊……
您还是直接发个工作簿吧
3#
 楼主| 发表于 2009-10-22 13:56:46 | 只看该作者
2# pureshadow
我刚才试了一下还真是乱得很啊,现在我已经上传了附件了,谢谢管理。

点击这里给我发消息

4#
发表于 2009-10-22 15:50:46 | 只看该作者
一个单元格里的字符超过256了,还是分列后计算然后再合并吧
数据》分列》分隔符号
冒号有现成的,分号没有,就在其他里填上。
5#
 楼主| 发表于 2009-10-26 17:04:55 | 只看该作者
4# pureshadow
你说的倒是提供了一个思路,可是分列后如何再合并回来呢?我不会啊。具体怎么操作能不能详细说一下啊?
另外为什么超过256个字节就要分列了呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-11-25 20:36 , Processed in 0.095299 second(s), 29 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表