Limit with creating a drop-down list dependent on a selection in excel - excel

I have an excel file with two sheets. The second sheet (Report) contains data validation cells based on the first sheet (Data). From the second sheet, the drop-down list that displays in the Select XXX depends on the selection in the Generate Report. When the Generate Report is set to anything beyond the first five in its list, the "Select XXX" displays year as a default list (no problem with this) via the code ...INDIRECT("Year").... The problem is that excel does not allow for addition of more code (seems I hit the limit). The question is - how can I manipulate this code to accommodate every option in the Generate Report? or perhaps, is there another method to implement?
The data validation source code for the drop-down list is =IF($B$4=Data!$Q$5,INDIRECT("Client"), IF($B$4=Data!$Q$6,INDIRECT("Month"), IF($B$4=Data!$Q$7,INDIRECT("Product_Service"), IF($B$4=Data!$Q$8,INDIRECT("Sector"), IF($B$4=Data!$Q$9,INDIRECT("Trans_Type"),INDIRECT("Year"))))))
Please, see the sample file at https://drive.google.com/file/d/1VKkGHjlJzLQqx4J9kyd_bCKG4r0Q7HkG/view?usp=sharing

What you could do is put the range names in column R, and VLOOKUP them:
=IFERROR(INDIRECT(VLOOKUP($B$4,Data!$Q$5:$R$9,2,FALSE)),INDIRECT("Year"))
You could then have as many item lists as you wish.

Related

Excel: Data Analyzing and Drop Down Options

Trying to create an excel spreadsheet which will allow me to select an option at the top of the page (a dropdown) which will be a list of names. I then want a grid below to be able to show (as an example) an individuals results over a month. This is a preference as I didn't want to have to go through multiple pages to view individual information and rather see it all in one location.
Thank you ! :)
Use a data validation linked to the range of student names on another sheet and then an INDEX, MATCH or VLOOKUP formulas to populate the table from the other sheets..

Change sheet source dynamically

How to change Excel sheet source dynamically depending on particular values?
I am developing an Excel sheet. Depending on one dropdown value, fields of other dropdown should change dynamically.
Suppose I choose one value from dropdown1, dropdown2 should get certain column from "Sheet2" and if I choose another value from dropdown1, dropdown2 should get certain column from suppose "Sheet".
How can I achieve this?
This should be related to Excel formulas I guess.
Just follow this tutorial
Create lists
Give lists a name
Use data validation to create dropdown
Use indirect when creating new data validation

How to create a dropdown list on excel that filters a table?

I have a table with the following headings on Sheet 1:
List of Areas-----List of Defects
And a table like the following on Sheet 2:
Area-----Defect-----Cause-----etcetera
I want to create a dropdown list on Sheet 2 for defects that refers to the table on Sheet 1 and shows only the defects for the respective area.
The problem is that there are a lot of areas and each area has many defects, so for example Area A may appear 10 times on the first table.
What have I already tried?
Creating a sepearate table for every Area, however there are too many areas and it is not worth it
Creating a named range, however, new defect will be constantly included on the first table
I also tried the =OFFSET(INDEX(Table1;MATCH(F5;Table1[List of Areas];0));;1;COUNTIF(Table1[List of Areas];F5)) combined with the indirect command.
However given that the tables are in diferent sheets i cannot acces them.
How can I fix this?

SSRS how to set a merged column to be split in excel

I have an issue that I know is solve-able, I just cant find the setting or work out how to do it. I have a report where I have merged two columns. Lets say these are columns a and b. I want that when the report is exported to excel that you can click into column A, and it does not merge with column b. this would allow you to filter etc by the data under column a. The reason column a and b are merged in the first place is that the heading needs to go across two cells due to size.
I know this is do-able as it exists on a report i inherited, just i can't find the setting.
This is usually due to the misalignment of your header cells with your table cells. The Excel export tries to have everything formatted the same as in the report so it will sometimes use two columns for the table cells and merge them so it can align the columns to the header columns. This is problematic when it comes to manipulating, filtering and sorting the spreadsheet.
The best way to avoid this is to create an Excel renderer that doesn't render the header part of the report as described in my answer here.
However, if the cells need to be merged in your report deliberately then you aren't going to be able to do what you want to do using your current report as Excel will duplicate the formatting, including the merged cells.
Probably the only way to get something like what you are after is to create another report that is formatted the way you would like it to be in Excel. In the header of your original report put a text box (or an image with an Excel icon) with an Action on it to open the new, properly formatted, report in Excel, passing across parameters as appropriate. Now the user just need to click on the Action link in the original report to open the more user-friendly report in Excel.

Creating a drop-down list in Excel

I'm changing an old Excel spreadsheet and have got a user-request to add a drop-down list to a date selection field.
Data Validation is already turned on for the cell in question with a "<=TODAY()" clause (the sheet contains information on production efficiency, no idea going forward since data is not there).
The user requests a drop-down listing the past seven days. I can make a list and enumerate it in VBA, but I am having difficulties coming up with a way to apply a drop-down list to a cell without using Validation.
Is this possible?
Here are some ways you can try:
Add a datepicker to the cell (and keep the formula validation you put)
a. See some standard way on MSDN
b. or with an addin on this blog
Change dynamicaly your validation to a dropdown list when the Workbook is opened or the worksheet activated with an event procedure and add another event procedure OnChange to check if the value entered is before today.
Why not replace the existing data validation rule with a list rule? Just create a new sheet and enter in A1:A7
=TODAY()
=A1-1
...
=A1-6
Then set your data validation rule to "List" and set the Source to A1:A7 on the new sheet. Then hide the sheet just to keep it out of the way. This should preserve the old validation requirement.

Resources