Help Novice with query, get URL, Filter

OlderMan

New Member
Joined
Aug 28, 2016
Messages
9
[FONT=&quot]I have a query to a report I created on a form website and need to filter it into reports for different people.[/FONT]
[FONT=&quot]The table has a column for "Approved By" and a column "Edit Submission" which is a link.[/FONT]
[FONT=&quot]I need the Query to filter the table and only give results for a particular Approver, then I make a new query for another Approver on a new sheet.[/FONT]
[FONT=&quot]Example table: So a separate report for each of the approvers below. [/FONT]
[FONT=&quot]At the same time turn the last column "Edit Submission" into the hyperlink it is on the report. [/FONT]
[FONT=&quot]Also, if possible make the Form No. into the same link as the Edit Submission link for that row.[/FONT]
[FONT=&quot]Here is made up sample with fewer columns.[/FONT]
[FONT=&quot]Website report[/FONT]
Form No.Approved byReceived DateApproved DateEdit link
1Cindy S11/09/1711/10/17Edit Submission
34Claude D09/10/1710/10/17Edit Submission
25Claude D05/10/1708/10/17Edit Submission
8Cindy S14/10/1720/10/17Edit Submission
66Cindy S11/11/1714/11/17Edit Submission
155John Smith05/11/1709/11/17Edit Submission
12Claude D10/11/1714/11/17Edit Submission
88John Smith10/09/1712/09/17Edit Submission

<tbody style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; margin: 0px; outline: 0px; padding: 0px;">
</tbody>
[FONT=&quot]Filtered Excel Report for Cindy S[/FONT]
Form No.Approved byReceived DateApproved DateEdit link
1Cindy S11/09/1711/10/17Edit Submission
8Cindy S14/10/1720/10/17Edit Submission
66Cindy S11/11/1714/11/17Edit Submission

<tbody style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; margin: 0px; outline: 0px; padding: 0px;">
</tbody>
[FONT=&quot]Here is what I have so far, not giving me the links.

Code:
TABLE 0[/FONT][/COLOR]
[COLOR=#000088][FONT=inherit]let[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    
    [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Source[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Web[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Page[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#660066][FONT=inherit]Web[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Contents[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#008800][FONT=inherit]"https://www.xxxform.com/table/72826000000000"[/FONT][/COLOR][COLOR=#666600][FONT=inherit])),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Data0[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Source[/FONT][/COLOR][COLOR=#666600][FONT=inherit]{[/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit]}[[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Data[/FONT][/COLOR][COLOR=#666600][FONT=inherit]],[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#660066][FONT=inherit]ExtractString[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Table[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]AddColumn[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#660066][FONT=inherit]Data0[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#008800][FONT=inherit]"Link"[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] each [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Text[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]BetweenDelimiters[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Edit[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Submission[/FONT][/COLOR][COLOR=#666600][FONT=inherit]],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#008800][FONT=inherit]"HREF="""[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#008800][FONT=inherit]""""[/FONT][/COLOR][COLOR=#666600][FONT=inherit])),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#660066][FONT=inherit]IndexedWebsites[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Table[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]AddIndexColumn[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#660066][FONT=inherit]ExtractString[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#008800][FONT=inherit]"Index"[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#006666][FONT=inherit]1[/FONT][/COLOR][COLOR=#666600][FONT=inherit]),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#660066][FONT=inherit]CreateHyperlink[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Table[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]ReplaceValue[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#660066][FONT=inherit]IndexedWebsites[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] each [/FONT][/COLOR][COLOR=#666600][FONT=inherit][[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Edit[/FONT][/COLOR][COLOR=#000000][FONT=inherit] link[/FONT][/COLOR][COLOR=#666600][FONT=inherit]][/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] each [/FONT][/COLOR][COLOR=#008800][FONT=inherit]"'=HYPERLINK("""[/FONT][/COLOR][COLOR=#666600][FONT=inherit]&[[/FONT][/COLOR][COLOR=#660066][FONT=inherit]LinkConnections[/FONT][/COLOR][COLOR=#666600][FONT=inherit]]&[/FONT][/COLOR][COLOR=#008800][FONT=inherit]""", """[/FONT][/COLOR][COLOR=#666600][FONT=inherit]&[[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Edit[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Submission[/FONT][/COLOR][COLOR=#666600][FONT=inherit]]&[/FONT][/COLOR][COLOR=#008800][FONT=inherit]""")"[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Replacer[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]ReplaceText[/FONT][/COLOR][COLOR=#666600][FONT=inherit],{[/FONT][/COLOR][COLOR=#008800][FONT=inherit]"Edit Submission"[/FONT][/COLOR][COLOR=#666600][FONT=inherit]}),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Reordered Columns" = Table.ReorderColumns(IndexedWebsites,{"Date", "CAT No.", "Approved By", "Designing Judge", "Province", "Host Club", "Courses", "Trial Date", "Received date", "Approved Date", "Post-Approved", "Edit Link", "Link"}),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Sorted Rows" = Table.Sort(#"Reordered Columns",{{"Approved By", Order.Ascending}}),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Removed Columns" = Table.RemoveColumns(#"Sorted Rows",{"Index"}),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Renamed Columns" = Table.RenameColumns(#"Removed Columns",{{"Approved By", "Approver"}, {"Designing Judge", "Designer"}, {"Province", "Prov"}, {"Host Club", "Club"}, {"Trial Date", "Trial"}, {"Received date", "Received"}, {"Approved Date", "Approved"}, {"Post-Approved", "Post-Date"}})[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#000088][FONT=inherit]in[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Renamed Columns"[/FONT][/COLOR][COLOR=#333333][FONT=&quot]
[/FONT]
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,214,523
Messages
6,120,031
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top