I know there is a way to extract the rowID from a page path in Glide, but I need to know how to do it in the Sheets.
I need to extract what comes after the last /
Is there a built-in solution in sheets or do I need a formula?
I know there is a way to extract the rowID from a page path in Glide, but I need to know how to do it in the Sheets.
I need to extract what comes after the last /
Is there a built-in solution in sheets or do I need a formula?
This might be a useful read. Thereās a few ways to do it. I would suggest trying to split on '/r/ā and grab the second element.
Hey Jeff thanks for sharing this, I was kind of able to follow the general concept of what they are doing but I donāt know anything about code or how to transition it to make sense for my app. SO Iām wondering if I can do it through Glide instead and get the end of the path to show up on Google Sheets.
I extracted the path here on Glide, but is there a way to get that extracted text into regular text so that way it will appear in my sheet?
Yeah, you can do it through glide, but to get it into the google sheet, you would need to perform a set column action somewhere, to write the computed values to a basic column. That action can only be called by a user. Probably more work in the end and unnecessary updates. I would still recommend doing it in the google sheet if it absolutely needs to be directly in the sheet.
I had a play with it. I tried 3 different versions from that post and they all worked, but kind of split weird in google sheets. Seems the split in sheets doesnāt work great if the split string is more than one character. It split on '/ā instead of '/r/ā. I think I found something better. Place this in the first row of an empty column in your sheet.
={"Column Name"; arrayformula(ifError(REGEXEXTRACT(A2:A,"\/r/(.*)")))}
Hi Jeff, thanks so much for helping.
quick add: I need to do it on the sheets bc I need to make a pivot table of condensed rowIDs to get averages and rankings
I now understand where the formula goes. It looks like the person who was helping me before had a similar formula to yours, as seen on this picture. I named yours Jeff Path.
My original problem was that the āpath endā stopped working as new rows/actions were coming through and the K column was just empty on the last 50 rows.
The formula you gave me works on a bunch of them but others not as seen here:
As you can see here, your J = Jeff column goes all the way to the bottom but the K column is empty and not acknowledging new rows.
Is it normal for the formula columns to not update and capture new data? Should i use the previous formula and keep manually entering it to update it?
Looks like your previous formula is not an array formula. That means you would have to place that formula in every single row. Whoever helped you before only pre-populated so many rows, and when your data expand past that, those new rows didnāt have a formula and remained empty. On the other hand, my formula is an array formula, so you only need to add it once and it will populate the same formula in every row automatically.
It looks like your old formula is possibly looking for the last ā/ā and returning everything afterwards, whereas mine is looking for the first '/r/ā and returning everything afterwards, even if there is a second ā/r/ā path.
The old formula doesnāt consider if the final part of the path is a RowID. My formula does, but doesnāt consider if there are more than one ā/r/ā in the path. So in my eyes, neither is entirely correct, but if you are happy with the old formula, you can change it to an array formula.
Iām not very good at RegEx to fully understand itās syntax, but try this and see if it works for you. Itās your old formula, but wrapped in an array formula. If you want to replace the existing K column, then youāll have to wipe out that formula on every subsequent row.
={"path end"; arrayformula(ifError(REGEXEXTRACT(A2:A, "[^/]+$")))}
Jeff I think you nailed it!!! Itās looking perfect right now, Iāll continue to watch how the data rolls in, but this seems great - thank you soo much!!!
Iāve never understood Pivot Tables, but arenāt they essentially just relations and rollups?
Canāt help thinking that youāre going to an awful lot of trouble to do something in your Google Sheet that could very easily be done in Glide
In this case, Iām not sure it would work bc there are so many duplicate rows. So if one business has 5 rows all being considered said business then the relations and rollups would be multiplied by 5 rows, no?
on my sheets, the pivot table reduced 1100 rows down to 470 rows so that each business only had 1 row.
Clearlyā¦I donāt know what Iām talking about most of the time though so you totally may be right lol
I would have thought the equivalent in Glide would have been:
No?
(again, I donāt really understand Pivot Tables, so maybe there is something else they give you that I donāt know about)
Nobody understands Pivot Tables. Except my boss. He is obsessed with themā¦
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.