简体   繁体   English

找到一行excel中最后一次出现的值

[英]Find the last occurrence of a value in a row excel

I have a row with a date, and pass or fail values.我有一行带有日期,通过或失败值。

Refer to the following:请参阅以下内容:

  • Cell A1 has date 01/01/2020单元格 A1 的日期为 01/01/2020
  • Cell B1 has either P or F for pass and fail单元格 B1 有 P 或 F 表示通过和失败
  • Cell C1 has date 02/01/2020,单元格 C1 的日期为 02/01/2020,
  • Cell D1 P or F单元格 D1 P 或 F
  • So on and so forth等等等等

I want to have a cell at the end that will identify the last occurrence of F and provide the date from the cell next to it in just that row.我想在最后有一个单元格,用于标识 F 的最后一次出现,并在该行中提供来自它旁边单元格的日期。

Confirm the following formula with CTRL-SHIFT-ENTER...使用 CTRL-SHIFT-ENTER 确认以下公式...

=LOOKUP(2,1/(B1:Z1="F"),A1:Y1)

Adjust the two ranges to suit your circumstance.调整这两个范围以适合您的情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Excel:连续查找VBA最右边(最后)出现的值 - Excel: Find most right (last) occurrence of a value with VBA in a row 在一行中查找特定值的最后一次出现 - Find last occurrence of specific value in a row Excel / VBA-在列中查找特定值的拳头和最后出现 - excel/vba - find fist and last occurrence of a particular value in a column Excel公式来查找值在列中的最后一次出现(带有条件) - Excel formula to find last occurrence of a value in a column (with conditions) Excel:如何在一行中查找最后一个“有效”值 - Excel: How to find last “valid” value in a row MS Excel:在列表中的多列中查找特定文本的最后一次出现并返回匹配的单元格值 - MS Excel: Find Last Occurrence of Specific Text Across Multiple Columns in a List and Return Matching Cell Value 查找列中特定值的倒数第二次出现 - Find the second last occurrence of a particular value in the column Excel VBA —查找列A中任何值的第一个出现位置,然后将列B的值插入列C(同一行) - Excel VBA — Find first occurrence of any value in column A, then insert value of column B into column C (same row) 查找最后一次出现的值并显示在文本框中 - Find the last occurrence of a value and display in textbox 在列中找到最后一次出现的特定值 - Find the last occurrence of certain value in column
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM