How to extract everything but the first 8 characters

Burrgogi

Active Member
Joined
Nov 3, 2005
Messages
495
Office Version
  1. 2010
Platform
  1. Windows
This is probably basic for some of you but I'm stumped on how to do the following:

In column A, I've got the following:

5419754_Saturn_s.jpg
4987742_Saturn_2_s.jpg
4948559_Jupiter_s.jpg
3497741_Jupiter_2_s.jpg

so on & so forth...

What I'm trying to do is extract everything after the first underscore so that column B looks like the following:

Saturn_s.jpg
Saturn_2_s.jpg
Jupiter_s.jpg
Jupiter_2_s.jpg

The number at the beginning is always the same length - 7 digits long.
I have 'Googled' my around this and played around a little bit with the left & right functions... but haven't found an answer. The tips outlined in this website are very helpful tips but I haven't found a way to modify the functions to suit my specific situation. Any help would be appreciated.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try
=REPLACE(A2,1,8,"")

That linked page is not directly relevant to you since you DO know the start point of what you want. If the number of digits varied but the underscore was always there then:

=REPLACE(A2,1,FIND("_",A2),"")
 
Last edited:
Upvote 0
Never thought of using the replace function. That is cool! I appreciate the answer Peter, tyvm.
 
Upvote 0
=MID(A2,8,255)

ought to work too.

Always more than 1 way to skin the proverbial cat in Excel.
 
Upvote 0
Perhpas you could try =RIGHT(A1, LEN(A1)-8) as well.
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

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