Help with name matching formula

SunValley

New Member
Joined
Jul 12, 2023
Messages
45
Office Version
  1. 365
Platform
  1. Windows
Hello, I'm trying to correct the formula for column H. For example, in cell H13 I need this formula to only consider numbers and the point.
Notice that in H13 the result is "1.0A", when it should just be "1.0".

Also, in column H14, the result is "1.0 ", but it contains a space that can be noticed in F14, I would like the formula not to consider this space either, I think this could also be solved if only numbers and points were delivered.

Pasta1.xlsm
EFGHI
12Original nameNew nameExtensionName with dot and number only. After the first point, it should only contain 2 numbers
131.0A.png1.0 .png.png1.0A
141.0 .png1.0 .png.png1.0
Manter só gols e prioridade
Cell Formulas
RangeFormula
F13F13=D2&""&C2
F14F14=H14&""&G14
H13:H14H13=LEFT(E13,FIND(".",E13))&MID(E13,FIND(".",A2)+1,2)
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Your formula in H13 refers to cell A2. We cannot see that cell and don't know what it has to do with the results.
Or perhaps A2 was a mistake and it should have been E13? If so, try

23 07 29.xlsm
EFGH
131.0A.png.png1.0
141.0 .png1.0.png.png1.0
SunValley
Cell Formulas
RangeFormula
H13:H14H13=LET(c,MID(E13,SEQUENCE(LEN(E13)),1),TRIM(LEFT(CONCAT(IF(ISNUMBER(c+0),c,IF(c=".",c,REPT(" ",99)))),99)))
 
Upvote 1
Solution
Your formula in H13 refers to cell A2. We cannot see that cell and don't know what it has to do with the results.
Or perhaps A2 was a mistake and it should have been E13? If so, try

23 07 29.xlsm
EFGH
131.0A.png.png1.0
141.0 .png1.0.png.png1.0
SunValley
Cell Formulas
RangeFormula
H13:H14H13=LET(c,MID(E13,SEQUENCE(LEN(E13)),1),TRIM(LEFT(CONCAT(IF(ISNUMBER(c+0),c,IF(c=".",c,REPT(" ",99)))),99)))
Thanks Peter, I actually forgot to change A2 to E13 in the formula. I didn't expect the modification to be so big and complex.

If there are any letters at the beginning of the name in column E, then the new formula in column H suspends the result instead of delivering only numbers. But what I'm working on now works perfectly, thanks for your help and patience friend (:
 
Upvote 0
Your formula in H13 refers to cell A2. We cannot see that cell and don't know what it has to do with the results.
Or perhaps A2 was a mistake and it should have been E13? If so, try

23 07 29.xlsm
EFGH
131.0A.png.png1.0
141.0 .png1.0.png.png1.0
SunValley
Cell Formulas
RangeFormula
H13:H14H13=LET(c,MID(E13,SEQUENCE(LEN(E13)),1),TRIM(LEFT(CONCAT(IF(ISNUMBER(c+0),c,IF(c=".",c,REPT(" ",99)))),99)))
I forgot to mention, the first formula only delivers the first point, in the new formula it also delivers the second one, this is causing the extension point to be delivered, could you help me with that? the example is in column H15.

The formula should ignore beyond the first point regardless of whether they come from the extension or not.

Pasta1.xlsm
EFGHI
12Original nameNew nameExtensionName with dot and number only. After the first point, it should only contain 2 numbers
131.0A.png1.0.png.png1.0
142 .png2.png.png2
153.0.png3.0..png.png3.0.
Manter só gols e prioridade
Cell Formulas
RangeFormula
F13F13=D2&""&C2
F14:F15F14=H14&""&G14
H13:H15H13=LET(c,MID(E13,SEQUENCE(LEN(E13)),1),TRIM(LEFT(CONCAT(IF(ISNUMBER(c+0),c,IF(c=".",c,REPT(" ",99)))),99)))
 
Upvote 0
With the limited examples that you showed, the following works.
You could also write the formula as follows
=LEFT(E16,MATCH(TRUE,ISERROR(VALUE(MID(E16,SEQUENCE(10),2))),0))

TextBefore.xlsm
EFGI
131.0A.png.png1.0
141.0 .png.png1.0
151.123B.xyz.xyz1.123
3a
Cell Formulas
RangeFormula
G13:G15G13=RIGHT(E13,4)
I13:I15I13=LEFT(E13,MATCH(1,--ISERROR(--(MID(E13,SEQUENCE(10),2))),0))
 
Upvote 0
With the limited examples that you showed, the following works.
You could also write the formula as follows
=LEFT(E16,MATCH(TRUE,ISERROR(VALUE(MID(E16,SEQUENCE(10),2))),0))

TextBefore.xlsm
EFGI
131.0A.png.png1.0
141.0 .png.png1.0
151.123B.xyz.xyz1.123
3a
Cell Formulas
RangeFormula
G13:G15G13=RIGHT(E13,4)
I13:I15I13=LEFT(E13,MATCH(1,--ISERROR(--(MID(E13,SEQUENCE(10),2))),0))
I tried the formula you provided, but notice that column H15 includes the extension point. The result should be "3.0", not "3.0."
Also the space in cell F14 is back, it should be "2.png", not 2 .png"

Pasta1.xlsm
EFGHI
12Original nameNew nameExtensionName with dot and number only. After the first point, it should only contain 2 numbers
131.0A.png1.0.png.png1.0
142 .png2 .png.png2
153.0.png3.0..png.png3.0.
Manter só gols e prioridade
Cell Formulas
RangeFormula
F13F13=D2&""&C2
G13:G15G13=RIGHT(E13,4)
H13:H15H13=LEFT(E13,MATCH(1,--ISERROR(--(MID(E13,SEQUENCE(10),2))),0))
F14:F15F14=H14&""&G14
 
Upvote 0
Additional ideas that you can work with.
You can use Excel's Formula Formula Evaluate to review the formulas.
Define what must be excluded and edit the formula

TextBefore.xlsm
EF
12Original nameNew name
131.0A.png1.0.png
142 .png2.png
153.0.png3.0.png
16
17
181.0A.png1.0.png
192 .png2.png
203.0.png3.0.png
3aa
Cell Formulas
RangeFormula
F13:F15F13=LET(x,TRIM(LEFT(E13,MATCH(1,--ISERROR(--(MID(E13,SEQUENCE(10),2))),0))),IF(RIGHT(x,1)=".",LEFT(x,LEN(x)-1),x))&RIGHT(E13,4)
F18,F20F18=SUBSTITUTE(E18,"A","")
F19F19=SUBSTITUTE(E19," ","")
 
Upvote 1
Additional ideas that you can work with.
You can use Excel's Formula Formula Evaluate to review the formulas.
Define what must be excluded and edit the formula

TextBefore.xlsm
EF
12Original nameNew name
131.0A.png1.0.png
142 .png2.png
153.0.png3.0.png
16
17
181.0A.png1.0.png
192 .png2.png
203.0.png3.0.png
3aa
Cell Formulas
RangeFormula
F13:F15F13=LET(x,TRIM(LEFT(E13,MATCH(1,--ISERROR(--(MID(E13,SEQUENCE(10),2))),0))),IF(RIGHT(x,1)=".",LEFT(x,LEN(x)-1),x))&RIGHT(E13,4)
F18,F20F18=SUBSTITUTE(E18,"A","")
F19F19=SUBSTITUTE(E19," ","")
It worked fine, thanks a lot for your help and patience friend (:
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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