Dynamic picture lookup where some of the rows might not have an associated image?

theexcelcrowd

New Member
Joined
Jul 22, 2013
Messages
9
Hi, here's some background on what I'm trying to do:
I have a dashboard sheet and a picture sheet (table) from which I want to pull the top 6 social media posts for a particular month (screenshot pasted into sheet)
Using index/match + named range and then linking an image to a cell, I'm able to pull the first such post for each post.
In theory, I should be able to duplicate the same picture and then link these images to named ranges, say, pic2 , pic3 and so on.

The problem here is that in the picture sheet, there are some months where there is no data...or other months where there's only 1 post ...in such a case, there wouldn't be images when I try to do index/match for 2-6th ranked posts. I then get a #NA error in Excel.

I also don't want to further inflate my file size by pasting a default "no content" image in all cells where no data exists. We're talking about 6 posts for each month x 12 months x 3 channels = 216 images in the file.

What are my options at this point? Would VBA be more efficient way of tackling this? I have no experience with VBA so I'm hoping that someone's tried something similar before and can help with the code.

If not VBA, what else can I do?

Thanks.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,223,944
Messages
6,175,553
Members
452,652
Latest member
eduedu

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