Formula that sort a list .

IFTODE

New Member
Joined
Nov 4, 2016
Messages
27
ABAB
1LIST 1List without "0" cels - NEEDED1forumula form the List 1
20Johny2=if(data=true,"Mario","0")
3JohnyElla3=if(data=true,"Johny","0")
4EllaJohny4=if(data=true,"Ella","0")
50Maria5...
60Annabel6...
70George7...
808...
9Johny9...
10010...
11011...
12Maria12...
13Annabel13...
14George14=if(data=true,"George","0")
......

<tbody>
</tbody>

Hello,


I need a formula to rearrange information in list number two eliminating cells that contain "0", as can be seen in the example in "B" column.
Ps: As I complete in the excel data sheet some values ​​in column "A" change from "0" to the text such as "Mario".

Thank you
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

shanesuzanne

New Member
Joined
Dec 1, 2016
Messages
21
I'm a bit confused on what you are trying to accomplish. Row 2 mentions Mario in the formula - but has Johny in column B. Then, there are zero values in column A - and column B is blank, or sometimes it has a name.

Also, you mention "rearrange" - as in sorting? Or are you simply wanting the zeros to not display when the criteria for the IF statement isn't met?
 

IFTODE

New Member
Joined
Nov 4, 2016
Messages
27
Hi,
in list from column "B" i need to do somthing like this: the formula =if(A2=0;if(A3=0;If(A4=0;if(....;If(A5000=0;"";A5000);....);A4);A3);A2) so the result will be a name after a name...not a name after a "0" or a blank space. and the List A will remain unchanged.
is a shorter way? but not array formula, because are like 10000 cells..and work longer after every edit
Thank you
 
Last edited:

CyrusTheVirus

Well-known Member
Joined
Jan 28, 2015
Messages
737
Office Version
  1. 365
Platform
  1. Windows
Are you only wanting a formula B to extract all names from column A?

I know you said you didn't want an array formula, but here is one you could use. At 10,000 rows it shouldn't take that long.

B2 (enter with Ctrl+Shift+Enter, not just enter):
Code:
=IFERROR(INDEX($A$2:$A$10000,SMALL(IF($A$2:$A$10000<>0,ROW($A$2:$A$10000)-ROW($A$2)+1),ROWS($B$2:B2))),"")
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,133,524
Messages
5,659,315
Members
418,496
Latest member
WHYCHumphrey

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
Top