Display the picture based on the cell value in the same cell itself

ExcelRaja

New Member
Joined
Dec 13, 2017
Messages
3
Hi All,

Am trying to do automation for share of shelf planogram working in excel, the below table I displayed the name based on block count in column "G" using if condition. It might be vary if the count is changed. Now I want to display the same picture in each cell based on the cell value. "The actual name is more than 25 and cell is 120"

It will be more helpful if get the solution for this.
[TABLE="width: 708"]
<colgroup><col width="29" style="width: 22pt; mso-width-source: userset; mso-width-alt: 1060;"> <col width="89" style="width: 67pt; mso-width-source: userset; mso-width-alt: 3254;"> <col width="102" style="width: 77pt; mso-width-source: userset; mso-width-alt: 3730;" span="5"> <col width="64" style="width: 48pt;"> <col width="93" style="width: 70pt; mso-width-source: userset; mso-width-alt: 3401;"> <col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3181;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;"> <tbody>[TR]
[TD="class: xl71, width: 29, bgcolor: #FFFFCC"] [/TD]
[TD="class: xl71, width: 89, bgcolor: #FFFFCC"] [/TD]
[TD="class: xl75, width: 102, bgcolor: #FFFFCC"]A[/TD]
[TD="class: xl75, width: 102, bgcolor: #FFFFCC"]B[/TD]
[TD="class: xl75, width: 102, bgcolor: #FFFFCC"]C[/TD]
[TD="class: xl75, width: 102, bgcolor: #FFFFCC"]D[/TD]
[TD="class: xl75, width: 102, bgcolor: #FFFFCC"]E[/TD]
[TD="class: xl77, width: 64, bgcolor: #FFFFCC"]F[/TD]
[TD="class: xl77, width: 93, bgcolor: #FFFFCC"]G[/TD]
[TD="class: xl75, width: 87, bgcolor: #FFFFCC"]H[/TD]
[TD="class: xl75, width: 68, bgcolor: #FFFFCC"]I[/TD]
[/TR]
[TR]
[TD="class: xl72, width: 29, bgcolor: #FFFFCC"]1[/TD]
[TD="class: xl72, width: 89, bgcolor: #FFFFCC"] [/TD]
[TD="class: xl70, width: 102, bgcolor: transparent"]BLCOK1[/TD]
[TD="class: xl70, width: 102, bgcolor: transparent"]BLOCK2[/TD]
[TD="class: xl70, width: 102, bgcolor: transparent"]BLOCK3[/TD]
[TD="class: xl70, width: 102, bgcolor: transparent"]BLOCK4[/TD]
[TD="class: xl70, width: 102, bgcolor: transparent"]BLOCK5[/TD]
[TD="class: xl68, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl74, width: 93, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] , align: left"]Block Count[/TD]
[TD="class: xl74, width: 87, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] , align: left"]NAME[/TD]
[TD="class: xl74, width: 68, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] , align: left"]PICTURE[/TD]
[/TR]
[TR]
[TD="class: xl72, width: 29, bgcolor: #FFFFCC"]2[/TD]
[TD="class: xl75, width: 89, bgcolor: #FFFFCC"]Top Shelf[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]COLGATE[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]COLGATE[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]SIGNAL[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]ORALB[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]PEPSODENT[/TD]
[TD="class: xl70, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl76, width: 93, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]8[/TD]
[TD="class: xl73, width: 87, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]COLGATE[/TD]
[TD="class: xl73, width: 68, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]Bitmap[/TD]
[/TR]
[TR]
[TD="class: xl72, width: 29, bgcolor: #FFFFCC"]3[/TD]
[TD="class: xl75, width: 89, bgcolor: #FFFFCC"]Shelf-2[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]COLGATE[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]COLGATE[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]SIGNAL[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]ORALB[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]PEPSODENT[/TD]
[TD="class: xl70, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl76, width: 93, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]4[/TD]
[TD="class: xl73, width: 87, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]SIGNAL[/TD]
[TD="class: xl73, width: 68, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]Bitmap[/TD]
[/TR]
[TR]
[TD="class: xl72, width: 29, bgcolor: #FFFFCC"]4[/TD]
[TD="class: xl75, width: 89, bgcolor: #FFFFCC"]Shelf-3[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]COLGATE[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]COLGATE[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]SIGNAL[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]ORALB[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]PEPSODENT[/TD]
[TD="class: xl70, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl76, width: 93, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]4[/TD]
[TD="class: xl73, width: 87, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]ORALB[/TD]
[TD="class: xl73, width: 68, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]Bitmap[/TD]
[/TR]
[TR]
[TD="class: xl72, width: 29, bgcolor: #FFFFCC"]5[/TD]
[TD="class: xl75, width: 89, bgcolor: #FFFFCC"]Bottom Shelf[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]COLGATE[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]COLGATE[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]SIGNAL[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]ORALB[/TD]
[TD="class: xl69, width: 102, bgcolor: transparent"]PEPSODENT[/TD]
[TD="class: xl70, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl76, width: 93, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]4[/TD]
[TD="class: xl73, width: 87, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]PEPSODENT[/TD]
[TD="class: xl73, width: 68, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCFFCC]#CCFFCC[/URL] "]Bitmap[/TD]
[/TR]
</tbody>[/TABLE]



Thanks,
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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
Back
Top