+ Reply to Thread
Results 1 to 21 of 21

Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

  1. #1
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Good Morning Excel Guru?s,

    I have finally been able to correct the formulas from the help of others here in the group (AliGW and CheeseSandwhich) with a filtering and sorting formulas.

    I have come across an issue with the output whereby in the examples I have provided in the attachment using the TAKE function nested with Choose and sort have two different results for me.

    In the 1st example, the total points is a simple sum of two cells. And when creating a filter of this table using the Take, Choose and Sort functions (nested), the output of total points appear.



    However, in 2nd example, the total points is based on the IF,AND,OR,ISBLANK,NOT formula and using the same take, choose and sorted (nested) the output on Total Points appears blank.

    How do I fix this for example 2 to show the total points using the IF,AND,OR,ISBLANK,NOT formula?

    Book3.xlsx

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    a Null string ("") is > Number, the SORT is therefore putting the Null results first, hence no Numeric totals.

    you can change your formula in H14 to use 0 rather than Null String, and you'll get your results; if you want to mask/hide the 0 consider applying a Custom Format to H14:H22, e.g. [=0]"";#

  3. #3
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Hi XLent,
    That does not quite work, the output is then showing zeros (see image)
    Attachment 835682

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Why, do you want to use IF, AND, OR, ISBLANK and NOT when SUM does exactly what you want?

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    You could use filter to remove the blank rows
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Hi HansDouwe,
    I there is additional information if different columns in the original spreadsheet (do not want to share) and that needs to be triggered once it has met my criteria. This is why I am using these functions.

  7. #7
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Hi Fluff13,
    Unfortunately this does not work either.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Unfortunately this does not work either.
    In what way?

  9. #9
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Hi Fluff13,
    See image. Your recommendation is in the highlighted in green. Attachment 835691

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    I don't get what you're saying in post #6, but this does what you're asking for in post #1 (I hope)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Hi HansDouwe,
    That works for the original table, but as per my attachment (Book 3) the second table does not give the same output (total points) as per first table. I am hoping for solution on the second table and the output table to the right of that to be same. Does that make sense?

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    You're attachment is invalid, so I cannot see it.

  13. #13
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Please upload the workbook via Go Advanced and manage attachment. See yellow banner at the top of this page.

  14. #14
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Fluff13,
    Not sure why, when I click on the link I a can see the image.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Attach workbooks, not pictures of them.

    Saying you can see the attachment isn't going to help - Fluff can't (I can).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  16. #16
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Book4.xlsx

    An Updated worksheet named Book 4 has been uploaded.

  17. #17
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    I have attached an updated worksheet (Book 4).

  18. #18
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    What are your expected results?
    Also you have now changed col H so that it has "0" in it which is text & not a number.

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    Try this in J27:

    =LET(t,TAKE(CHOOSECOLS(SORT(FILTER(Table2,Table2[Total Points]<>0),8,1),1,2,4,8),MAX(J14:J17)),HSTACK(SEQUENCE(4),SORTBY(t,INDEX(t,,4),-1)))

  20. #20
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    You should try the formula of post #10 in H14, and you get the same reslults in the second table as in the first table. See attachment.
    Attached Files Attached Files

  21. #21
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Take,ChooseCols,Sort Function Not Showing Output In A Particular Cell

    This works for me, but it's basically the same as the formula I originally posted so
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CHOOSECOLS and add a blank column
    By elischwa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2023, 02:26 AM
  2. [SOLVED] Pivot table not showing the correct output (instead of the column names showing dates
    By Jigneshbharati in forum Excel Charting & Pivots
    Replies: 14
    Last Post: 09-29-2022, 03:49 AM
  3. Showing a certain formula output with userform in VBA
    By tugbina in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2022, 02:37 AM
  4. Replies: 4
    Last Post: 07-17-2015, 12:38 PM
  5. [SOLVED] How to show a VBA function's output in the same worksheet cell that calls it?
    By geophysicist in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-13-2013, 08:33 AM
  6. [SOLVED] Combined AND function not reading output of the function of another cell
    By Duoae in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-19-2012, 09:22 AM
  7. Function/ formula to output a cell reference
    By Creator in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 02-17-2006, 05:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1