Use common dropdown across multiple worksheets to change single cell - excel

I have a large file with a Scenario Manager, where changing a single cell on the Summary worksheet changes the visible scenario throughout the rest of the workbook. Data Tables are working a treat providing the headline values for each option.
I'd like to have a drop down on each sheet that when changed will change the same single cell on the Summary worksheet, so I don't need to go back to the Summary sheet every time I want to switch visible scenarios.
This is a simple process if I'm using macros and would be the solution I'd normally jump straight to. But this needs to be done without macros and this is where I'm now struggling.
Does anyone know if this is possible (without macros) and point me in the right direction?
Josh

You can insert combo box (Developer Tab > Insert > Form Controls > Combo Box) on each sheet. Mention linked cell as a cell of the summary sheet (Absolute reference with sheet name). That cell will give you index of the item selected in the drop down list. Then you can insert index formula in the cell you want to change every time to get value of the drop down list. Once you insert it on one sheet you can copy it to other sheets. No macros required.

Related

How to find out which cells are pulling data from another sheet

I want to find out exactly which cells in my excel workbook are pulling data from another sheet inside the same workbook. Is there a way to do this?
Yes, there is an easy way to do it if you don't have a lot of cells.
Click the cell you want to check, then go to "Formulas" -> "Trace Precedents". [you need to do it for each cell :(, so that's the disadvantage]. You might need to click several times for each cell.
Notice the difference in my picture. The cells in the range B5:B13 has a formula linked to an external source (another worksheet or another workbook, shown as a little mini table), while the cell B15 who has a blue arrow, is linked to cell E14 on the same worksheet!
If you want to know which linkage (which source cell it's linked to), klick on the arrow and you should see this window;
If there are a massive amount of cells, I would give this VBA code a try:
VBA to list all external links together with the cells containing the links

Filling formulas automatically as data increase and sort dynamically [duplicate]

This question already has answers here:
Excel VBA: AutoFill Multiple Cells with Formulas
(2 answers)
Closed 4 years ago.
I want to sort data in a worksheet, which gets new rows daily, in a second worksheet.
The problem is, if I use the SMALL()-function and fill the cells automatically till the last row (A102482 or something like that), my file gets very huge and laggy (>20mb).
Of course the person adding a new line could expand the formula in the second worksheet into a new row, but this is not userfriendly at all!
What would be the best solution? I thought about vba-code, which counts the entries in the first worksheet, and then runs a code like this
for (i to numberrows; i++) { SMALL(A + i + 2*3, i) }
filling the first few rows in the second worksheet so the excel-file doesn't get too big...
Thanks in advance!
Edit.:
To be more specific:
What I'm asking excel to do is copy a worksheet and have the rows sorted on the second worksheet. And as the table expends, of course the sorted table has more values. This process should be done automatically, with the user only entering new data in the first worksheet and seeing the results in the second worksheet. Having the second worksheet's cells all already populates witht the SMALL() function is not an option, as this would work in my case, but this is way too slow and the files get too big...
I suggest making the second table, the dependent one, out of a PivotTable.
This will grow and shrink with the first sheet every time you refresh the data, which can be set to automatically refresh when you open the file. Here's how:
Use "Insert > Table" to format the first list. Then use "Summarize with PivotTable" or "Insert > PivotTable" (2 names for the same feature) to put your PivotTable on the next sheet.
Put all the columns you want in the second sheet under "Row Labels" on the PivotTable wizard thingy that appears.
Under PivotTable Tools > Design > Layout > Subtotals, choose "Do not show subtotals."
Under PivotTable Tools > Design > Layout > Grand Totals, choose "Off for Rows and Columns."
Under PivotTable Tools > Design > Layout > Report Layout, choose "Show in Tabular Form."
Note that if you don't have something unique at the top of the list in Row Labels, similar to "ID" in my example ( =ROW() ), the PivotTable will do intelligent things with the data that you may not want.
Here's how to get the thing to refresh automatically when the file opens. Alternately, you right-click on the table and choose "refresh".
If you wanted to refresh the PivotTable every time the data changes, put
Sheets("Sheet2").PivotTables(1).PivotCache.Refresh
(substituting "Sheet2" with the name of the sheet where the table appears; activating the data sheet on the left side; select Worksheet on the first pull-down, and select Change on the second pull-down to access the Sub Worksheet_Change code area)
...here:
Cheers!
I think I've found the answer here:
Excel VBA: AutoFill Multiple Cells with Formulas
Sorry that my question was so misleading, basically the above answer is all I was asking for... Thanks for your time and your answers!
edit: linked to the specific post containing the answer

Excel: Creating a buttong to save current version and reset cells

I currently use a printed out grid to document my work, but its a bit of a pain to search through and organize. I'd like to go digital, but want to find an easy 'Save current Version' and 'Reset form' option.
If that's is unclear, I want to make a button that will save the spreadsheet, exactly as it is at the time of click (using a name I enter in cell A1), then reset the contents of the spreadsheet.
They can be two separate buttons if needed, but that is the minimum requirement.
I have done this before, and with a little planning can be accomplished through a recorded macro.
Steps:
Create 2 Worksheets, "Form" and "Data".
Design the form on the "Form" worksheet, and populate with sample data.
On the top row of the "Data" worksheet, create references to the fields you to record.
Now Go back to the "Form" worksheet. and start the macro recording.
Go to the "Data" worksheet, right click the row header below the reference row created in step 3 and select "Insert".
Right Click on the row header of the reference row created in step 3 and select "Copy".
Right Click on the row header of the newly insert row from step 5 and select "Paste Special > Values".
Go back to the "Form" worksheet and delete all the placeholder values.
Stop the macro recording and save.
Insert a button that points to the newly created macro.
You can also do this all with VBA, but for a simple task like this, the Record Macro function is perfect.

Data Validation in Excel through Cell

I want to set up Data Validation on a cell / row of cells so that the value in that particular cell cannot be changed but all the rest of the sheet can be edited, thus why I am not using read only.
Currently if I enter the value in the cell, go to Data > Data Validation > Custom & enter ""it achieves this (see screenshots http://imgur.com/a/Ggqar)
What I want to do is set this validation via the cell rather than manually as I plan on writing this field entry when create the excel document through my application.
I have done a lot on searching online and found methods for doing countif etc.. but nothing deal with formula entry for the Custom criteria.
Is anyone able to help?
Thanks for the quick reply DanB but it's not exactly what I am trying to achieve. My end goal is that my application can pass a value into the file (Column A Row 1 [If easier for formatting it can go into each row in column A which is populated but not required]) and the file will be saved locally. The user will then be entering details in Column B, C, D, E, etc... on their local machine, saving it and processing the file again. I want the application to check Row 1 Col A for the value and decide on how to process the remainder of the file based on this value (the reading the values in the file works already). Because each time my application generates a file it will be unique I want to try do the Data Validation using a formula in the cell so that I can write it using my application and not have to manually apply settings to the file. Is it possible to do this kind of validation using only formulas in the cell when populating it?
Fastest solution would be to use a Protected sheet, but only protect that Cell.
To do this, select the entire sheet, and choose Format Cells.
On the Protection tab, remove the check from Locked.
Now, select just the cell you want to protect, and lock it using the same method. At this point, your entire sheet, except for the 1 cell should have Locked unchecked.
Now, on the review tab within Excel, choose protect Sheet, and uncheck the option to "Select Locked Cells".
Then, while the sheet is protected(you can password protect that part of it), that cell can't even be selected, yet the entire rest of the sheet can be.

How to crack an Excel workbook that looks up values?

Alright I know this isn't 100% related to programming (the Excel book in question doesn't use VBA at all) but I'm hoping someone can help me out with this or point me in the right direction.
My boss got a spreadsheet from a vendor that has a combobox/dropdown list with various part numbers; when you select one it populates the rest of the form with a lookup containing additional items. I've been tasked with "cracking" this and finding the list that they're using to populate so we can make use of it.
The thing is... there's no VBA code, no macros, no data connections, and only one Worksheet displayed in Excel while the lookup code references a Sheet1. I've tried to display hidden worksheets and it says there are none... so where on earth could this list be kept? My boss is getting impatient and is asking me if I've broken it yet. It's not a big deal if it can't be done, I just have no clue where to continue looking for it and I don't know what to tell my boss when he asks me if I'm done.
Can anyone help?
It's possible to hide a worksheet using VBA so that it can't be unhidden from the UI.
Try the method for un-hiding all hidden workhseets outlined here:
http://www.automateexcel.com/2004/12/14/excel_vba_unhide_all_worksheets/
My guess is that it is a Data Validation list which references a constant list of values or a range on a "Very Hidden" sheet. In Excel 2007, select one of the cells with the drop-down, click on the "Data" tab in the Ribbon, click on "Data Validation" in the Ribbon and see what you have. In Excel 2003 it is the Data -> Validation... command.
Another possibility if you know the name of the worksheet is "Sheet1" is to add a new worksheet, enter "=Sheet1!A1" into cell A1 of the new worksheet, and copy this cell down and to the right for as large of an area as you need to see the data you are interested in.
If you can post a URL to download the workbook (assuming it is not a trade secret) you would be more likely to get an accurate answer.
Could it be some data stored on the same sheet.
Possibly in columns which are either hidden, or which are far off the actual page?
Isn't this just data from the worksheet only?
Column header dropdown lists acts as filters, they show distinct values of a column.
This is a feature of Excel.
The items could be cached from a currently unavailable resource. Try saving it out to xml and searching for a known string.
Click on the cell that display a drop down list when selected
From the menubar select data>validation
In the dialog box copy the content of the source text box
Now paste the content on any empty cell on your worksheet
Select a drag it down to see the values populating the list
Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com
I am assuming that you have broken this by now, but just in case you havent. This is certainly a case of data validation using a named range which is house on another sheet that was designated "very Hidden" from the vba console. You will need to open up the VBA project of this worksheet and designated the "very Hidden" sheet to just Hidden and then you will be able to unhide it, or the other setting at which point it will be viewable.

Resources