excel查找一列重复项

How can you get the last number in an Excel column? I needed to do that in one of my sample files, so here's the formula that I used. Then, someone asked me how to get the last item (text or number) from a column, so there's a formula for that too.

如何获得Excel列中的最后一个数字? 我需要在一个示例文件中执行此操作,因此这是我使用的公式。 然后,有人问我如何从列中获取最后一个项目(文本或数字),因此也有一个公式。

带数字的栏 (Column with Numbers)

I'm updating my Excel Weight Tracker files, which were created long before Excel introduced named tables.

我正在更新我的Excel Weight Tracker文件 ,这些文件是在Excel引入命名表之前创建的。

Switching to tables has made it easier to show a summary on the dashboard. The old dynamic ranges aren't needed now - we can just refer to table columns instead.

切换到表格可以更轻松地在仪表板上显示摘要。 现在不再需要旧的动态范围-我们可以只引用表列。

The WeightData table, shown below, has columns where you enter the date and your weight every week.

如下所示,WeightData表具有用于输入日期和每周体重的列。

There is also a Dashboard sheet in the workbook, and I want the latest weight to show on the Dashboard.

工作簿中还有一个“仪表板”工作表,我希望最新的权重显示在仪表板上。

What formula would you use to show that latest weight on the Dashboard sheet? My formula is below, and you might use a different solution.

您将使用什么公式在“仪表板”表上显示最新重量? 我的公式如下,您可能使用其他解决方案。

获取最后的号码 (Get the Last Number)

The new dates and weights are entered at the end of the table, so I used the LOOKUP function on the Dashboard, to get the last number from the Weight column.

新的日期和权重在表的末尾输入,因此我使用了仪表板上的LOOKUP函数 ,从“权重”列中获取了最后一个数字。

=LOOKUP(9.99999999999999E+307, WeightData[Wt])

= LOOKUP(9.99999999999999E + 307,WeightData [Wt])

那是多少钱? (What's That Number?)

According to Excel's specifications, that strange number, 9.99999999999999E+307, is the largest number that can be typed into an Excel cell.

根据Excel的规范,该奇数9.99999999999999E + 307是可在Excel单元格中键入的最大数字。

The LOOKUP function won't find that in the weight column (I hope!), so the formula returns the last number it finds in that column.

LOOKUP函数不会在权重列中找到该数字(我希望!),因此该公式将返回它在该列中找到的最后一个数字。

To see this formula, and all the others, get one of the Weight Tracker files - either the Pounds/Kilos version, or the Stone version.

要查看此公式以及所有其他公式,请获取一个Weight Tracker文件 -磅/公斤版本或石头版本。

提示–将该号码命名 (Tip – Name That Number)

Instead of putting that confusing number into the formula, you could define a name, using that value.

您可以使用该值定义一个名称 ,而不是将该混乱的数字放入公式中。

Then, put the "friendly" name into the formula, so you don't scare your co-workers.

然后,将“友好”名称放入公式中,这样您就不会吓到同事。

To create the name:

要创建名称:

  • Copy the number from the formula bar从编辑栏中复制数字
  • On Excel's Formula tab, click Define Name在Excel的“公式”选项卡上,单击“定义名称”
  • Type a name, e.g. XL_Max

    输入名称,例如XL_Max

  • Leave the scope as Workbook将范围保留为工作簿
  • Type a comment that explains what the number is输入说明数字的注释
  • Right-click the Refers To box, and click Paste, then click OK右键单击“引用到”框,然后单击“粘贴”,然后单击“确定”。

使用定义的名称 (Use the Defined Name)

After you define the name, use it in the formula.

定义名称后,在公式中使用它。

  • Select the cell with the LOOKUP formula, and click in the Formula bar.选择具有“查找”公式的单元格,然后单击“公式”栏中。
  • Select the long number, and replace it with the defined name, XL_Max选择长号,并将其替换为定义的名称XL_Max
  • Press Enter, to update the formula按Enter键更新公式

Read more about Excel Names on my Contextures site.

在我的Contextures网站上了解有关Excel名称的更多信息 。

杂项列 (Column with Assorted Items)

In the previous formula, the LOOKUP function get the last number from a column. But how would you write a formula to get the last text or number in a column, which has assorted items, including blank cells and errors?

在上一个公式中, LOOKUP函数从一列中获取最后一个数字 。 但是,您将如何编写一个公式来获取一列中包含各种项目(包括空白单元格和错误)的最后一个文本或数字

样本数据 (The Sample Data)

Here's the sample data, and the result in cell D2 should be "yes".  That's the last entry which either either a number or text.

这是示例数据,单元格D2中的结果应为“是”。 那是数字或文本的最后一个条目。

What lookup formula would you use to get that result? My solution is below the screen shot.

您将使用什么查找公式来获得该结果? 我的解决方案是在屏幕截图下方。

With values (and blank cells) in cells B1:B6, I used this LOOKUP formula to get the last entry that's text or a number:

对于单元格B1:B6中的值(和空白单元格),我使用了此LOOKUP公式来获取最后一个文本或数字条目:

=LOOKUP(2,1/(B1:B6<>""),B1:B6)

= LOOKUP(2,1 /(B1:B6 <>“”),B1:B6)

检查空字符串 (Check for Empty Strings)

Here's how the formula works.

这是公式的工作方式。

First, the formula tests each entry to see if it's "not equal to" an empty string (<>"").

首先,该公式测试每个条目以查看其是否“不等于”一个空字符串(<>“”)。

The result of that test is TRUE (1) or FALSE (0) for each cell in the range.

对于该范围内的每个单元,该测试的结果为TRUE(1)或FALSE(0)。

除以结果 (Divide with the Result)

Then, the number 1 is divided by each TRUE/FALSE.

然后,将数字1除以每个TRUE / FALSE。

  • TRUE is equal to 1, and 1/1=1TRUE等于1,且1/1 = 1
  • FALSE is equal to zero, and 1/0 results in a #DIV/0! errorFALSE等于零,1/0产生#DIV / 0! 错误
  • Any cells that contain an error will also return an error in this calculation任何包含错误的单元格也会在此计算中返回错误

查找查询值 (Find the Lookup Value)

The lookup value is 2, which won't be found, because the highest number is 1.

查找值是2,将不会找到,因为最大的数字是1。

Since it can't find a 2, the formula finds the position of the last number 1, and returns the value ("yes") at that location, in the lookup range.

由于找不到2,因此该公式将找到最后一个数字1的位置,并在查找范围内返回该位置的值(“是”)。

获取样本文件 (Get the Sample File)

To see the first LOOKUP formula, which returns the last number in a column, get my my Excel Weight Tracker files. There are versions for pounds/kilos, or for stone.

要查看第一个LOOKUP公式(返回一列中的最后一个数字),请获取我的Excel Weight Tracker文件 。 有磅/公斤或石头的版本。

翻译自: https://contexturesblog.com/archives/2019/05/16/excel-lookup-formula-for-last-item-in-column/

excel查找一列重复项


http://www.taodudu.cc/news/show-5787247.html

相关文章:

  • Python标识EXCEL文件中的重复行
  • excel 如何检查重复行
  • Excel查看某列的重复值
  • 笠翁对韵-喜欢拿走
  • excel表格中序号列写上数字1,下面序列号怎么自动按顺序生成
  • 生成固定长度的序列号,excel表格自动增加
  • Excel应用-自动生成字母序列号(ABCDE...AA...XFD)
  • html tabl自动生成序列号,jQuery实现table中的tr上下移动并保持序号不变的实例代码...
  • 让表格里面的序列号自增
  • html tabl自动生成序列号,如何为el-table组件添加序号
  • Android自动生成表格,丰富配置
  • android 可编辑的表格框架,smartTable-一款android自动生成表格框架---A Android automatically generated table framework...
  • html table自动序号,javascript – 如何在HTML表中获取自动序列号列
  • html tabl自动生成序列号,Element-UI使用与爬坑集合
  • java递增序列号_生成Java自动递增序列号日食
  • android 如何生成表格,SmartTable:Android 自动生成表格框架
  • Acuneitx—软件安装
  • 2022全国职业技能大赛“信息安全管理与评估“--应急响应日志分析解析(高职组)
  • ROS利用Python脚本实现多点自主导航
  • linux ftp delete命令,linux之ftp命令
  • 十分钟学会SSH+SFTP操作终端,告别XShell
  • Linux ftp服务器和客户端解析
  • RK3399Pro-硬件编解码器MPP库快速上手--(三)MPP编码关键代码讲解
  • windows下ftp命令
  • error: 'ff_get_buffer' was not declared in this scope
  • 基于vue的图片裁剪框的实现
  • SQL Server函数,你想要的都在这
  • Linux 解压 压缩文件
  • Linux 运维必备的 40 个命令总结,收好了~
  • ftp问题

excel查找一列重复项_列中最后一项的Excel查找公式相关推荐

  1. exce中让两列数据一一对应_工作中被重复数据所烦恼?学会这几个Excel技巧,少加班...

    工作中,经常被重复的数据所困扰,那就学下这几个关于重复值的技巧,每天5分钟,工作更轻松! 1.快速查找单列重复数据 如果某一列中,有的数据是重复的,我们希望把它找出来,可以在条件格式中突出单元格,然后 ...

  2. excel如何晒出重复数据_怎么筛选出excel中重复数据

    本文收集整理关于怎么筛选出excel中重复数据的相关议题,使用内容导航快速到达. 内容导航: Q1:Excel的数据怎么筛选一列中重复的数据 假如1在A2单元格,在B2单元格输入公式, =IF(COU ...

  3. excel删除空行_办公中常用的6个Excel小技巧,不会你就OUT了!

    原标题:办公中常用的6个Excel小技巧,不会你就OUT了! 今天小编给大家分享几个EXCEL办公中比较常用的小技巧,赶紧跟我一起来学习下吧! 01 将所有数据上调 在某些情况下,我们希望将表格中所有 ...

  4. winform中listview选中整行_工作中常见的11个Excel难题,一次解决!

    Hello,各位叨友们好~ 叨叨君每天上班的第一件事就是做Excel数据报表,做多了也就积累了一些实用的Excel技巧,今天整理出来分享给大家,希望对大家的工作有所帮助哦! 01 合并多个单元格内容 ...

  5. JSP设置Excel表格换行_工作中常见的11个Excel难题,一次解决!

    Hello,各位叨友们好~ 假期最后一天,明天就要上班了,叨叨君每天上班的第一件事就是做Excel数据报表,做多了也就积累了一些实用的Excel技巧,今天整理出来分享给大家,希望对大家的工作有所帮助哦 ...

  6. ebs 选择excel输出 后缀 html,Oracle EBS XML报表中数字的处理(Excel输出)

    不知大家是否遇到这样一个情况,报表中输出数字过大或者以"0"字符开头的时候(仅指在Excel输出中),会以科学计数法的形式显示或者省略0的形式显示,显然这样的效果不是客户想要的结果 ...

  7. 读取excel A列重复的B列值相加

    import pandas as pd """ 实现excel按某一列groupyby,另一列逗号相加 """file_path= &quo ...

  8. mysql 列选项_列未显示在“列”选项卡中(MySQL Workbench)

    我正在运行Ubuntu 14.10和MySQL Workbench v6.2.3-1ubu1404-amd64(它的最后一个稳定版本),但我遇到的问题是列无法正确(完全)显示-只能是空白. 有人遇到同 ...

  9. mysql按照列构建索引_列存储索引增强功能–在线和离线(重新)构建

    mysql按照列构建索引 In this article, we will explore ' Clustered columnstore online index build and rebuild ...

最新文章

  1. 373. Find K Pairs with Smallest Sums (java,优先队列)
  2. java 多维数组转化为字符串
  3. confluence 编辑器这次没有加载_代码编辑器横评:为什么 VS Code 能拔得头筹
  4. SharePoint开发 - Excel数据导入到SharePoint自定义列表(数据视图方式)
  5. palapa php,有什么办法可以在Android上运行PHP
  6. 工业相机与民用相机的区别_工业相机和普通相机的区别详解
  7. 物联网架构成长之路(24)-Docker练习之Compose容器编排
  8. python 发红包import random用redenv,Python微信发红包编码案例 微信发红包的架构模式 - push博客...
  9. ORA-00845: MEMORY_TARGET not supported on this system
  10. CentOS 7.4 ifconfig, ip/ss, nmcli, nmtui, 配置文件 修改ip信息用法
  11. 4月电脑分辨率TOP10 :仅亚军1920*1080占比上涨
  12. android Handler UI线程后台线程通信
  13. 河南中睿保险中介系统环境升级配置纪录
  14. 经纬财富:昭通炒现货白银技巧
  15. 病毒入侵:全靠分布式 Gossip 协议
  16. vue如何跳转支付宝付款页面
  17. TZC Python编程入门教程 ————题解
  18. 碰到数学归纳法,一点感受
  19. 当x大于时,y等于1;当x等于0时,y等于0;当x小于0时,y等于-1。
  20. 头插法和尾插法建立单链表

热门文章

  1. Java接入支付宝支付教程
  2. 合宙Air780e+luatos+阿里云物联网平台完成设备通信与控制(属性上报+4G远程点灯)
  3. 电话销售话术 转
  4. linux带路径拷贝文件夹,带有路径的Linux复制文件
  5. php 找回密码思路,PHP找回密码机制流程
  6. CSDN官方指定推广功能上线【第12期*2021.9.8】
  7. 不用PS怎样修改电脑图片分辨率?试试这个方法
  8. 一些关于学习BW的基础理解
  9. 腾讯云CVM云服务器/轻量应用服务器/GPU云服务器配置价格表(2023年版)
  10. iOS之NSInvocation详解