Need help with formula

Russk68

Well-known Member
Joined
May 1, 2006
Messages
596
Office Version
  1. 365
Platform
  1. MacOS
Hi All
I use an array formula that takes values that are spread out in a column and condenses the values in another column but it doesn't work with numbers.

Example
In column A there are 5 numbers spread out with spaces in between rows 1 thru 10.
I need the first 5 rows in column B to show those numbers.

Hope that makes sense.

Thank you!

Russ
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
=large($a$1:$a$10,1) finds the largest etc

=if(iserror(large($a$1:$a$10,6)),"",large($a$1:$a$10,6) will return blanks instead of error messages

the 1 thru 10 could be out of the way in AA1 to AA10 so 1 in first example would be replaced by AA1
 
Upvote 0
Hi and thank you for your help.
I copied the 2nd formula but doesn't result anything.
I don't think I need a large formula here. The example below might explain a little better. (ignore the .....) I just need to compress the numbers in column A into column B. Column B needs the formula.

.....A.........B
1...15.......15
2..............3
3...3.........27
4..............4
5
6...27
7
8...4

Thanks!
 
Upvote 0
Hi,

Try this:-

Ctrl+Shift+Enter NOT just Enter

B1 =IFERROR(INDEX($A$1:$A$10,SMALL(IF($A$1:$A$10<>"",ROW($A$1:$A$10)),ROWS(B$1:B1))),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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