Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 05-07-2018, 12:58 PM
ShankedS ShankedS is offline Dropdown select worksheet to point data? Windows 7 64bit Dropdown select worksheet to point data? Office 2010 64bit
Advanced Beginner
Dropdown select worksheet to point data?
 
Join Date: Oct 2014
Posts: 62
ShankedS is on a distinguished road
Default


Quote:
Originally Posted by ArviLaanemets View Post
I don't have Excel on my home computer, and for some reason I can't connect to another one through VPN currently, so I can't look what formulas are used on Report sheet. But in general, the formulas use Table and Table Field names, and Named Ranges. So probably a Named Range was the one to confuse you.

Of-course you can post the formula here too (for me it's night currently, so probably I will see it tomorrow morning anyway, but it will be nice to know which formula and which part of it needs to be commented).
Here's a visual representation of what I'm looking at in the file. So this is where I'm looking at the data validation for the drop-downs in Report.
Attached Images
File Type: png scrn-Excel References.png (99.4 KB, 17 views)
Reply With Quote
  #17  
Old 05-07-2018, 10:36 PM
ArviLaanemets ArviLaanemets is offline Dropdown select worksheet to point data? Windows 8 Dropdown select worksheet to point data? Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

lOrg and lRepPer are Named Ranges, used here because Data Validation doesn't allow using Table references (You get error, when you replace e.g. =lOrg with =tOrg[OrgName] in Data Validation Source. The same happens with Conditional Formatting, but when I remember correctly, with Conditional Formatting Names don't work also - you can use only cell references).

To see all defined Named Ranges (and defined Tables, ODBC Query dataranges, defined Print Areas etc.), select from Menu Formulas and open Name Manager. To see how a name listed in Name Manager is defined, select a name and then Edit (some objects listed in Name Manager, like defined Tables, you can't edit here).

Here I used my own naming convention for Named Ranges. Names beginning with "n" are usually Named Values (like nPI = 3,14...), or fixed Named Ranges (like nName = Sheet1!$A$1 or nName = Sheet2!$A$2:$X$10000). Names beginning with "d" are dynamic Named Ranges (like dName = OFFSET(Sheet1!$A$1,1,,COUNT(Sheet1!$A:$A),10) or dName = tTable). And a specific group are single column dynamic Names defined for using as Data Validation List sources - those are beginning with "l" like ones used here. The reason is, that so are Names grouped in Name Manager. Sometimes I have some 30-40 different names defined for workbook, and it is annoying to search for them over whole Name Manager.
Reply With Quote
  #18  
Old 05-08-2018, 06:42 AM
ShankedS ShankedS is offline Dropdown select worksheet to point data? Windows 7 64bit Dropdown select worksheet to point data? Office 2010 64bit
Advanced Beginner
Dropdown select worksheet to point data?
 
Join Date: Oct 2014
Posts: 62
ShankedS is on a distinguished road
Default

tOrg[OrgName] is that an array reference sort of deal? Where OrgName is substituted with cell values? How exactly does it exclude the first row?
Reply With Quote
  #19  
Old 05-08-2018, 07:57 AM
ArviLaanemets ArviLaanemets is offline Dropdown select worksheet to point data? Windows 8 Dropdown select worksheet to point data? Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

On sheet Organizations is defined table tOrg (I entered field names (header row) and formatted columns. Then I defined Data Validations in column OrgType for some number of rows. Then I selected all headers plus rows where I defined Data Validation, and with selection active I selected from Insert menu Table. Checked "My data has header row" and clicked OK. A Table was defined and a menu pane Design was activated. At left of menu pane I set the name for Table (the default is something like Table1) to tOrg. You can see Table settings, when you select any cell in table and activate then Design menu.

With defined Table, you can use table syntax in formulas.
TableName refers to datarange of Table;
TableName[#All] refers to whole Table (headers + datarange);
TableName[#Headers] refers to header row of Table;
TableName[FieldName] refers to datarange of specific field/column of Table;
TableName[@FieldName] refers to field value on same row with cell you entered the formula;
etc.

So tOrg[Orgname] returns all entries from field Orgname of Table tOrg.

Edit. Differ tables (which you could create in all versions of Excel), and Tables, which were introduced in Excel2007.
Edit. The only downside is, that you can't use tables, when you want to share the workbook. But I avoid Excel sharing anyway whenever possible.
Reply With Quote
  #20  
Old 05-08-2018, 10:18 AM
ShankedS ShankedS is offline Dropdown select worksheet to point data? Windows 7 64bit Dropdown select worksheet to point data? Office 2010 64bit
Advanced Beginner
Dropdown select worksheet to point data?
 
Join Date: Oct 2014
Posts: 62
ShankedS is on a distinguished road
Default

Quote:
Originally Posted by ArviLaanemets View Post
Edit. The only downside is, that you can't use tables, when you want to share the workbook. But I avoid Excel sharing anyway whenever possible.
Like using the share function? Because it's on a network drive, other people will be able to access it.
Reply With Quote
  #21  
Old 05-08-2018, 10:54 AM
ArviLaanemets ArviLaanemets is offline Dropdown select worksheet to point data? Windows 8 Dropdown select worksheet to point data? Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

When thy need to access it to read information it is OK. For this the sharing is not needed.

When sharing is used, then several users can open the workbook simultaneously, the user who opened the workbook as first locks it, and when first user closes workbook, the next user can save changes (at least it was something like this until Excel2016 - now MS made changes to this feature I am not familiar with at all).

When the workbook is not shared, any number of users can open it simultaneously too, but none of users opening it as 2nd or further simply can't save it. In case only one user/a couple of users is entering new contacts, the only problem will be the workbook being locked for this contact info administrator, when someone else is looking for info at same time.

A possible solution is to have a master workbook, where contact info is entered by contact info administrator. and every non-administrator user has his/her own workbook, which reads contact info from master workbook using ODBC query, which is refreshed whenever the workbook is opened, or when the user refreshes the query at will. With this design, the Master workbook is always available for editing.
Reply With Quote
  #22  
Old 05-08-2018, 11:09 AM
ShankedS ShankedS is offline Dropdown select worksheet to point data? Windows 7 64bit Dropdown select worksheet to point data? Office 2010 64bit
Advanced Beginner
Dropdown select worksheet to point data?
 
Join Date: Oct 2014
Posts: 62
ShankedS is on a distinguished road
Default

Quote:
Originally Posted by ArviLaanemets View Post
When thy need to access it to read information it is OK. For this the sharing is not needed.

When sharing is used, then several users can open the workbook simultaneously, the user who opened the workbook as first locks it, and when first user closes workbook, the next user can save changes (at least it was something like this until Excel2016 - now MS made changes to this feature I am not familiar with at all).

When the workbook is not shared, any number of users can open it simultaneously too, but none of users opening it as 2nd or further simply can't save it. In case only one user/a couple of users is entering new contacts, the only problem will be the workbook being locked for this contact info administrator, when someone else is looking for info at same time.

A possible solution is to have a master workbook, where contact info is entered by contact info administrator. and every non-administrator user has his/her own workbook, which reads contact info from master workbook using ODBC query, which is refreshed whenever the workbook is opened, or when the user refreshes the query at will. With this design, the Master workbook is always available for editing.
No one accessing it should need more than read access. But, even if they do, as you said, as long as the current write-access account closes the session, they should be able to.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking to copy select cells in table using dropdown list to paste to new table in another worksheet CaptainRetired Excel Programming 18 01-04-2018 07:22 PM
Dropdown select worksheet to point data? Use function to select another worksheet eugeneradial Excel 2 04-27-2017 04:53 AM
Dropdown select worksheet to point data? Select added value from dropdown menu, program output Aleksm Excel Programming 1 01-28-2017 05:40 AM
Dropdown select worksheet to point data? select a cluster of point from a range based on x and y values sandcharles Excel 5 02-19-2015 06:15 AM
Dropdown select worksheet to point data? Appending unique data from one worksheet to existing data on another worksheet EdStockton Excel 1 08-06-2014 11:00 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft