using VBA, I created a simple problem that I can't figure out how to solve in worksheet 2, I have 3 worksheets.
1. Players - Complete info of players
2. Members - When I select the team name, I'd like to display the info First Name, Last Name and Team only for the team name I've chosen. This should automatically change whenever I select a team name.
3. Team Codes - Tables I used for my vlookup and drop down list.
The worksheet perfectly performs as expected, big thanks to JBeaucaire again. Now, as am looking around of the file and doing some exploration on the array, as I was trying to make this applicable to real life application, I noticed the following mysteries...
1. When I tried to delete some rows, The Members Sheet output went wrong and displaying #N/A. I noticed it's because the formula range have change. But it would be hard for a new user to re-arrange it over and over again everytime when a row is deleted.
2. I've been trying to solve this problem to no avail. I found this link that gives me an idea how my worksheet should work, this was already solved but I can't apply it on my worksheet...
3. I would like to add another column on A to put the 0 and 1 on, but I don't need to delete this column after the resort so that next time if I need to delete another row existing row i'll just replace the existing 0 with 1 on column A.
I have a document that has a sheet for each project, 3 at the moment. On this sheet are various text & currency fields, 24 in total.
I want to create an overview document for all of the projects so it will display lines from the individual project sheets that are currently showing as NOT complete.
To clarify I currently have 4 categories for status at the moment: Planning, In Progress, Awaiting Inspection Report, Complete. So I want my overview to show anything that is not complete.
I also have no need for all of the 24 columns in the overview either, I've highlighted about 9 at the moment.
I think maybe a lookup and If combination is my answer but I'm not altogether sure if there are other functions out there that I just haven't come across yet, or how to combine an if and lookup.
Also I would like the data to be sorted firstly by Inspection Location and then in date order if possible. I know I could use the auto filter option once the data is pulled across but it was be easier for the other users of this document whose skills range greatly.
I am working on a product quote pricing worksheet. I have several products and on my one worksheet I have about 5 different columns with drop down boxes with several different choices. I want to know if there is a way to select something from the drop down list and once something is chosen information on that particular product can populate a cell on another worksheet.
I don't really know how to search this question but what I am trying to do is pull information from one worksheet to another only containing numbers greater than 0. For example, i have an order sheet containing everything that is in stock, then I go down the list and put in the number of items being sold (1,2,3, etc). Some items will have a value of zero.
Then the items that have numbers (the ones that are being sold) I want to be able to pull these numbers along with the item description onto another worksheet which will be the invoice. Then excel will add up the prices of only the items being sold and give me a total value on the invoice. Is this doable?
I have one worksheet with 238 rows and another with 163 rows. I want to pull information into the sheet with 238 rows whenever there is a match to a record in the 163 rows. I tried VLookup, but as soon as it gets to a record in the 238 that doesn't exist in the 163 it gives errrors and stops. I've looked at =offset and =offset(match) but I'm not finding anything that deals with the situation of not always being a one-to-one (or even one-to many) relationship. Ultimately I want to pull the Category & Project fields into the records matching on IDNumb in Sheet 1 but Sheet 1 has more records than Sheet2. example......
I've got an excel master roster sheet filled with youth hockey player info and stats. Fields are in columns, and a couple hundred rows of players. What I'm planning to do use this info for a spring teams draft. I've got a blank field/column ready to write in the team names to which each player will be drafted.
What I'd like to do is have several other 'team pages' in the excel workbook that first look through the master roster sheet, checking for a matching team name. Next, those team pages would populate themselves with all the player information on the master sheet, provided the team name matches. Basically I want to have the rosters created automatically rather than doing any autofiltering after.
I did try a VLookup function, but it would only pull the first matching record, and nothing after.
I need to create a new excel template for work. I was planning to copy a few worksheets from an old workbook over into the new workbook, mostly just for formatting for some graphs/tables that I would then link to the new workbook. A coworker said I cannot do this as copying from an old workbook will bring in "hidden" data that could some way impact the integrity of the new workbook and that the copied/old worksheet would FOREVER be linked to the new workbook no matter what I do. Is this true? If so, are there things I can do to remove any reliance to the old workbook.
I have a workbook with 4 worksheet that store different type of data. It also has a userform that load at start of the application which is to search the data in the workbook. The userform has a combobox where the names of the sheets are stored. when the user selects say Sheet2 in the combobox, it enables the relevant textboxes on the userform and activates the worksheet at the change event. The userform has a search button that searches all the worksheets based on the text entered in a textbox.
The problem: how to search based on 1 textbox. What I want is: say for e.g the end-user selects sheet2 from the combobox, this intern enables 4 textboxes (Name, DOB, Nationality, ID #) on the userform. The end-user should have the liberty to enter data in 1 and/or any of the textboxes. The search should be performed, that if data is only in 1 of any of textboxes then give all rows that fit that criteria and display in a temp worksheet. if say the name and dob is filled by the user than what matches both should be displayed in a temp worksheet. if say dob, name and ID# given so the search button should narrow down to fit all 3 criteria and then display result in temp worksheet. As if mentioned data can be entered in either just 1 or any or all textboxes.
E.g. the worksheet is (Columns are Name, Nationality, DOB, ID#)
row 1 = name: Steven Martin, DOB: 27-may-1993, Nationality: Trinidad & Tobago, ID #: 1234567 row 2 = name: Gary Richards, DOB: 2-FEB-1993, Nationality: British, ID #: 456789 row 3 = name: David Cohen, DOB: 27-May 1993, Nationality: American, ID #: 98765 row 4 = name: Roberto McDonalds, DOB 21-Jul-1962, Nationality: British, ID # 654321 row 5= name: Gary Richards, DOB: 01-Dec-1978, Nationality: Australian, ID # 1234567
Now if the user enters only name as "Gary Richards" and search then row 2 and 5 should be displayed in a temp worksheet. if user enters name Roberto McDonald and ID# 1234567 then it should not display anything. if user enters DOB 27-may-1993 and nationality British and ID # 1234567 then as well shouldn't display anything and should a msgbox "no data found".
taking a spreadsheet that has vertical repeating info in Column A and results in Column B and converting that to another sheet in a horizontal list. The main problem is that the repeating info in Column A may or may not always be the same for every customer; therefore, when it is placed in a horizontal format some cells may or may not have results. I tried a arbitrary lookup. Here is the formula I used:
Basically every month I keep a track of my sales in a spreadsheet.
I've attached a sample file : Discrepancy Form.xlsx
Sometimes I don't get paid correctly. So rather then filling everything in manually, I want to simply put a "Y" (for yes, there's a discrepancy) or "N" (for no, there's no discrepancy" next to worksheet "Sales" but then have it display the values in worksheet "Discrepancy."
some spreadsheets i open dont have 65536 rows , they only a 100 or 200 its seems the worksheets have been cut down. how can i do this based on the last row in the e coloum.
Ie last entry in the e coloumn is 500 the worksheet to only be that big
I have an excel workbook that has multiple worksheets that is linked to our in-house system via ODBC and it refreshes every 5 minutes with up to date sales data.
I am looking to output just one of the work sheets onto a large LCD display / wallboard.
I need to just display the summary worksheet without the excel toolbars / gui
I'm working on a project, and I need a cell on a worksheet to produce the name of the worksheet, such that if the worksheet changes, or is copied [Sheet1 renamed to Sheet(1), for example] the cell will automatically update [now displaying Sheet(1) in cell A1].
I've created a rudimentary VBA code to display 3 worksheets for 30 seconds each. Need revising it as a loop? The idea is to continue displaying each worksheet until I move the mouse or click any key.
Code: Private Sub CommandButton2_Click()
'Close the UserForm and display worksheets Unload Me Sheets("GROSS").Select
I want to create a formula (preferably w/o macros) to insert the sheet name in a cell. In other words, if the worksheet name is "Location1", then cell A1 result in that worksheet would be "Location1" based on a formula that pulls it from the sheet name.
I found a post that ONLY does this for the current sheet: =RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename")))
However, the sheet name is not frozen with it's sheet name when you switch sheets. I will have many sheets in the workbook.
How about if I have a long string of numbers that I want to display in another worksheet. For example, here is an item id off eBay, that I want displayed in another worksheet if it is present, otherwise, it should be blank. Here is the item id, they are all unique by the way.... 230092645222. I tried to use this formula below but it didn't work.
I have a product Database with 11 columns. I am trying to build a Search/look-up userform.
I found a brialliant example of the same posted by Roy, UK. I have copied the same and its working well, but with a few little problems.
Here's what I've got:
I have a userform with a Combobox (called Combobox2) where it shows all the products from column B in the worksheet "ProductData". In the worksheet "ProductData" , I have 11 Columns with headings from B1:L1.
When user selects a product from the dropdown list (from Combobox2), all the details related to that product from other columns are displayed on the userform via labels.
This part is working fine....except that the values in Combobox2 are taken from activesheet and I want them to come from worksheet "ProductData". I have hidden the sheet "ProductData".
Second Part is, I have about 20 products in the Database and all of them have a Product Specification Sheet in PDF format. I am just wondering, if there is any way I can have a button on the userform that can used to open this PDF datasheet for the product thats being lookeed up by user.
What I mean is, if user selects productA from the combobox2, then it displays all the info about the the ProductA on the labels on the usewrform. and if user clicks on the "View Data Sheet" button then it opens the Datasheet PDF file for ProductA.
Below is my code for the first part:
Option Explicit
Private Sub ComboBox2_Change() Dim ws As Worksheet Set ws = Worksheets("ProductData") Dim Ncell As Range With Range("B2", Range("b65536").End(xlUp)) Set Ncell = .Find(ComboBox2.Value, LookIn:=xlValues)
I have a workbook that lists various shipment numbers and their contents to several locations. What I am trying to do is, on a different worksheet in the same workbook, list all shipments to one location; having different worksheets for each specific location.
I am sure there must be an extremely simple solution to this, however I am unable to locate it.
Also I would like the separate location worksheets to autoupdate when new shipments are entered on the main worksheet.
I'm trying to add a message box that will appear when you activate a worksheet in a workbook. This is what I have, but it's not working.
Private Sub Workbook_SheetActivate(ByVal Sh As Object) If Sh. Name = "P2 Forecast" Then MsgBox "Ensure you have locked your forecast on the Sales Forecast Tab prior to working your P2s" Else End If
I am trying to build a report based on data in a separate worksheet. The report must only show the name of the value and qty associated with it only if the qty is greater than 0.
As an example, the values can be colors.
Column A = Names of Colors: Red, Blue, Green, Yellow, Black Column B = Qty of each Color: 5,4,0,1,0
The report is held on a separate spreadsheet. I would like to only show the values that have qty's greater than 0, not any values that have a value of 0.