当前位置:网站首页>结果填空 购物单(教你用Excel解决)
结果填空 购物单(教你用Excel解决)
2022-07-28 05:19:00 【小白鼠零号】
小明刚刚找到工作,老板人很好,只是老板夫人很爱购物。老板忙的时候经常让小明帮忙到商场代为购物。小明很厌烦,但又不好推辞。
这不,XX大促销又来了!老板夫人开出了长长的购物单,都是有打折优惠的。
小明也有个怪癖,不到万不得已,从不刷卡,直接现金搞定。
现在小明很心烦,请你帮他计算一下,需要从取款机上取多少现金,才能搞定这次购物。
取款机只能提供100元面额的纸币。小明想尽可能少取些现金,够用就行了。
你的任务是计算出,小明最少需要取多少现金。
以下是让人头疼的购物单,为了保护隐私,物品名称被隐藏了。
** 180.90 88折
** 10.25 65折
** 56.14 9折
** 104.65 9折
** 100.30 88折
** 297.15 半价
** 26.75 65折
** 130.62 半价
** 240.28 58折
** 270.62 8折
** 115.87 88折
** 247.34 95折
** 73.21 9折
** 101.00 半价
** 79.54 半价
** 278.44 7折
** 199.26 半价
** 12.97 9折
** 166.30 78折
** 125.50 58折
** 84.98 9折
** 113.35 68折
** 166.57 半价
** 42.56 9折
** 81.90 95折
** 131.78 8折
** 255.89 78折
** 109.17 9折
** 146.69 68折
** 139.33 65折
** 141.16 78折
** 154.74 8折
** 59.42 8折
** 85.44 68折
** 293.70 88折
** 261.79 65折
** 11.30 88折
** 268.27 58折
** 128.29 88折
** 251.03 8折
** 208.39 75折
** 128.88 75折
** 62.06 9折
** 225.87 75折
** 12.89 75折
** 34.28 75折
** 62.16 58折
** 129.12 半价
** 218.37 半价
** 289.69 8折
需要说明的是,88折指的是按标价的88%计算,而8折是按80%计算,余者类推。
特别地,半价是按50%计算。
请提交小明要从取款机上提取的金额,单位是元。
答案是一个整数,类似4300的样子,结尾必然是00,不要填写任何多余的内容。
答案
5200
Excel做法
将上面的数据复制到Excel中,发现一行的三个数据结果都在一个单元格中,这不是我们想要的。

我们选中所有的A单元,单击“数据”,选择其下的“分页”,跳出对话框要你给出分页的条件,这里很明显三个数据间是靠空格来区分的,所有我们选择空格后,点击“完成”。




我们还要对中文“折”和“半折”进行处理使其变为数据。我们选择B单元所有数据,按住Ctrl+h,跳出替换框,在查找中输入“折”,替换中输入“ ”(空格),点击“全部替换”,就完成了对“折”字的替换,同理你也能完成对“半折”的替换。


需要注意的是“9折”被替换成了9,我们想要的“9折”应该表示为“90”,这里我没办法了,只能手动替换了。替换后,在D1中输入“=B1*C1/100”;按回车后,下拉D1至D50,就完成了每个商品打折的计算。


最后我们要完成求和,选中D单元所有数据,点击“公式”,再点击“自动求和”,就完成了。注意题目要求的是整数,所有最后答案是5200(手动码字不容易,喜欢的话,点个赞鼓励下我,求鼓励!)


边栏推荐
- Openjudge: find the first character that appears only once
- GD32F407 移植FreeRTOS+Lwip
- js数据类型检测与修改检测
- openjudge:判断字符串是否为回文
- openjudge:找出全部子串位置
- Delete specific elements in order table OJ
- 三大缓存技术--localStorage、sessionStorage、Cookie
- new,let,var,const以及暂时性死区,xml和json的区别
- 冶金物理化学复习 --- 气-液相反应动力学
- Openjudge: maximum span of string
猜你喜欢

Canvas绘图1

Review of metallurgical physical chemistry -- Fundamentals of metallurgical reaction kinetics and characteristics of multiphase reaction kinetics

GIS领域竞赛整理(不完全统计)

Review of metallurgical physical chemistry --- electrodeposition and reduction process of metals

DOM操作的案例

A file upload tool website written by individuals

顺序表的增删查改

Idea configures the service (run dashboard) service, and multiple modules are started at the same time

You must configure either the server or JDBC driver (via the ‘serverTimezone)

Review of metallurgical physical chemistry --- liquid liquid reaction kinetics
随机推荐
C语言回顾(指针篇)
Review of Metallurgical Physical Chemistry - gas liquid phase reaction kinetics
Openjudge: matrix multiplication
函数基础知识以及特殊点
日期类及其基本功能的实现
openjudge:过滤多余的空格
Openjudge: find all substring positions
冶金物理化学复习 --- 金属的电沉积,还原过程
Writing methods of scientific research papers: add analysis and discussion in the method part to explain their contributions and differences
openjudge:字符串最大跨距
JVM notes 3: class loading and bytecode Technology
Collection of architectural design considerations
标准C语言学习总结9
【面试题】防抖和节流
树莓派串口
openjudge:石头剪刀布
ArcMap连接表格(Join)相关问题整理
Leetcode 随即链表的深拷贝
ArrayList multithreading security solution
openjudge:大小写字母互换