Combine range from different rows into different rows from smallest to biggest, ignoring the blank

mychi11

Board Regular
Joined
May 11, 2020
Messages
95
Office Version
  1. 2016
Platform
  1. Windows
Dear All,

I was wondering if there's a way to combine data from column B to G into H to J, from smallest to biggest, ignoring the blanks

Cell Formulas
RangeFormula
B29:D46B29=IFERROR(INDEX(tableart[CY NO. (ALL)], SMALL(IF($BF29=tableart[LOCATION 1], ROW(tableart[LOCATION 1])-ROW(ART!$BH$2)+1), COLUMN(A28))),"" )
E29:G46E29=IFERROR(INDEX(tableart[CY NO. (ALL)], SMALL(IF($BF29=tableart[LOCATION 2], ROW(tableart[LOCATION 2])-ROW(ART!$BK$2)+1), COLUMN(A28))),"" )
H29:H46H29=IF($B29="",$E29,$B29)
I29:I46I29=IF($C29="",$F29,$C29)
J29:J46J29=IF($D29="",$G29,$D29)
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Like this?

H29=IFERROR(SMALL($A29:$G29,COLUMN(A29)),"")

1597026977110.png
 
Upvote 0
How about:

varios 09ago2020.xlsm
ABCDEFGHI
1CY NO (1)CY NO (2)CY NO (3) CY # (1)CY# (2)CY# (3)CY NO (1st)CY NO (2nd)CY NO (3rd)
28111
391342
41758
538 9
69  
710  
81412  
920  
109   
112   
127   
1320   
1410   
15125   
168   
Hoja4
Cell Formulas
RangeFormula
G2:I16G2=IFERROR(SMALL(IF(A$2:A$16<>"",A$2:A$16,IF(D$2:D$16<>"",D$2:D$16)),ROWS($A$2:$A2)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
How about:

varios 09ago2020.xlsm
ABCDEFGHI
1CY NO (1)CY NO (2)CY NO (3) CY # (1)CY# (2)CY# (3)CY NO (1st)CY NO (2nd)CY NO (3rd)
28111
391342
41758
538 9
69  
710  
81412  
920  
109   
112   
127   
1320   
1410   
15125   
168   
Hoja4
Cell Formulas
RangeFormula
G2:I16G2=IFERROR(SMALL(IF(A$2:A$16<>"",A$2:A$16,IF(D$2:D$16<>"",D$2:D$16)),ROWS($A$2:$A2)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.

Thank you. The formula is working perfectly as well ! :)
 
Upvote 0

Forum statistics

Threads
1,215,527
Messages
6,125,337
Members
449,218
Latest member
Excel Master

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