Extracting a url from an IMAGE field

algeciras

New Member
Joined
Apr 29, 2016
Messages
3
Hi there,

So I have a column full of IMAGE data e.g.

=IMAGE("http://pbs.twimg.com/profile_images/479251403328585728/0uLakxHx_normal.png",1)

Now I am trying to load this into Tableau but it does not recognize the data and NULLs it.

I need to extract the url from this column.

Is there a formula that could copy the url and save it on a different column i.e.

http://pbs.twimg.com/profile_images/479251403328585728/0uLakxHx_normal.png

Thank you!
 
Hi,

Is the column containing the image data preceeded with a ' mark? Otherwise Excel reads this as a formula due to the "=" in there, which makes it slightly more difficult to extract information.

Let me know!
 
Upvote 0
Hello

Thanks for responding, not sure what you mean exactly. So I copied a screen grab of the said column.

ex8bz1c.png
 
Upvote 0
Okay, should be a quick fix for this.

Highlight the entire of Column B, then you do a find & replace (ctrl f), you want to find a "=" (without speech marks) & replace with " '= " (without spaces, notice the apostrophe in front of the equals sign. Because of the equals sign in the cells in column B, Excel thinks you are trying to write a formula. If we put an apostrophe in front of it, it will recognize it as text.

Then, in C1, paste this formula -

=MID(B1,SEARCH(CHAR(34),B1,1)+1,SUM(LEN(B1)-SEARCH(CHAR(34),B1,1)+1)-5)

This formula will take the middle of the now text from B1, find the first set of speech marks (that is what char(34) is doing, and then find the rest of the text, up until .png / .jpg etc... whatever your file format is.

Let me know if this works for you, I hope this helps!
 
Upvote 0

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