简体   繁体   English

如果等级等于数字,则显示图像

[英]Show image if rank equals number

I have a row of 5 cells.我有一排 5 个单元格。 I want to show an image above each cell depending on the rank of the cell.我想根据单元格的等级在每个单元格上方显示一个图像。 So if the rank of the cell equals 1, show a specific image (from a link), if the rank is 2, show a different image, and so on.因此,如果单元格的等级等于 1,则显示特定图像(来自链接),如果等级为 2,则显示不同的图像,依此类推。

Here is what my sheet looks like now:这是我的工作表现在的样子:

+-------+------+------+------+------+------+
| Image |      |      |      |      |      |
+-------+------+------+------+------+------+
| Score |  100 |  300 |  200 |  500 |  400 |
+-------+------+------+------+------+------+

How would I achieve this?我将如何实现这一目标?

Assuming you have a table with rank numbers and corresponding image URLs (columns A:B im my example).假设您有一个包含排名数字和相应图像 URL 的表格(列A:B ,我的示例)。

Put this formula in place of header Image (above the header Rank ):用这个公式代替 header图像(高于 header等级):

={
  "Image",
  ARRAYFORMULA(
    IMAGE(
      VLOOKUP(
        RANK(F3:J3, F3:J3),
        A2:B,
        2,
        0
      )
    )
  )
}

在此处输入图像描述

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

相关问题 如果月份等于当前月份,则显示值 - Show value if months equals current month 在 Google 表格的排名首选项列表中显示 TRUE 的 COLUMN 编号 - Display COLUMN number for TRUE in rank preference list in Google Sheets 想根据胜场数,场数,然后积分对每个session的球员进行排名 - Want to rank players for each session based on number of wins, games, and then points 在不跳过数字的情况下自动对新添加到工作表中的内容进行排名并对其进行排序 - Auto-rank newly added to sheets without skipping a number and sort it 谷歌表显示图片 - Google Sheet Show Image 如何检查带有数字的单元格是否等于其他单元格上的日期? - How do I check if a cell with a number equals to the day on a date on other cell? 取号码、日期和时间; 从顶部搜索数字,等于或大于; 显示位于已建立编号左侧的 2 行的信息 - Take the number, date and time; search from top for number, which equal or more; show info from 2 rows located left from founded number 带有SUM的Google表格上的RANK IF公式 - RANK IF formula on Google Sheets with SUM ARRAYFORMULA 可以用于分组排名吗? - Can an ARRAYFORMULA be used for grouped RANK? 从查询结果中显示的 Google Sheets 查询图像 - Google Sheets Query Image to show up from Query result
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM