Google Sheets - sorting after arrayformula - sorting

I am a total newb...so please be patient.
I have a google sheet where I am pulling data from one sheet (Squarespace Data) to a master sheet (Test Master). I am using array formula because the information on Squarespace Data will be auto-filled from my website with automate.io as new orders are placed.
There are multiple columns on Squarespace Data but the one in question is SKU which I use regex extract on Squarespace Data to split into "Class Date" and "Class Title" columns
Here are the formulas (B1 and C1 are just the text for the regular expression):
={"CLASS DATE";iferror(arrayformula(REGEXEXTRACT('Squarespace Data'!B3:B,$B$1)),"")}
={"CLASS TITLE";iferror(arrayformula(REGEXEXTRACT('Squarespace Data'!B3:B,$C$1)),"")}
I want to sort ALL OF THE DATA by date, and then by class. It should effectively group the orders from the website by the actual class that will be taught (unique identifier is Class Date + Class Title...but several different students could buy the same class).
Here is a link to the sheet - https://docs.google.com/spreadsheets/d/1UBWVbxObW3MJ9d1Qo2ZNObvMhJ4w6P8qXA7DrYX8yuI/edit?usp=sharing
The tab "Squarespace Data" is autofilled.
The tab "Test Master" is where I am working on all of the formulas
The tab "MASTER" is the desired look when done (right now all hard coded)
the rest of the tabs are for future
Any pointers?

Related

In QuickBase, is there a way to add a drilldown report to a formula field?

One thing I appreciate about QuickBase table to table relationship summary formulas is that they automatically are hyperlinked to a drilldown report (e.g., if I had a field that counted the # of passing scores for a person and the person had 2, then there's automatically a link to the parent table/report and if I click it, I can see both of that individual's passing score records).
Unfortunately, I lose that functionality when writing a formula outside of the table-to-table default options (e.g., the # of passing scores divided by the # of passing + non-passing scores does not give option to add a drilldown report). Is there a way to add drilldown to a formula field? The closest I got was adding a report link field, but it'd be nice if that was a hyperlink with a number to avoid taking unnecessary space.
You should be able to do that using a Formula Rich Text field with an HTML hyperlink and adding a query parameter in your URL. You can get some help building the query if you turn off the new report style, then going to More > Show the expanded URL for this report. The expanded URL should look like this:
I agree with the Rich text field.
I prefer to build a query instead of using the expanded one.
The expanded url has a temporary id :(
Here is an example how you can create an own link if you use a formula Rich text field.
For sure, you have to replace a couple of variables in the following link ;)
// qid=1 >> id of your drilldown report
// mx{6.TV.2} >> 6 is the related field's id, 2 is the key of your table (master)
// the numbers are just an examples
// _DBID_TEMPLATES_CHILDREN >> you can find it at bottom of the children table's
advanced settings
"<a href=\""& URLRoot() & "db/" & [_DBID_TEMPLATES_CHILDREN] & "?
a=s&qid=1&dlta=mx{6.TV.2}&opts=disprec&isDDR=1\"> "& [# of Templates childs] &" </a>"

Google Sheets: dynamic sum-formula of multiple sheets

I'm working on a call tracking sheet for our sales teams to see their numbers.
Now I've following case I don't know how to solve.
Every sales person has his own sheet with his name.
In the main sheet I want to add up the data from all sellers, which currently happens via the following formula:
='Closer 1'!C4+'Closer 2'!C4+'Closer 3'!C4+'Closer 4'!C4+'Closer 5'!C4+'Closer 6'!C4+'Closer 7'!C4+'Closer 8'!C4
My question now is, how can I dynamically extend the formula with a database table so that when another seller is added, I don't have to adjust a formula?
That the formula is automatically supplemented by the additional person?
Here I added a picture how does it look like: Picture 1
The Sheet of a sales person looks like: Picture 2
Because It would need really much time to change all the formulas for every day of the year.
Thank you very much for your help guys!
My idea is to use INDIRECT function and store sellers names in sum sheet.
This formula treats string as a reference so you can take sheetnames from your spreadsheet.
My sheet you can find here:
https://docs.google.com/spreadsheets/d/1f31vxTFhAvmPNzx5oIleZHYfyxnFz73jCHkbP6_5hmA/copy

Google Sheets - Automatically sort columns NEXT TO a Query so that the entire range re-orders together in real-time

TEST sheet
Tab 1 = Registration data
Tab 2 = Attendance sheet
A4 uses Query() to pull the appropriate student data into that sheet. As more students enroll, it will automatically re-sort based on School then Name.
The actual attendance (Columns D:H) are manually entered.
Goal: I would like for the data in Columns D:H to automatically re-sort and follow the students as they re-sort....is this possible??!!

How to match ALL instances of a word and return each full row as array (as formula, not VB)

I have a Google Sheet that is updated with Job issues. Depending on the Issue the job is allocated to a various different team (each team in it's own tab).
Note. Each issue has a "Category" that has to be selected when filling out the job issue form.
I'm trying to write a formula that looks through the list of job issues and splits out different categories to different tabs (teams).
Here's the link to the Google Sheet to see what i've already done.
You can see my formula in E1 & L1 of "Team 1 tab"
https://docs.google.com/spreadsheets/d/1wKOMIM0JKf_jicYLeEy_Btu1atjpaGwyDlTMU2otlkc/edit?usp=sharing
See attached URL for code: You can see my formula in E1 & L1 of "Team 1 tab"
Lists all the matches in their own tab or area inside the tab.
You can do this simply with the FILTER function (although you can also use something like QUERY, it's not necessary for your application).
In your sheet, put this formula on the top-left of where you want data to begin:
=FILTER('Form responses 1'!$A:$E,'Form responses 1'!$C:$C="Can't access a topic?")
This should return all records in the range 'Form responses 1'!$A:$E that match "Can't access a topic?".
You can see the documentation for the FILTER function here: https://support.google.com/docs/answer/3093197?hl=en.

a bit of a string matching conundrum in excel-vba

i'm writing a program at work for a categorizing issue.
i get data in the form of CODE, DESCRIPTION, SUB-TOTAL for example:
LIQ013 COGNAC 25
LIQ023 VODKA 21
FD0001 PRETZELS 10
PP0502 NAPKINS 5
Now it all generally follows something like this...the problem is my company supplies numerous different bars. So there are like 800 records a month with data like this. My boss wants to breakdown the data so she knows how much we spend on a certain category each month. For example:
ALCOHOL 46
FOOD 10
PAPER 5
What I've thought of is I setup a sort of "data-base" which is really a csv text file that contains entries like this:
LIQ,COGNAC,ALCOHOL
LIQ,VODKA,ALCOHOL
FD,PRETZELS,FOOD
FD,POPCORN,FOOD
I've already written code that imports the database as a worksheet and separates each field into its own column. I want excel to look through the file and when it sees LIQ and COGNAC to assign it the ALCOHOL designator. That way I can use a pivot table to get the category sums. For example I want the final product to look like this:
LIQ013 COGNAC 25 ALCOHOL
LIQ023 VODKA 21 ALCOHOL
FD0001 PRETZELS 10 FOOD
PP0502 NAPKINS 5 PAPER
Does anyone have any suggestions? My worry is that a single point expression match to JUST the code i.e. just to LIQ without a match to COGNAC as well would maybe result in problems later when there are conflicting descriptions? I'd also like the user to be able to add ledger entries so that the database of recognized terms grows and becomes more expansive and hopefully more accurate.
EDIT
as per #Marc 's request i'm including my solution:
code file
please note that this is a pretty dumb-ed down solution. i removed a bunch of the fail-safes and other bits of code that were relevant to a robust code but not to our particular solution.
in order to get this to work there are two parts:
the first is the macro source code
the second is the actual file
because all the fail-safes are removed, the file needs to be imported to excel exactly the way it appears. i.e. Sheet1 on the googleDoc should be Sheet1 on the excel, start pasting data at cell "A1". before the macro is run, be sure to select cell "A1" in Sheet1. as i said, there are implementations in the finished product to make it more user friendly! enjoy!
EDIT2
These links suck. They don't paste well into excel.
If your comfortable with it I can email you the actual workbook. Which would help in preserving the formatting etc.
Use a lookup table in a separate sheet. Column A of the lookup sheet contains the lookup value (e.g. PRETZELS), Column B contains the category (FOOD, ALCOHOL, etc). In the cells where you want the category to show up in your original sheet (let's use D3 for the result where B3 holds the "PRETZELS" value), type this formula:
=VLOOKUP(B3,OtherSheet!$A$1:$B$500,2,FALSE)
That assumes that your lookup table is in range A1:B500 of a worksheet named "OtherSheet".
This formula tells Excel to find the lookup value (B3) in column A of your lookup and return the corresponding value from column B of your lookup table. Absolute references (the $) ensure that your formula won't increment cell references when you copy/paste the formula in other cells.
When you get new categories and/or inventory, you can update your lookup table in this one place by just adding new rows to it.

Resources