Extracting data from 1 column into 2 columns & Mass Formula copying

Kexel

New Member
Joined
Nov 21, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Greetings,
I've recently joined seeking help regarding a Excel related question.

Namely, I am trying to mass copy a formula, but with non-standard copy method.

Sheet1 has data i need to split. (depending on whether the spec. character "|" is on the left or right side) (Pic1.)
On Sheet2 I've made formula that does this. If "|" is on the left then show in column A, if "|" is on the right then show in column B.

Then when I copy it to other columns B,C,D,E..., it skips every other column from Sheet1. (Pic.2.)

I can manually input cell reference A,B,C,D,E... in formulas on Sheet2, but is there any pragmatic way to workaround/do this? Tnx! 🍻

Test123.xlsx
ABC
12024-01-012024-01-022024-01-03
2|A1|B|C
3|A1|B|C
4|A1|B|C
5AAA|BBB|CCC|
6AAA|BBB|CCC|
7AAA|BBB|CCC|
Sheet1


Cell Formulas
RangeFormula
C1:H1C1=A1+1
A2:A7,C2:C7A2=IF(FIND("|",Sheet1!A2)=1,Sheet1!A2,"")
B2:B7,D2:D7B2=IF(FIND("|",Sheet1!A2)=4,Sheet1!A2,"")
 

Attachments

  • sheet1.png
    sheet1.png
    3.1 KB · Views: 9
  • sheet2.png
    sheet2.png
    4.7 KB · Views: 10

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Someone will have a cleaner way...

MrExcelPlayground20.xlsx
ABCDEFGHIJ
1Sheet 1Sheet 2
21/1/20241/2/20241/3/20241/1/20241/1/20241/2/20241/2/20241/3/20241/3/2024
3|A1|B|C|A1 |B |C 
4|A1|B|C|A1 |B |C 
5|A1|B|C|A1 |B |C 
6AAA|BBB|CCC| AAA| BBB| CCC|
7AAA|BBB|CCC| AAA| BBB| CCC|
8AAA|BBB|CCC| AAA| BBB| CCC|
Sheet17
Cell Formulas
RangeFormula
G2:J2G2=E2+1
E3:J8E3=LET(x,$A$3:$C$8,y,E$2,yy,F$2,z,$A$2:$C$2,a,INDEX(x,ROW()-2,XMATCH(y,z,0)),b,IF(LEFT(a,1)="|",a,""),c,IF(RIGHT(a,1)="|",a,""),d,IF(y=yy,b,c),d)
 
Upvote 1

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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