Excel 2013 List with link to another spreadsheet - list

I am trying to create a list box, That when I select a item in the list I am taken to a different spreadsheet and cell. Example If I pick "Pipe 1 inch" on my list it will open my spreadsheet called pipe and display the contents starting at cell A25. Then I would close that sheet and go back to my original spreadsheet, and choose something else "Pipe 2 inch" maybe located at cell A45 in the other spreadsheet.

I'm not sure you can do exactly what you've described here.
Let's say you create a lookup range of Pipe 1 options in columns A25:A27 of worksheet 'Pipe 1'. Then you create another lookup range of Pipe 2 options in columns A45:A48 of worksheet 'Pipe 2'.
If you use worksheet 'Pipe Orders', with two columns in it called Pipe1 and Pipe2, you can then tie-in those lookup lists to each cell in those columns
Select the top open cell of the Pipe1 column. Under the Data tab, select DataValidation. Under the settings tab of that dialog that opens, under the 'Allow' list, select 'List'. The source box appears and you can enter: 'Pipe 1'$A$25:$A$27, then choose OK. The single quotes tell Excel to use that particular spreadsheet.
Do the same thing for the next cell over on your Pipe Orders worksheet, which will be the Pipe2 column. This time when creating your lookup list, use 'Pipe 2'$A$45:$A$48.
You can copy the cell formatting down the page of your Pipe Orders columns to copy this behavior.
This does not give you the links to the other pages, but at least gives you the values. I experimented a bit with using hyperlinks in the cells for the lookup values, which do work from there, but the links didn't transfer to the pull-down list.

Related

Toad Import - Change column value based on which excel worksheet the data came from

I am trying to import to a table an excel file with 3 worksheets. For one of the columns I would like to vary the value populated based on which worksheet it came from. Is there a way to do this with Toad Import. The sheets look the same and have the same columns. But if it is sheet 1 I want a certain column to be be ABC, if sheet 2 XYZ, sheet 3 ETC. Is there a way?
I load Excel files frequently, but I didn't notice such an option. So I went to see the loader once again, step-by-step, checked carefully what it offers - nope, there's nothing like that.
A workaround, quite simple, is to edit the Excel file and create that column. Then
enter ABC into the first cell of that column
select the cell
double click the bottom right corner
it'll auto-populate all rows in that worksheet with ABC (in that column)
do the same for other sheets
Another option is to set column's default value, e.g.
alter table test modify ident varchar2(3) default 'abc';
You'd have to do that for each sheet you load, modify 'abc' to 'def' etc.
Or, if you switch to SQL*Loader (there's that option in the same menu as "Import table data"), create a control file which utilizes the CONSTANT keyword, e.g.
load data
infile excel.csv
append
into table test
fields terminated by ',' optionally enclosed by '"'
(name,
value,
ident constant "abc"
)
Just like in previous case, you'd have to modify the constant value before loading each worksheet's data.
Also, note that SQL*Loader can't load XLS file - you'd have to save each sheet into its own .csv file first.
Which option would I choose? Probably the first one; seems to be the simplest & the fastest.

Toad for Oracle - Copy Column from Columns Tab without all details

An arbitrary behavior in Toad that annoys me when composing my queries.
It is not a problem really, rather than an annoying issue.
If you describe any table in toad, or clicked on the table name from the Schema Browser, in Columns tab, copy and paste a column
Sometimes you get the column name only, and sometimes you get the column name with the details of the column {name length data type...etc}
When does toad coy the column name alone, and when does it copy the entire column description?
I searched many SO questions for something related, and google trying to understand how to copy only column name, but I didn'y find any reference at all related tho this.
While in Schema Browser,
select any table and
navigate to "Columns" tab (that's what you're doing anyway).
Right-click, a menu should open.
It contains the Row select item. If it is checked, when copy/pasting a column, you'll actually copy the whole row.
Therefore, uncheck it.
Make sure you click on a column name when copy/pasting it; otherwise, you'll copy a column value you clicked on (such as Data Type or Null).

OpenOffice Calc complex functions

I'm wanting to set up a Calc sheet that will offer me stock reorder points on items that sell at a fast rate. In other words, using =Wanted In Stock # - (cell quantity) lets me know if I need to reorder the item or not. I have set up an example of this to further explain what I'm looking for.
The cells in Red tell me how many I need to order to maintain stock on hand wanted. Cells in Yellow show me I have plenty of stock in store, thus nothing to order.
The Yellow cells are just used for show and do not need anything else. The Red cells are what I'm wanting to get complex functions/formulas for. I'm wanting to do 3 things, if at all possible:
Have the Reorder columns hidden unless the item needs to be ordered. Though this isn't essential if it cannot be done
When items need to be reordered, have the column cell show with order count and have red background. Again not essential if cannot be done
Once finished with inventory on hand and reorder cells showing, then I would like a formula to print off a sheet showing the color, item # (306, 1041, etc), order quantity with red background. Those not needing to be reordered wouldn't appear on final order sheet. This on the other hand is really what I'm looking for
Is this at all possible? Or does anyone have a better suggestion?
It sounds like this report is what you are looking for:
To do this, first arrange the data into a single table:
Then select the table (cells A1 to D9) and go to Data -> Pivot Table -> Create, pressing OK to use the current selection. Drag "Color" to Row Fields, "Item" to Column Fields, and "Reorder" to Data Fields. (For LibreOffice, if it says "Data" under Column Fields, select it and press the Delete key to remove it.) Expand "More" ("Options" in LibreOffice), uncheck Total Columns and Total Rows. Then Press OK.
To hide everything that doesn't need to be reordered, right-click on the cell that says "Sum - Reorder" and choose Filter.... Under Field Name select "Reorder". Under Condition select ">", and set value to 0. Then press OK.
To practice using pivot tables, there is an example at http://dwmallisk.blogspot.com/2015/01/using-libreoffice-calc-to-create-pivot.html.
For more complex reports, it might be helpful to link your spreadsheet to the Base component of OpenOffice.

Conditional/cascading/dependent drop-down list

I am essentially trying to do that this guy is trying to do:
Excel drop-down list using vLookup
I've gone through the steps and since my data set has about 400 different drop down options I am hoping there is an easier way than naming ranges. I have a list of about 400 different account names. Each of these account names is tied to a household and identified by the household ID number. A household can have anywhere from 1-5 account names. I would like for my drop down menu to be able to identify a household ID number and then provide the drop down with the account names associated with it.
Example:
Where household Id number is the identifier.
I've gone here as well http://sites.madrocketscientist.com/jerrybeaucaires-excelassistant/data-validation/dynamic-indirect and am trying to find a way to save on some of the manual work.I am a total newbie so thank you in advance for any help you can provide.
Let's pretend you have three worksheets. The first worksheet, Sheet1, is the sheet that your users will be looking at and it has the drop down lists. We'll say that the cell containing the first drop down option is in B1 (the one with about 400 different options) and the cell containing the dependent drop down is in B2:
On your second sheet, which we'll call MasterList, is all of the data options and the corresponding data. Row 1 is a header row; Row 2 and down is the actual data:
On your third sheet, which we'll call DropDownLists, is where the magic happens. It first needs to have a list of all the unique data options. I've put that in column A. You can get the unique data options from your master list through whatever means you prefer (Advanced Filter, Pivot Table, formula, VBA, etc). That list of unique data options is the basis of your drop down list for Sheet1 cell B1. Then in cell B2 of DropDownLists and copied down as far as needed to guarantee it will grab all data associated with the selected Data Option, use this formula (adjust sheet names and ranges to suit your actual data):
=IF(OR(Sheet1!$B$1="",ROW(B1)>COUNTIF(MasterList!$A$2:$A$10000,Sheet1!$B$1)),"",INDEX(MasterList!$B$2:$B$10000,MATCH(1,INDEX((MasterList!$A$2:$A$10000=Sheet1!$B$1)*(COUNTIF(B$1:B1,MasterList!$B$2:$B$10000)=0),),0)))
This makes your DropDownLists sheet look like this:
Lastly, we need to make that list (data based on the selected Data Option) a dynamic named range. I named it listFilteredData and defined it with this formula:
=DropDownLists!$B$2:INDEX(DropDownLists!$B:$B,MAX(2,ROWS(DropDownLists!$B:$B)-COUNTBLANK(DropDownLists!$B:$B)))
Then for Sheet1 cell B2, use Data Validation and define the list with =listFilteredData and you will get results as shown in my example.
Practice with this.....it will get what you need.
Your data will have to sorted for this to work.
Sorted Data
Data Validation for Shows
Data Validation for Episodes
This formula in the data validation box
=OFFSET($A$1,MATCH($E$4,$A:$A,0)-1,1,COUNTIF($A:$A,$E$4),1)
Enter the array formula to find the Duration
Must be confirmed with Ctrl & Shift & Enter
=INDEX($C$4:$C$18,MATCH(1,(E4=$A$4:$A$18)*(F4=$B$4:$B$18),0))

Adding more condition to Vlookup

I want to use vlookup formula with 2 scenarios:
Example: I have sheet 1 with full data and Sheet 2 with other information. In sheet 2 I want to pull those records which exists in sheet 1 with vlookup. I have already wrote that query for vlookup. In same I want to add below conditions:
1) column c2,A2 & G2 of sheet2 are matching in any row of Sheet 1.
My vlookup formula is this:
=VLOOKUP(A2,Sheet3!$A$2:$J$20332,10,FALSE)
There are duplicate rows in column A and thats why it is not working as a primary key. Kindly share your thought.
You should be able to construct a primary key by linking together all the information which will create a singular entry.
Given the limited info you provided I would go with creating in both sheets a new column with:
=A2&C2&G2
You could then do a vlookup based on this singular value and get the information from one sheet into the other.