Using IF function to bring up a picture

FRIJOE

New Member
Joined
May 4, 2017
Messages
19
Hello,

I have a form I'm attempting to add automatic graphics to and require assistance. I've found a few sites that detail how to link a picture to a cell but unfortunately am having problems getting this to work. Any assistance is greatly appreciated.

Background:
I have some lines in a form, where if filled out, a picture will automatically pop up.
If you start filling out the next line, a different picture will pop up.

What I have so far:
Lets say I have three pictures (Picture1, Picture2, and Picture3).
The location of Picture1, Picture2, and Picture3 are currently on 'Sheet2'!$A$1:$A$3
The rest of the information is on Sheet1
=if(b2=1, a2=Picture1 ,if(b2=2, a2=Picture2 ,""))
=if(b3=1, a3=Picture1 ,if(b3=3, a3=Picture3 ,""))
=if(b4=2, a4=Picture2 ,if(b4=3, a4=Picture3,""))

What I want:
Any of the pictures could be used multiple times, and displayed at the same time in different cells.
Based on the value of one cell, I want the picture to appear in another cell.

Any help is greatly appreciated. Thank you
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,171,656
Messages
5,876,741
Members
433,207
Latest member
Bitt0101

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top