+ Reply to Thread
Results 1 to 9 of 9

TOCOL function to show non-zero values only?

  1. #1
    Registered User
    Join Date
    06-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    29

    TOCOL function to show non-zero values only?

    Hello, I have a pivotal database (Accounts in rows 1-20, Entites in columns C-I, values are from C2-I20). I am easily able to transform pivotal view to rows using the function TOCOL. But in my database there is a lot of cells (various combination of Account & Entity), that include 0 values. I am looking for a solution how to use a formula TOCOL using maybe another formula FILTER to list only non-zero values. The function FILTER does not work in more than 1 column. I am providing an example in attachment. Any idea please?
    Attached Files Attached Files

  2. #2
    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
    81,217

    Re: TOCOL function to show non-zero values only?

    You are not using Excel 2010 - please update your forum profile.

    Please explain which values should be excluded - I see no blanks in your TOCOL results.

    Could this work for you?

    =LET(t,TOCOL(B4:B20&"|"&C3:I3&"|"&C4:I20),FILTER(t,RIGHT(t,1)<>"|"))
    Attached Files Attached Files
    Last edited by AliGW; 04-23-2024 at 08:18 AM. Reason: Added suggestion.
    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.

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

    Re: TOCOL function to show non-zero values only?

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    29

    Re: TOCOL function to show non-zero values only?

    Hello Ali, profile updated. Zero values should be excluded...

  5. #5
    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
    81,217

    Re: TOCOL function to show non-zero values only?

    See post #2 - is that what you mean? Because there are NO zero values in the results you have now.

  6. #6
    Registered User
    Join Date
    06-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    29

    SOLVED Re: TOCOL function to show non-zero values only?

    Thank you so much PMFluff13! :-)

  7. #7
    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
    81,217

    Re: TOCOL function to show non-zero values only?

    What about the suggestion in post #2?

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

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

    Re: TOCOL function to show non-zero values only?

    Glad to help & thanks for the feedback.

  9. #9
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,296

    Re: TOCOL function to show non-zero values only?

    Power Query
    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. Replies: 7
    Last Post: 07-13-2023, 08:44 AM
  2. Non volatile function to show unique and duplicate values
    By bjnockle in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-11-2021, 09:14 PM
  3. Function Help - show values in cell from lookup
    By butters88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2021, 08:07 AM
  4. [SOLVED] Show Values using IF function on Multiple Ranges
    By vikrampnz in forum Excel General
    Replies: 5
    Last Post: 09-06-2018, 12:48 PM
  5. Excel 2008 : show multiple values with INDEX function
    By Yannakos in forum Excel General
    Replies: 0
    Last Post: 10-25-2011, 11:13 AM
  6. Replies: 1
    Last Post: 05-17-2011, 11:39 PM
  7. Replies: 2
    Last Post: 03-01-2011, 05:13 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