How to custom formula for calling data based on a drop down in excel - indexing

There is a worksheet with cross tables for each questions.
Now what I am looking for is that if I put a list of questions in a list type drop down and use it to call the entire data only for that particular from another worksheet.
How can I do this?
I tried looking for the question using Vlookup in the entire sheet and it was able to look for that question and bring it back.
Now when I tried using another Vlookup to go inside the table it failed.

Related

Possibility of inserting manual columns between a Google Connected Sheet columns Powered by Big Query

I'm trying to insert a manual column in between a Big Query generated extract columns via Connected Sheet. Basically, I already have a Google Connected Sheet which is pulling from Big Query via SQL. Whenever I try to insert a manual column in between columns generated by the query though, it automatically moves the manual column to the very end on the right or to the very end on the left. I don't want this. I want to be able to insert a manual column in between a Big Query generated column in a Google Sheet.
Is it not possible to do this? Or is there another way to be able to pull something like this off? I can't find any videos or specific documentation on if it's possible.
See below answer to questions:
Is it not possible to do this?
As per this documentation:
Direct access to BigQuery datasets and tables is still controlled within BigQuery. A user with Sheets-only access can perform analysis in the sheet and use other Sheets features, but the user will not be able to perform the following actions:
Manually refresh the BigQuery data in the sheet.
Schedule a refresh of the data in the sheet.
Hence, you cannot manually create a column when you use Connected Sheets when accessing Bigquery Data. The main function of Connected sheets in this use case is to analyze and visualize data from Bigquery, and not to manipulate data.
Is there another way to be able to pull something like this off?
Option 1: extract from Sheets the data from Bigquery
Then you can see that the Insert function is enabled. You may insert another column in this extracted sheet:
Option 2: Download the sheet as an excel file and insert column in between once downloaded:

Updating pivot source file to specific table source on workname change

I have already scoured the internet (eg. 1 2 3 ) for the answer, but all of them seem to provide a rather convoluted answer, which the users raised
with specific conditions that are characteristic only to their own
project, I intend this question to cut straight to the chase and bit more of a useful general learning resource. The question is:
How can I update my Pivot Table Source to a specific table range?
I have a Worksheet called "Summary" that contains the following ListObject (table) called "t_sum"
Issue is, upon a Workbook name change, the link to the pivot table gets broken and refreshing them returns the following error:
I tried something very simplistic in style of (that is invoked on every time workbook is opened)
Private Sub fix_pivot_source
For Each pivot in Sheets("Summary").PivotTables
pivot.SourceData = "Summary!t_sum"
Next pivot
End Sub
That however doesn't seem to work. Another issue is, given this is a financial report, the data is refreshing and so do the pivot table names. So I can't just directly reference them in the PivotCache
Any idea how can I link to the static table name while taking the Workbook name out of the equation - effectively ommitting it from SourceData check?

Is there any way use the values in a cell to query a SQL table and see if the value exists in the table?

I have an Excel spreadsheet containing all of my company's Vendor Codes. When a new code is added to this spreadsheet, we then add it to a configuration table within our database which allows us to accept that vendor. Right now I'm going through my Excel Spreadsheet and reviewing each section of code to find out if it exists in the SQL Table.
Is there any way use the values in a cell to query my VendorConfig table and see if it exists?
Spreadsheet Columns: VendorID, VendorCode, Config
You could use the "get external data" command to bring a value into a cell to check against. Alternatively, here is a link to a web post that has a cool answer to this problem (NOTE: I haven't actually tried this code but, from a quick glance, it looks right): Add formula to excel to validate data

VBA to transfer a figure from one sheet to another based on matching values other col

I am working on a spreadsheet which is being used to transfer a product from one location to another. Each day I will have a new list of products that needs sending to another location and I already have a "pre-populated" sheet that has suitable locations listed for where these products can be sent to.
I've already worked out the formula's to use which defines the location these products can be sent to (through index and match formula) but once this has been completed, I'd like to update the "pre-populated" sheet with the quantity I'm sending these locations so that limits can be deducted accordingly.
Essentially, I want to copy the figure from column G in ("Task") into column I in ("interstore transfer") where the two "REF" columns in either sheet match. The "New Limit" column will then automatically populate with the new limit based on the figure input into Column I. Once its finished working its way down the list in the sheet ("Task") then end.
I've had a rough attempt at this, but I'm coming stuck with defining the appropriate variables and how it should update.
Any ideas to better my approach would be appreciated.
A VBA solution with variables may not be your best approach for this. Variables declared within VBA code usually have a limited lifetime based on their scope, so when the code ends the values in the variable will be lost.
Another alternative may be to set aside another cell as a counter. Perhaps a good place for this would be next to the "New Limit" column?
Cell values are retained even when VBA code isn't running. Of course cell values also are saved when the workbook saves, so when you get a new list of products at the beginning of the day you can compare to or edit the previous day's work.
To get started with this, I'd recommend getting familiar with how to reference cells and ranges. And, there is some useful information here on Stack Overflow on how to reference well in Excel VBA.

Getpivotdata Pivot location based on a value in another cell.

GETPIVOTDATA("Data",{Dynamic reference to another sheet},"Field","Item")
I'm trying to get my formula to be super dynamic. I have 5 - 10 different worksheets with pivot tables on them. I have the rest of the formulas setup to get their "FIELD" and "ITEM" off of a small table of data that can change. I have tried named ranges but again cannot get it to work. The only thing in the getpivot i cannot make dynamic is the location of the pivot table. I was shown the CHOOSE(1,"STRINGS") function, but I do not know how many pivots there will be. I've used the INDIRECT() with vlookups. I'm fresh out of ideas any help welcome.
Using a named range to refer to the pivot table should work. However, make sure the named range only refers to a single cell within the pivot table. If it refers to a range, or the whole table it will not work.
EDIT
If you want to pull the pivottable from another cell, you'll need to use the INDIRECT function
=GETPIVOTDATA("Amount",INDIRECT($Q$2),"Name","Jack","Month","Feb")
Cell $Q$2 can contain either a named range referring to the pivot table or a cell reference. In either event, you will also need to specify the worksheet if you're working across multiple sheets. eg, $Q$2 could contain
Pivots!$A$1