Excel Formula Needed for Number and Letter Sequence

rebel123

Active Member
Joined
Apr 18, 2017
Messages
347
Office Version
  1. 365
Platform
  1. MacOS
Excel Formula Needed for Number and Letter Sequence.
My answers are in the blue area but I do not know a formula
that I can drag down. It might be a SUBSTITUTE formula.

Please help!
 

Attachments

  • Screen Shot 2020-08-26 at 6.39.21 PM.jpg
    Screen Shot 2020-08-26 at 6.39.21 PM.jpg
    91.8 KB · Views: 40

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Do you just want to change the period to an underscore?

Code:
=SUBSTITUTE(D2,".","_")

Filled down??

And the blanks to an underscore as well?

Code:
=SUBSTITUTE(SUBSTITUTE(D2,".","_")," ","_")
 
Upvote 0
The problem is that the first and third one

1-353N-07-017.01
and
1-353N-07-021.13

Have the letter after 353.
So both of those are 353N.

Those sequences only need the endings
which are _01 and _13

BUT

The problem is that the other ones
need the extra spacings after the 6th character and the
3rd to last character

1-434(UNDERSCORE)-18-016(UNDERSCORE)00
1-624(UNDERSCORE)-13-042(UNDERSCORE)02


So, you would need some sort of crazy formula that would
detect the 6th character....The 6th Character is "N" so if
the 6th character is any letter, then it only needs 1 underscore
at the end...

However, if the 6th character is NOT a letter then it would need
2 underscores in the exact place within that sequence.
 
Upvote 0
The 6th character in the other 2 sequences are technically just blank spaces for both.
 
Upvote 0
Isn't that what I did?
If not, you should post a more detailed set of examples (please use XL2BB when posting them).
 
Upvote 0
It would need to be a drag and drop formula.... You technically have the right answers but i would need to separate the whole column and separate the letter sequences.... The letter sequences are the 353N one... So there probably is a formula that i could put in the blue area of the image and drag it down and it would work....??
 
Upvote 0
If you don't want Column E as shown, what do you want?
 
Upvote 0
Maybe im reading this wrong but u have 2 formulas.... I have no idea how VBAs or programs work so i would need one formula starting with an equals sign
 
Upvote 0
The formula I see is
=SUBSTITUTE(D2,".","_")

And


=SUBSTITUTE(SUBSTITUTE(D2,".","_")," ","_")
 
Upvote 0
This is not VBA, it's a formula for E2 and filled down

Code:
 =SUBSTITUTE(SUBSTITUTE(D2,".","_")," ","_")
 
Upvote 0

Forum statistics

Threads
1,215,759
Messages
6,126,730
Members
449,333
Latest member
Adiadidas

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