need p letter in between number and letter

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
996
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team

I have data in Column A and B and output coming in Column G but I need data as per column I like I10, I13 and I16 cells like where ever I have data wiht numbers and letter I need p and r should come in the center please ref yellow highlighted


book2
ABCDEFGHI
1But I need as
29.127.6p9.127.6 p27.6 p
314.333.8p14.333.8 p33.8 p
493.5493.54.04.0
551.917.751.917.717.7
66122.5p61.022.5 p22.5 p
790.92.890.92.82.8
889.62.889.62.82.8
968.810.968.810.910.9
1032.534.6 ACp32.534.6 AC p34.6 p AC
1176.61.976.61.91.9
1270.110.970.110.910.9
1380.510.6 Ap80.510.6 A p10.6 p A
1488.35.4 C88.35.4 C 5.4 C
15872.987.02.92.9
16876.7 ACp87.06.7 AC p6.7 p AB
1788.35.4 A88.35.4 A 5.4 A
1889.66.689.66.66.6
Sheet1
Cell Formulas
RangeFormula
F2:F18F2=A2
G2:G18G2=TEXT(B2,"0.0")&" "&D2
 
You can try the below :

Excel Formula:
=MAP(B2:B25,D2:D25,LAMBDA(x,y,LET(a,TEXTSPLIT(x&" ",," "),IF(INDEX(a,2)="",INDEX(a,1)&" ",INDEX(a,1)&"")&y&""&INDEX(a,2))))
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You can try the below :

Excel Formula:
=MAP(B2:B25,D2:D25,LAMBDA(x,y,LET(a,TEXTSPLIT(x&" ",," "),IF(INDEX(a,2)="",INDEX(a,1)&" ",INDEX(a,1)&"")&y&""&INDEX(a,2))))
thank you so much for you help and support but I can see no space between 5.4C or 5.4A I need space for those things except where ever p is coming in center :)

5.4C
2.9
6.7pAC
5.4A
6.6
 
Upvote 0
Please ignore the above and use the below formula :

Excel Formula:
=MAP(B2:B25,D2:D25,LAMBDA(x,y,LET(a,TEXTSPLIT(x&" ",," "),IF(INDEX(a,2)="",INDEX(a,1)&" "&y,INDEX(a,1)&""&IF(y=""," "&INDEX(a,2),y&""&INDEX(a,2))))))
 
Upvote 1
Please ignore the above and use the below formula :

Excel Formula:
=MAP(B2:B25,D2:D25,LAMBDA(x,y,LET(a,TEXTSPLIT(x&" ",," "),IF(INDEX(a,2)="",INDEX(a,1)&" "&y,INDEX(a,1)&""&IF(y=""," "&INDEX(a,2),y&""&INDEX(a,2))))))
Thanks you so much Sir for your help with this :)
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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