Covert a table/array to single column, skipping blank cells

ehesh

New Member
Joined
Jun 26, 2020
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I have a big array of data with 195 columns and 7825 rows. I am trying to convert the array to a single column skipping blank cells.

I found the following formula and have been trying to tweak it with COUNTA(MyData) but so far am struggling to get a positive result

=INDEX(MyData,1+INT((ROW(A1)-1)/COLUMNS(MyData)),MOD(ROW(A1)-1+COLUMNS(MyData),COLUMNS(MyData))+1).
 

Attachments

  • Captura de pantalla 2022-06-28 114855.png
    Captura de pantalla 2022-06-28 114855.png
    31 KB · Views: 95
Power Query should have no trouble doing the conversion.
See 2min video below. Its pretty much.
  • Load from range
  • Select ALL
  • Transform Unpivot Columns
  • Close and Load data bac to Excel
You would still need to work out what you are going to do with the data.
If you blow the excel row limit you would either need to return a summarised data set or load it to the Data Model and use it as the basis for your reporting.

Hi Alex, This seems to work. Thanks!

Although I am a bit concerned that I with the formula COUNTA It gave 41726 but with this solution I got 40891. Almost 1k difference. Any advice how I can make sure that I am not missing items?
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Yeah, there are indeed a lot of blank cells. I COUNTA the range and confirmed I have 41726 actual items to use, so the total rows would be 41726
Never mind, that was an error on my part while checking the answers. This solved it thanks
 
Upvote 0

Forum statistics

Threads
1,225,178
Messages
6,183,386
Members
453,158
Latest member
dassuz

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