当前位置:网站首页>结果填空 购物单(教你用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(手动码字不容易,喜欢的话,点个赞鼓励下我,求鼓励!)


边栏推荐
- Idea uses dev tool to realize hot deployment
- How Visio can quickly generate the same pattern and image matrix
- Writing methods of scientific research papers: add analysis and discussion in the method part to explain their contributions and differences
- 顺序表oj之删除特定的元素
- Methods of gflops and total params of pytorch calculation model
- Example of MySQL processing legacy data
- 博学谷学习记录】超强总结,用心分享 | 常用api
- 冶金物理化学复习 -- 金属电沉积过程中的阴极极化,超电势以及阳极和阳极过程
- openjudge:万年历
- 三大缓存技术--localStorage、sessionStorage、Cookie
猜你喜欢

Using Navicat or PLSQL to export CSV format, more than 15 digits will become 000 (e+19) later

ArcMap地图投影相关操作

GD32F407 移植FreeRTOS+Lwip

NRF51822 回顾总结

How Visio accurately controls the size, position and angle of graphics

ArcGIS Engine开发资源
![[idea plug-in artifact] teaches you how to set all attributes in an entity class with one click of idea](/img/d6/4e69480c5ad5040ee48941ca0fcb37.png)
[idea plug-in artifact] teaches you how to set all attributes in an entity class with one click of idea

Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid

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

Review of metallurgical physical chemistry -- Fundamentals of chemical reaction kinetics
随机推荐
Mysql database index (InnoDB engine)
Openjudge: perpetual calendar
[MySQL] solve the problem of MySQL time zone and 8-hour difference in database time
冶金物理化学复习 -- 金属电沉积过程中的阴极极化,超电势以及阳极和阳极过程
ES6--->箭头函数、类、模块化
操作文档树
分支与循环语句
The way of deep learning thermodynamic diagram visualization
Review of Metallurgical Physical Chemistry - gas liquid phase reaction kinetics
GD32F407 移植FreeRTOS+Lwip
Mutual conversion between latex and word
标准C语言总结1
Mabtis (I) basic use of framework
Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
基于Highcharts平台的桑基图(Sankey diagram)绘制
标准C语言总结2
Openjudge: stone scissors cloth
The Monte Carlo method solves the PI and draws points with turtle, and completes the progress bar problem
Review of metallurgical physical chemistry -- Fundamentals of chemical reaction kinetics
NPM, YRAN, NPX的差异与关系