[英]Replace VLookup Values with VLookup Images (Google Sheets)
Afternoon everyone!大家下午! Before reading, I'd review the example sheet.
在阅读之前,我会查看示例表。
I'm struggling with a line of code, where it will allow me to replace the value in a cell that is found using VLookup with a picture.我正在努力使用一行代码,它允许我用图片替换使用 VLookup 找到的单元格中的值。
Link to example sheet: https://docs.google.com/spreadsheets/d/1hL0KbRSf2MHFwDOgjERP_iayXgfOIR0lMtz0p7YfFs4/edit?usp=sharing链接到示例表: https ://docs.google.com/spreadsheets/d/1hL0KbRSf2MHFwDOgjERP_iayXgfOIR0lMtz0p7YfFs4/edit?usp=sharing
The dilemma困境
I'm using Vlookup
to find a value on "Sheet3" and to place the percent value in a particular cell on "Sheet1" (No issues there).我正在使用
Vlookup
在“Sheet3”上查找一个值,并将百分比值放在“Sheet1”上的特定单元格中(没有问题)。 Once the correct value is found, I want to Vlookup
the correct image to that cell that corresponds with the percent value.一旦找到正确的值,我想将正确的图像
Vlookup
到与百分比值对应的单元格。
Things to keep in mind.要记住的事情。
Here is the formula I'm currently using to find the correct value:这是我目前用来查找正确值的公式:
=iferror(VLOOKUP($E7, Sheet3!$B$16:AC, 10, False), " ")
Here is the formula I'm using to try and find the image:这是我用来尝试查找图像的公式:
=IF(VLOOKUP($E6, Sheet3!$B$16:AC, 10, False)=ISBETWEEN(VLOOKUP($E6, Sheet3!$B$16:AC, 10, False),24%,26%), VLOOKUP($H6, Images!$A1, 1, False)," ")
What I want我想要的是
If the "SKU" value ($E6) is found on "Sheet3", find the percent value on column $K (on "Sheet3") linked to that "SKU", and show the correct image on "Sheet1" on cell ($H6) if the percent value is between 24%-26%.如果在“Sheet3”上找到“SKU”值 ($E6),则在链接到该“SKU”的列 $K(在“Sheet3”上)找到百分比值,并在单元格上的“Sheet1”上显示正确的图像( $H6) 如果百分比值在 24%-26% 之间。 If the statement is false then the cell will just show up blank (" ").
如果语句为假,则单元格将显示为空白(“”)。
Thanks in advance!提前致谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.