How to take only the true results in a row one next the other?

Hatzimichelakis

New Member
Joined
Nov 22, 2017
Messages
8
ABCDEFG
1FALSEGeorgeFALSEFALSEJohnFALSEHelen
2GeorgeJohnHelen

<tbody>
</tbody>

How to take only the TRUE results of the row1 in the row 2 one next the other?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Welcome to the MrExcel board.

Maybe:

ABCDEFG
1FALSEGeorgeFALSEFALSEJohnFALSEHelen
2GeorgeJohnHelen

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Array Formulas
CellFormula
A2{=IFERROR(INDEX($A$1:$G$1,SMALL(IF($A$1:$G$1<>FALSE,COLUMN($A$1:$G$1)),COLUMNS($A2:A2))),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
Thank you Eric for your time and your reply.
I tried the formula, but I recieve only in the cell A2 FALSE end the next cells in row 2 are empty.

FALSEGeorgeFALSEFALSEJohnFALSEHelen
FALSE

<colgroup><col width="64" span="7" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Did you enter it with Control+Shift+Enter? That is an array formula, and you need to press CSE to tell Excel that. If you've already entered it into A2, select A2, press F2 to enter edit mode, then hold down the Control and Shift keys, then press Enter, then release all the keys. If you did it right Excel will put {} around the formula. Now you can copy the cell and paste it to B2:G2.
 
Last edited:
Upvote 0
Eric thanks a lot. Yes the problem was the wrong way of entering. Your formula is amazing, and very useful for me. Thanks again.
 
Upvote 0

Forum statistics

Threads
1,216,041
Messages
6,128,461
Members
449,455
Latest member
jesski

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