Find values on an a range of columns and rows and copy them to a column

vladi305

Board Regular
Joined
Jan 12, 2023
Messages
88
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have groups of data on a range of columns and row. Some of those are blank. The solution will be to copy into a column the cells that contain a value.
Notice the picture attached. The groups are the one left wIth a background filled and the column is the one on the right
 

Attachments

  • Screenshot_20230215-140601_Excel.jpg
    Screenshot_20230215-140601_Excel.jpg
    152.1 KB · Views: 10

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Are the "blank" cells totally empty, or do they contain a formula?
 
Upvote 0
Ok, how about
Excel Formula:
=TOCOL(IF(D3:M7="",x,D3:M7),3)
 
Upvote 0
Ok, how about
Excel Formula:
=TOCOL(IF(D3:M7="",x,D3:M7),3)
I'll try it when I get to the office. I'm in a mobile now and im getting a #CALC error
 

Attachments

  • Screenshot_20230215-150448_Excel.jpg
    Screenshot_20230215-150448_Excel.jpg
    160.1 KB · Views: 3
Upvote 0
Ok, how about
Excel Formula:
=TOCOL(IF(D3:M7="",x,D3:M7),3)
I tried this and still getting the #calc! Error
I removed the if condition and it works fine but it returns the blank cells
=TOCOL(D3:M7,3)
On the If condition what does the x stand for? Is that a variable?
 
Upvote 0
try this one:
Code:
=TOCOL(D3:M7/LEN(D3:M7),3)
工作簿1
ABCDEFGHIJKLMN
1
2
311
455
5334
64268
728
86
98
108
11
12
Sheet1
Cell Formulas
RangeFormula
B3:B10B3=TOCOL(D3:M7/LEN(D3:M7),3)
Dynamic array formulas.
 
Upvote 0
I tried this and still getting the #calc! Error
I removed the if condition and it works fine but it returns the blank cells
=TOCOL(D3:M7,3)
On the If condition what does the x stand for? Is that a variable?
the x will be recognized as an #name error, and TOCOL will ignore these errors when the second parameter is 3 or 2. you can use \ to instead x.
 
Upvote 0
the x will be recognized as an #name error, and TOCOL will ignore these errors when the second parameter is 3 or 2. you can use \ to instead x.
Now I'm getting the #name error
 

Attachments

  • Screenshot_20230215-225813_Excel.jpg
    Screenshot_20230215-225813_Excel.jpg
    135.8 KB · Views: 4
Upvote 0

Forum statistics

Threads
1,214,661
Messages
6,120,797
Members
448,994
Latest member
rohitsomani

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