+ Reply to Thread
Results 1 to 6 of 6

Dynamically Tracking Comments

  1. #1
    Registered User
    Join Date
    11-07-2023
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    22

    Dynamically Tracking Comments

    I'm currently logging my Reddit comments (The votes specifically) onto a spreadsheet. As it stands, these are the columns, Count (This is mostly so there is some degree of order in which the comments appear as I don't log specific dates), Year, Month, Sub-Reddit, Votes & Comments. I want my default view for my raw data to be the order in which data is inputted as the count is there as a unique ID of sorts. It allows me to sort A-Z and the order there.

    Whilst I'm not tracking specific dates (I don't deem it necessary), I'm nevertheless tracking Month & Year. This information is summarized onto a Pivot table with the Sub-Reddits being the rows, Columns being Month (I only made the account this year) and values being Sum of Votes. Personally, I find this to be quite insightful, but I want to take this further.

    What I'd like is to be able to track the 10 highest (votes on comments) comments per Sub. Ideally, I'd like the subs being on the left (I've used UNIQUE in the attached), and the next columns consist of the comments as well the corresponding rating. However, I want this to be dynamic so as I'm updating the raw data, this is reflected in this table. I assume I can use XLOOKUP in some capacity to obtain the votes of the comment on the right, but how do I go about outputting the ranking of the comments by Sub-Reddit?
    I hope this makes sense (!), but as per attached, there are 3 sheets. Raw Data, Pivot, & Top 10. Raw Data is missing the initial 3 columns as per above. Pivot is there as a BASIC illustration whereas Top 10 is the focus. The idea is that in column A, the unique Sub-Reddits are listed, in Columns C, E, G, etc ... would be comments which are top 3 (We'll expand to top 10) while columns B, D & F would be the respective votes for these comments. How do go I about acquiring the Top 3?

    Regarding the attached, I've had to make a new document as I wasn't comfortable with sharing my account which is why it's stripped down. As mentioned, I've removed the first 3 columns from my Raw Data as I don't think they're relevant so the 3 columns in Raw Data in my attached are actually Columns D - F in my file. The pivot in the attached is nothing compared to how I have it my variant contains considerably more data which is categorized by Month. I didn't think it was necessary to go above and beyond for the Pivot. The comments in the attached were all made up for the sake of the this document. What you see in the Top 10 sheet is purely for illustration and I can always work on the design later.

    I hope the above makes sense and I am more than happy to elaborate further!
    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
    80,916

    Re: Dynamically Tracking Comments

    In B2 copied down:

    =IFERROR(TOROW(TAKE(SORT(FILTER(Table1[[Votes]:[Comment]],Table1[Sub]=A2),1,-1),10)),"")
    Attached Files Attached Files
    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
    Registered User
    Join Date
    11-07-2023
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Dynamically Tracking Comments

    Many thanks!

    I've opened it, and it's exactly whats required!

    However, I can't help but notice a difference between the formula in your post and the formula in your attached. Most notably were 2 xlfn in the formula which I've now found out to be errors (?). I've copied and pasted the formula directly from your attached,

    =IFERROR(_xlfn.TOROW(_xlfn.TAKE(SORT(FILTER(Table1[[Votes]:[Comment]],Table1[Sub]=A2),1,-1),10)),"")

  4. #4
    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,916

    Re: Dynamically Tracking Comments

    Your profile says that you are using Excel 365 - which iteration of that product do you have? Both functions were introduced in 2022 releases, so if your product is up-to-date, you should have them. Either that or you aren't working with 365 at all. Which is it? These functions will not work in Excel 2021 or earlier.

    If you don't have 365, then your profile needs amending, as members use it to decide on what to suggest as a solution.

    https://bettersolutions.com/excel/fu...-functions.htm

    _xlfn. indicates an Excel function that is not recognised in the version in which the workbook has been opened. It will appear to work until you try to do anything, then you will begin to get the #NAME? error.
    Last edited by AliGW; 03-18-2024 at 03:26 AM. Reason: Added extra information.

  5. #5
    Registered User
    Join Date
    11-07-2023
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Dynamically Tracking Comments

    I do indeed have Office 365. As per the "Product Information" under my Account, I have Microsoft 365 and having checked for updates, I have the latest.

    The only thing I can think of is that my laptop is Windows 7? I can appreciate it's old (I'm looking to upgrade!), but I can't imagine that's the issue, or is it?

  6. #6
    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,916

    Re: Dynamically Tracking Comments

    If you have Office 365 and it is fully updated then the functions will work. The Windows version should play no part in this. The xlfn prefix only appears in older versions of Excel.

+ 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: 2
    Last Post: 09-27-2019, 11:24 AM
  2. [SOLVED] How to dynamically convert cell content from one sheet to comments in another?
    By clairejasper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2016, 01:26 AM
  3. Replies: 1
    Last Post: 07-31-2014, 10:16 AM
  4. Dynamically create workbook for employee tracking
    By DevilDog78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2012, 05:38 AM
  5. Saving Dynamically Created Comments optionally for a Values Sheet
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2011, 06:33 AM
  6. How do I Loop Dynamic Comments Placed Dynamically in different cells
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2011, 07:40 PM
  7. Link Comments Dynamically Between Workbooks???
    By Blk02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2008, 12:27 PM

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