Looking at 1 Column and then extracting the same number of characters into separate columns

rebel123

Active Member
Joined
Apr 18, 2017
Messages
347
Office Version
  1. 365
Platform
  1. MacOS
The correct answers are attached- I may have put a few in the wrong order but the order does not matter- only the number
of characters. So, the answer is correct. I just need an equals sign equation.

I am extracting the first series of data and then I am putting all of the answers in separate columns
by separating them into separate columns.


File is here

Image is attached
 

Attachments

  • Screenshot 2023-02-26 at 7.37.56 AM.jpg
    Screenshot 2023-02-26 at 7.37.56 AM.jpg
    221.4 KB · Views: 17

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Are you looking for a VBA solution, or a Formula solution?
 
Upvote 0
Looking for a formula solution....

Also, in my example, I put my answers into 4 columns.
I would not care if the answers are all in 1 column, which is what I was
going to do anyway.
 
Upvote 0
maybe something like
Book1
ABCDE
1123123
212341234
31234512345
4456456
5456789456789
6345345
7567567
87890178901
9789789
Sheet1
Cell Formulas
RangeFormula
B1:E9B1=IF(LEN($A$1:$A$9)=TRANSPOSE(UNIQUE(LEN($A$1:$A$9))),$A$1:$A$9,"")
Dynamic array formulas.
 
Upvote 0
i tried the formula and it did not work. I may have done it wrong. Another thing you
could do is upload the excel file with the correct results, since I uploaded the sample
excel file.

Although a formula solution is preferred.... a VBA solution would be fine if you upload
the excel file. I have An Apple Computer, so I think I wrote that on my profile.

Many thanks!
 
Upvote 0
I just want to make sure that I understand the result that you are looking for: You have a column with a bunch of different length numbers; you want to have a column the has the results "There are 16 instances of an 8 digit number" and "There are 4 instances of a 16 digit number" and so on and so on? Is this correct?
 
Upvote 0
I think Power Query is going to be your answer.
 
Upvote 0
How about OneDrive, GoogleDrive or DropBox
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,698
Members
449,117
Latest member
Aaagu

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