Global Excel Summit的动态

查看Global Excel Summit的组织主页

15,238 位关注者

Across social media, you've probably seen that neat-looking text staircase layout that people use in their posts. Although this can be achieved manually, it's easier to use a web-based generator like the one at https://lnkd.in/eJziJSuE. There are four variations: 'Short to long', 'Long to short', 'Pyramid', and 'Chevron'. Can these be replicated in Excel? Absolutely. In the video example, 20 country names are housed in A2:A21, and this reference is used in each style's formula. ?????????? ???? ???????? =SORTBY(A2:A21,LEN(A2:A21)) LEN obtains the character length for each country so SORTBY can return the countries in ascending order. ???????? ???? ?????????? =SORTBY(A2:A21,LEN(A2:A21),-1) The same formula as 'Short to long' is used, except -1 is included in [sort_order1] to sort in descending order. ?????????????? =SORTBY( SORTBY(A2:A21,LEN(A2:A21),-1), -2^SEQUENCE(COUNTA(A2:A21)) ) The 'Long to short' formula is wrapped inside SORTBY to combine two sorting stages. This is then sorted by an array of numbers that alternate between exponentially decreasing negative ones and exponentially increasing positive ones: {-2;4;-8;16;-32;64;-128;256;-512;1024;-2048;4096;-8192;16384;-32768;65536;-131072;262144;-524288;1048576} The end result is the longer values are placed in the middle and the shorter ones at the ends. ?????????????? =SORTBY( SORTBY(A2:A21,LEN(A2:A21)), -2^SEQUENCE(COUNTA(A2:A21)) ) The only difference with this formula compared to 'Pyramid' is the removal of -1 in the nested SORTBY function. Ascending order is necessary for the shorter values to be in the middle and the longer ones at the ends. ?--- By Andrew Moss #exceleration #excel #globalexcelsummit

Tatyasaheb Shevale

HR Analytics Manager at Bajaj Finserv | Being data-literate ?

5 个月

Love this ?? Thanks for sharing Global Excel Summit

要查看或添加评论,请登录