There is a drop-down list with numbers that was made using Data-> Data validation. The goal is to make visible only the number of rows of the table that was chosen from drop-down list without using vba (to make it more easily to edit by ordinary users). The first column of the table contains numbers corresponding to the numbers from the drop-down list. The table also contains the columns with formulas. I choosed to use conditional formating with idea that all the cells of the table will be calculated and then hide those rows of the table that are under the row corresponding to the value of cell with drop-down list. In other words it needs to dynamically change the visible rows of the table or to dynamically form the table (but there is a columns with formulas and I don't know if you can do that without using vba). I've tried different ways but this problem seems difficult for me. Maybe instead of ordinary table you need to use smart-table or power pivot but I don't have experience of using it. Thank You for Your help!
Ok... let's asume you have the value in A1.
Now for the range of B2:G20.
Conditional formatting formula: =ROW()>$A$1
In the range of B2:G20 every cell will be formated with a row higher than the value in A1
If the format is something like ; ; ; it looks empty.
Using this example and having 11 in A1 -> B12:G20 will be hidden.
However: to set Row.Hdden = true you need to do it manually or use VBA :/
Related
I have many columns with different Data Validation lists so clients can select the correct options.
Each is column specific and doesn't link to another column or cell.
These lists are typed into the Data Validation list option, and they do not exist on the spreadsheet themselves to be selected as a range in the Data Validation list option.
Example: (this is simplified, I have about 40 country codes in this list)
Column A header in Row 1 is Country Code.
Rows 2-10 have a list of: USA,AUS,CAN,GBR,PRI .... etc.
What I need to do when any of the below applies:
If any option from the list is not selected the cell turns red.
Case sensitive. Must be all caps, so if they paste "usa", instead of "USA" the cell becomes red so they know what they did is invalid.
Ensure that if no data is in column B in the same row, that column A can be blank (for this I generally use =A2="" highlight the needed range, and format no fill no boarder etc. If that needs to changed based on any possible formulas for the other requirements, please let me know.)
I have figured out the formula for these requirements if I use a list range of the data on another tab. =MATCH(TRUE,EXACT(A2,Sheet1!$A$2:$A$10),1)
But, are there formulas that I can use to do this with the existing Data Validation lists without having to re-create the lists on another tab of the spreadsheet?
Or, is creating the lists on another tab the only way to accomplish this?
Issue 1 can be solved with Conditional Formatting. New rule, format only cells that contain, Format only cells with: Blanks, set format fill to red.
OR
Issue 1 and 2 can be solved with Data validation, Allow: List, Source = $A$2:$A$41 (or the correct location if you move the selections to a new tab). This way their only option is to select valid choices.
I'm not sure what you are asking for with issue 3
I have a spreadsheet full of data (simplified example below) that I would like to extract the number in the well underneath of "Gimme the number" and paste it into a new column on a separate sheet (i.e. if "Gimme the number" is in G6, I would like to retrieve the value for G7). I do not have access to Excel VBA and have not used macros in the past. I found some examples linked below, but, from what I understand, they would return "Gimme the number", or "Gimme" not 19, 20, and 21. I am not sure if a pivot table is appropriate, because I only want information from a single column. I will only have up to 11 values to extract at any given time, so I think a formula would do it. I am just having a hard time coming up with one that works. Any help would be greatly appreciated!
Search for a text string and return multiple adjacent values
Return multiple matches with wildcard vlookup
I am not sure I get the question well, but I try.
First add a column right of the column with "Gimme..." values. Name it e.g. "Next_value" in the first row. Put in the formula referencing previous column next row. If "Gimme..." is in the cell (for instance) E6, than your formula in the cell F6 is =E7. Copy that formula into the whole Next_value column.
Than select area of these two columns (Label, Next_value) and apply the filter from the Data toolbar. Use the small buttons with triangles at the top of the column Label to adjust the filter so only "Gimme..." rows are filtered.
Now, copy values of Next_value column where you like. If you want just the references, use Paste special function from the Home toolbar and click Paste link button.
The goal is to create a series of graphs that will update automatically based on the raw data.
So, I have created a graph manually and want to edit the formula to accomplish the auto update.
The column names will always be the same, so I want to be able to select all data in a column based on the name BUT ignore any cell that is blank (above zero maybe).
The formula excel has given me so far is
=SERIES(rawdata!$M$1:$M$6,rawdata!$A$2:$A$37,rawdata!$M$2:$M$37,1)
So, something like
=SERIES(rawdata![column name],rawdata![column name],rawdata![column name],1)
I'm not sure how the skipping blank columns should work either. To expand on this further only one of the columns can potentially contain blank values. So if a cell is blank in that column then that entire row shouldn't be plotted, if that makes sense!
strong text =OFFSET(Sheet1!$B$2,0,0,COUNTA(Sheet1!$B:$B) - 1)
Try this formula when you define the name for the column of values you would like to have data automatically added from. I know it works when each cell has either a formula or a value. Like a column that is automatically calculated based on values in other columns.
In this formula example the cell B2 refers to the first point of data in the column. (make sure your references are absolute! ie, use $B$2)
This automatically returns the range of data as it changes when CountA is added:
=OFFSET(reference, rows, cols, [height], [width])
=COUNTA(value1, [value2], ...)
Hope this helps! It worked for me! :) If you have completely blank cells in the column you might have to make a couple changes though.
-Reverus
I am trying to create a SUMIF function that dynamically adds up values in a specific column of a named range in my Excel sheet.
It is very easy to do this when there is no named range :
The formula picks out all the cells that contain "London" in their name and sums up the expenses related to London.
What I am trying to do is to use a named range called TripsData (A2:B5) and tell the SUMIF function to sum the entries in the column 2 of this range that meet the criterion of having London in their name.
How can I make this work without needing to create a second named range for column 2 and simply by telling Excel to look within the specified column of this named range? Index/Match only return one value so that doesn't work when there are several cells with London in their name.
Thanks for your help!
Use INDEX to refer to a specific column in the named range (it can refer to a whole column), like this
=SUMIF(TripsData,"*London*",INDEX(TripsData,,2))
You can do that without any named ranges at all, if you turn your data into an Excel Table object. Select any cell in the range or the whole range and click Insert > Table or hit Ctrl-T.
There will be a dialog that asks if your table has headers. Yours does. Now you can reference the table and its columns by their inherent names and build your formula like this:
=SUMIF(Table1[Expense],"*London*",Table1[Cost])
You can rename the table, of course, even after the formula is in place. When you click a cell in the table, there will be a new ribbon for commands that relate to tables only. It's a very powerful tool.
Any formulas, formatting etc. that apply to a whole table column will automatically carry over into new table rows. The table column reference will adjust automatically, too, of course, so you don't have to mess with dynamic range names or re-define what a named range applies to.
Note: the formula uses structured referencing instead of cell addresses. This option can be turned off by clicking File > Options > Formulas > tick or untick "Use table names in formulas"
You can use Chris' idea of Index(Table1,,Col#) with the named range "Table1" (without creating an Excel table Object if you don't want to for some reason) and STILL avoid the problem Applez mentions in the comment below Chris' idea. Applez warns that using a constant for a column number reference is dangerous if you later insert another column before that column in the named range. You will find that Excel does NOT auto increment the constant, so your formula breaks.
Applez is right..... so DON'T use a constant, use a column number "reference" instead of a constant. For example....
=SUMIF(TripsData,"*London*",INDEX(TripsData,,Column(B1)))
If you later insert a column between A and B, Excel WILL auto increment the reference Column(B1) to Column(C1). Just don't delete B1 or Row 1 or you will get a REF error. I usually use the the header/tile "cell" (in whatever row that is in) for that table column within the Column reference (as it is highly unlikely I will ever delete the header/title cell of column of a table unless I delete the entire column). In this particular example as it turn out, B1 "IS" the the title/header cell for that column in the data table. So that is what I used for the example.
Awesome formula, just in case anyone needs to use a similar approach to FILTER a range. I used this approach
pmGendHC is the range I wanted to filter (I expect a spilled range with my data) I needed a colum (column number 13) to be different than 0
=FILTER(pmGendHC,INDEX(pmGendHC,,13)<>0)
What is the vlookup format to show the field on the other column based on another column?
What I have is vlookup(A2,'EMAIL ADDRESS'!A1:B5,2,FALSE)
I keep getting #N/A
This is the tab where I'm pulling the email from
check if the keys you are comparing are both numeric? or they do not have any extra space that you cannot see.
rest your formula looks fine: Also
put $ sign by your cell numbers, so that they do not change when you drag them down.
vlookup(A2,'EMAIL ADDRESS'!$A$1:$B$5,2,FALSE)
your formula looks correct to me.
It is my recommendation that you make the source data a table. Then you can reference it by table name without having to worry about sheet name or cell numbers and what not.
If you're in Excel 2013 then:
select any cell in in the range/area that has the data you want (a single cell, not multiple)
ribbon > insert > table
then when you're in the table click on ribbon > design > table name and give it a good name (with no spaces)
I formatted those columns to the same formatting and it looks like it's picking it up.