I am adding additional information to an excel document, it has a number of predefined table arrays and a number of VLOOKUPS using these. Such as
=IF(ISBLANK(VLOOKUP($A7,DataItemsDescrips,2,FALSE)),"",VLOOKUP($A7,DataItemsDescrips,2,FALSE))
I wish to add additional cells to the predefined table arrays. How is this done in excel 2007
Thank you Jerry. I had a similar issue from the questions above and this works witht he most recent version also! I check several sites before seeing this answer. It was the most direct and worked!
(1) Formulas, (2) Name Manager, (3) Choose table array needing editing, (4) Edit formual
4 easy steps.
Are you maybe referring to Named Ranges? By this, I mean the "DataItemsDescrips" you have in the formula you gave as example.
If yes, you can access and modify them through "Formulas" > "Name Manager" and you should find the "DataItemsDescrips" in the list. Select it and you can change the range it refers to.
Related
I have an Excel file including thousands rows as follow. First column includes names and second column include group of each. I want to have all names belong to group "A" at another sheet dynamically. because name and group list may be changes. In other words, what command or function I should use to list all names belong to group "A"?
There are 3 ways to do this. The options are below. One thing you did not include in your question is what the results should look like.
Equations like =FILTER(A:B,B:B="A")
Pivot tables to use this convert data to table, then create pivot table. This requires refresh when new data is added.
Power query to use this convert data to table, then go to Data>From Table/Range. This requires refresh when data is added but you can change the "connection properties" under Data>Refresh All˅.
Now if you want all in group "A" to be listed with in one cell, then I would use option 3 with groupby as talk about here.
If the answer works for you the expectation is that you checkmark it and upvote it. If the answer does not work for you add a comment at the bottom and the problem you experience. For your situation you will need to adapt the answer.
I am trying to make a list in Excel that has as its output a list of unique items that appear multiple times in different sources of the excel sheet. Ideally, the list should be automated automatically as more data is inputted in the sources, but no additional sources will be added. I used a formula I found here, but it only works for a single source of data (and this data then needs to be adjacent).
I attached a picture of my document with circles enclosing the sources and pointing to where the list should be created. I highlighted in yellow a cell in the top row that does not get outputted (because I don't know how to do this). Picture for reference
I can provide the excel document if need be.
I am thinking of consolidating the sources to a single source, but I would like to solve this in a more sophisticated way that does not involve creating more tables.
As per your screenshot it seems you are using tables. Then try below formula-
=IFERROR(INDEX(FILTERXML("<t><s>"&TEXTJOIN("</s><s>",TRUE,Table1[Machine],Table2[Machine])&"</s></t>","//s[not(preceding::*=.)]"),ROW(1:1)),"")
Please note: TEXTJOIN() is available to Excel-2019 & Excel-365 and it has limitation to 50,000 data only.
To learn more about FILTERXML() read this article from JvdV.
I have a dynamic list of category options I want to present in some cells using a data validation drop down. This list is ('admin') user-editable, and is located on a sheet named Config in column D. The list has a header cell in D2 and starts at cell D3, and can be as long as needed.
I wrapped the list in a named range called 'Categories', which has the formula:
=Config!$D$3:OFFSET(Config!$D$3,COUNTA(Config!$D:$D)-1,0)
The data validation cells I set to be of type 'list', and as the formula I just refer to this named range:
=Categories
The effect of this is that these cells now have a data validation drop down containing the categories. And when updating the category list, the data validation drop downs update accordingly.
However, today I found out that in Excel 2019 the drop down list behaves as usual (showing the current options), but users are now capable of typing in just about anything in those cells without Excel raising the "invalid data" prompt. This used to work just fine IIRC ever since I started using this technique (before Excel 2010), with Excel giving the users a slap on the wrists when they manually typed non-conforming data. But when I rechecked today in Excel 2019 and even in Excel 2010, it now allows invalid user-typed data without giving any prompt whatsoever.
Looking what actually got broken, I first simplified the formula in the 'Categories' named range to just refer to a fixed range (e.g. Config!D3:D11), but that didn't fix anything; the user is still able to type in anything he wants. I then replaced the formula in the data validation cells with
=indirect("Config!D3:D11")
and that makes Excel recognize invalid user-typed data again. However, by using the indirect formula I can't refer to named ranges, let alone use a formula. And indirect won't update the cell addresses when users move the list source cells around. And using these dynamic-list formulas directly in the data validation formula isn't allowed either.
So is this a genuine Excel bug, introduced somewhere in the last few years, or was this functionality always working this way and was I just not aware of it all this time?
Update
As the answer by #Ghislain said, it is blanks in the option list that causes Excel to suddenly accept anything the user types. And it appears the checkbox "Ignore blanks" controls this behavior.
I intuitively always thought the option meant something like "Allow users to keep the cell blank" or such. Not to lose my sanity, I also checked what Microsoft themselves think it does. Quote from the Excel 2019 help page for the dialog:
Select the Ignore blank checkbox if you want to ignore blank spaces.
And quote from the Excel 2010 offline chm help file:
If it’s OK for people to leave the cell empty, check the Ignore blank
box.
So it seems they themselves also haven't sorted it out quite yet :)
I believe the bug is that in your validation list you have an empty cell, which make any value authorised: I suspect D3:D11 has an empty cell. Is that really a bug?
I am wondering if it is possible to hide columns based on the selection of a drop down list using excel.
For example say i have 3 columns( C1,C2,C3) and i have a drop-down list with 2 values(drop1 and drop2). When drop1 is selected from the dropdown list then show C1,C2 and hide C3. When drop2 is selected show all Columns C1,C2,C3 . Does anyone know if this is possible in excel ?
Here's an example of hiding columns via VBA. You'd need to write code much like that.
Mind you, I'm assuming that when you say "excel" you actually mean within the excel application. If you're generating the Excel file programmatically, you could easily use similar code via the OpenXML API.
Yes this is possible (very short answer).
Use VBA for it in which case you will have to link the drop down value to either a cell (and use Worksheet_Change to see if the particular cell has taken the required value for hiding the column or not (in which case hiding should be undone).
I have created three lists with similar fields in Excel. I would like to set these lists up so that when I input Data into my master list in a given field it will automatically transfer to the same field on my other lists. How would I do this. I have searched for an answer, but I have found none. I am new to Excel, but I do have programming experience.
I think the =VLOOKUP() function is what you are looking for.
I have fixed adressess($) and used a column choser to be able to easily change column information, and also to just copy or strech your table into new columns or rows whithout needing to update formulas.
=VLOOKUP() http://img638.imageshack.us/img638/2596/unledjyl.png