Imagem

boa noite

gostaria que alguem pudesse me ajudar em uma arrayformula

1.tenho varias vendas com os status (pendente e confirmado)
2.queria exibir uma imagem para cada tipo de status isso e possivel
3.tenho uma planilha onde fica os status la eu posso criar uma coluna imagem e colocar uma imagem para cada tipo de status porem nao sei como puxar ela para a planilha pedidos

Method 1 (A2:2 is the status):

=ARRAYFORMULA(IF(LEN(A2:A)=0; ""; IF(A2:A="confirmado"; "ConfirmadoImageURL"; "PendenteImageURL")))

Method 2 (B2:B is the Status. Images!A3:B is the sheet and columns to search where A is the status and B is the image URL. The 2 says to return the second column, which is B):

=arrayformula(IF(LEN(A2:A) = 0, "", VLOOKUP(B2:B, Images!A3:B, 2, false)))

usei a primeira coloquei uma imagem quando fosse confirmado e uma imagem quando estivesse pendente porem tanto pendente como confirmado aparece a mesma imagem ?? sera que fiz algo errado

Make sure the highlighted parts are the column that contains the status and the value that you have in that column. I’m not sure how you are spelling “confirmed”. It’s most likely resulting in the FALSE portion of the IF statement because it’s not resulting in TRUE when the status is confirmed.

Change A2:A to B2:B. That’s where you have your Pending and Confirmed values.

quero agradecer voce pela ajuda muito obrigado nao entendo muito de formulas mas com sua ajuda estou aprendendocerto

1 Like

Thank you for providing screenshots. That really helps a lot.