I have a workbook where in Sheet1 Cell A1 is a customer name, and A2:A5 contain parameters for the customer. I would like to be able to input those data to a Vlookup table on Sheet2. (The Vlookup is used to fill values on Sheet3).
I have been trying to create a macro to copy those parameters from sheet1A2:A5 by finding the match for A1 in the Vlookup table in Sheet2 and then copying to the corresponding matching row , A2 pasting into column 3 (on the corresponding row of course), A3 into colum 4, A4 into column 5 and A5 into Column 6.
In the attachment you will see an example of what I am trying to accomplish. What I am trying to do is find VBA code that is either specific to this worksheet or in a macro. When the sheet is opened I enter a date in B2. I then enter data into A7, B7, and C7. What I would like to happen is when the data is entered into A7, B7, and C7 the sheet goes and finds the same date that I entered in B2 and copies that data from A7, B7, and C7 into F7, G7, and H7.
I created a lookup table that works quite well. It even has if statements in the LookUp Formula. However, I have to update the table it pulls the information from each day. I wind up recreating the range each time because the table always has more rows each time. Is there a way I could just paste the table in each day and not have to change the range? The columns never change.
I have a Takeoff sheet where an estimator enters a part# and the rest of the data is entered on the Takeoff sheet by using Vlookup to retrieve the information from the Products Sheet (there are about 12,000 products with 12 fields for each product). I need to then take all of the parts on the Takeoff sheet, and summarize the data, which is what Pivot Tables are for. The thing I cannot find out, is if this can be done. The machine keeps running out of memory (it has 32g, so I question that, and I tested with a 500 row sheet and got the same result), so I can never get the Pivot Table to actually create, or get a useful error message. Searching the web and this forum tells lots about Vlookup IN a Pivot Table, but not creating a Pivot Table from Vlookup data. I copied the data values to a new sheet to test the data and the Pivot created fine, so I believe the data itself is properly formatted.
I'm using VLOOKUP with MATCH to find data in a table. I now have to add a third condition to the look up. I've attahced a file as an example. I'm not sure how to list the data for the third condtion. I created another table with the data for third condition.
I am trying to basically search for the last non zero entry in a column and then return a value in the same row as that last non zero entry.
For example:
My first column of the table is time, second column is submission/marking of coursework (denoted by +1 & -1) and the third column is the number of courseworks awaiting to be marked. My aim is to search the third column for the last non zero value then return the time (from first column) that last non zero value appears.
I am using a vlookup with a table that has data which uses a number which correlates to an item. A person types the number into a cell which triggers the vlookup. See example
35apple37orange40lemon
So..if someone enters let say number 36 into the look up cell..since 36 does not exist in the table the vlookup returns the value next to cell 37. Is there a way to use vlookup so that if a number it is looking up does not exist it wont return the next value? I would like to return an error message if the number being looked up does not exist.
I have a lookup table which needs to be able to retrieve data from columns as well as rows and not sure if this is possible.
My data is set up with an ID number, financial year and data across the columns e.g
ID F/Y Apples Pears 9999 2004/5 5 4 9999 2005/6 7 8 9881 2003/4 5 3
My lookup table will have the ID number field which will be manually entered to lookup the information on the data sheet. e.g
ID 9999 FY Apples Pears 2004/5 5 4 2005/6 7 8
I can't work out a way to get excel to only give me the number of apples and pears for that year for that ID number. Not all ID numbers will have the same number of financial years so I may need to use VBA.
I have several spreadsheets referencing the "Data" sheet's table (about 35 columns, and the row lengths will differ from 10 to several hundred).
I need to be able to filter the table in "Data", and have the hidden rows not show up everywhere else in the document. I have both vlookups and index formulas in the other spreadsheets, and what I'd like to do is be able to filter by any column in the table and have only the shown results show in the other sheets.
I know this might be accomplished using subtotal, and Row, etc., but how to set it up with the different formulas I have going on in the sheet that pull data from the table. I need this to work with both the vlookups and index cells.
I have a report I am attempting to populate with data from a pivot table in another worksheet. Column A holds all the reference numbers (primary key), column B contains various start dates, and I want column C to contain all the payments made since the start date for each reference number.
The source data is a pivot table with Row = Reference number, column = transaction date, values = transaction amounts. This is an extremely large table, as I'm processing data from almost 1,200 cases, which each have around 20 payments spread over the last year, on completely random days. What I would like to do is build a formula in my report which looks up the records for the reference number from column A, and then adds up all the payments which have been made after the date in column B (and ignore any payments in the table which are before that date).
And to make things more complicated:
if an error is generated, it needs to return as 0, not #N/AThe report has the dates in UK format dd/mm/yyyy, but the pivot table has the dates in SQL format: yyyy-mm-ddThe pivot table is connected to a SQL database via ODBC and has to refresh every time it is opened.
I have a vlookup function which takes the data from a table in a closed file. A folder where the file would be located will change based on the value in the cell reference.
I used below formula which works, but every time when i drag or try to edit and enter, the path of the file path brokes and i need to reselect the path where the file is located. Is there a way where i can stop this?
I have put a VLOOKUP in place for a range of cells. Where the referenced cell has no entry it puts #N/A in the sheet. This is causing me further problems, is there a way to get all entries which equal this to leave the cell blank?
I have a Vlookup which I want to modify so that it can become dynamic as the table array part of the vlookup will change.
So the basic vlookup is as follows: =VLOOKUP($R$3,ATTRIBUTION_FACTSET!$M$60:$P$73,2,0) but the data I am looking for wont always be in the range M60:P73.
So I tried to make it dynamic by doing the following: =VLOOKUP($R$3,INDIRECT("ATTRIBUTION_FACTSET"&"!M"&U1&":P"&V1),2,FALSE) The idea being that U1 and V1 would be numbers that can change so in this case U1 would equal 60 and V1 would equal 73
This vlookup is giving me #N/A and no matter how I modify it I cannot get it to work.
I have a table (which has 100s of rows) and I want to find out for each row entry, which column the first non-zero number appears. I have attached an example. Items 7, 12 and 16 first appear within this time period and I would like the First Appeared column to say Week 12 (for Item 6), Week 8 (for Item 12) and Week 18 (for Item 16).
Book, Loaned to, Date A Tale of 2 Cities, John, 1/1/2010 Oliver Twist, Mary, 2/3/2011 Great Expectations, James, 4/6/2011 Oliver Twist, Greg, 6/2/2010
I want to make it such that, when I input the name of the book, it will tell me the person whom I lent it to last and the date of the transaction. Preferably, this should be done without any assumptions on how the table is ordered. For example:
Book, Loaned to, Date A Tale of 2 Cities, John, 1/1/2010 Oliver Twist, Mary, 2/3/2011 Great Expectations, James, 4/6/2011 Oliver Twist, Greg, 6/2/2010
I want to make it such that, when I input the name of the book, it will tell me the person whom I lent it to last and the date of the transaction. Preferably, this should be done without any assumptions on how the table is ordered. For example:
and what I want is to say put a formula in cell B3 on Sheet 1 pointing to cell C3 that has zip code 33333. I want it to then take that and look in Sheet 2 and search A1:D3 and when it finds 33333, return "territory 2" back to cell B3 on Sheet 1.
I have a spreadsheet that is being updated every month with new project information. The spreadsheet is a log of all the hours worked by employees on each project. Due to many employees working on the same projects and each weekly log per engineer having an individual row to display these hours, there are many duplicated cells.
I am wondering if there is a way for me to display in another table, just a list of the projects that exist.
For example, the original table may look something like this:
WEEK MONTH PROJECT HOURS 1 Jan A 5 1 Jan B 4 1 Jan A 7 5 Feb C 5 5 Feb C 3 5 Feb B 8
I would like to display a table that looks like:
PROJECTS A B C
In March there could be a project D and I would like that to be automatically added on to the second table, if possible?
I have a standard bar graph with 2 sets of data: 1 dataset on the primary axis and 1 on the secondary axis. I have defined the legend entries fairly specifically so the descriptions are long. I have also inlcluded a 'rank' value into the graph which doesn't appear on the graph as the values on either axis aren't at a range that allows it to display. However, I want to display the rank value in a table below the graph. However, when I add the table, the legend entries are so long, the graph gets 'scrunched' and looks terrible.
Is there a way to either:
1.) Only show the rank data in the data table below the graph? or 2.) Show only the data in the data table below the graph and not the legend entries? or 3.) Another option to display the rank data on the graph?
Vlookup a table, to another table that has multiple values.
E.g.
Table GPASP002
Look up table - need to return second coloum but not the first value, all the values? GPASP002 KZASP100 GPASP002 KZASP500 GPASP002 KZASP600 GPASP002 KZASP501 GPASP002 KZASP502 GPASP002 KZASP601
I have a table that i use for a customer database. and the end user adds new customers to this table, what i would like is for a message box to pop up whenever cell B2 matches an entry in a column in the customers table. the table starts on row 25, and the column i would like to check for duplicates is column B. I would like the message box to give the user the message "A customer by this name already exists, Would you like to load this customers file?" If the answer is yes, then the row that the match was found on would be copied and pasted onto row 1. if the answer is no, then nothing else happens. I hope this makes sense, i am posting this sheet of my workbook for reference.
I get a file every day that contains online orders for a client. They have made the state and country fields on the order form free text, so sometimes the State field has CA, sometimes California, sometimes even Cal or Cali. Oregon may be represented as OR, Oregon, or Ore (and one time even Orygon.)
The country field may have US, USA, United States and sometimes United States of America.
Well, they need this data imported to their system with the states fully spelled out: Oregon, California. And the country spelled out as well: United States, Canada.
Right now I have a lookup tables worksheet that I just have a macro run a vlookup on. But I'd like to know if there is a way I could just put it all in the code, without the external tables.
i.e. some code that, in English, would basically say, "If the value of any cell in column K is among these values, replace it with those values, otherwise just leave it as it is". Could I do that while containing the two sets of values right in the code rather than on a worksheet?
I really just want to replace the standard abbreviated state/country codes with the full text, and if the value does contain Cali or Ore, let them manually make the change. Hopefully that will finally nudge them to just make the online order form utilize a drop-down list of states and countries, rather than free text.
I am working on a project and would like to see if there is a solution for it. i have a workbook that has data entry that is summarized at a master level but I need to automatically use a formula to update another sheet after clicking an udpate button. The data from the data entry sheet needs to be allocated to all the lines that has the same master item based on the formula. A test workbook is attached ...
Now that the calculations are working, with the press of a button, I need to be able to select a range of dates and copy all lines within the range to a seperate sheet with the desired name under the same headings they currently reside under. I have included some modified code that is being used in another spreadsheet that was created for me, but I do not pretent to understand all of it and I no longer work with the creator of the spreadsheet. How do I use a button to open the form for date selections and entering the name of the new sheet, and then use the start button on the form to begin the matching and copying to a new sheet? If there is an easier way I am all for that too.
I want the script to find if the value entered in the form is matching the values in column 'A' in the database and if it matches then it needs to select the cell as active cell - to populate the form details. And if there is no matching value found, the script needs to select the last empty cell of the column 'A' to populate the data entered in the form.
1) Form has 10 different fields that needs to be filled by the user.
2) Field 1 - is a text box for 'Request #' to be entered by the user.
3) After filling in all the fields - once clicked on OK, the form should search for the the 'request #' entered on the form in the database (Form and the database are in the same workbook).
4) If the 'Reqeust #' in the Column 'A' matches the the 'Request #' entered in the form, then the matching cell should be selected (Activecell -Were the data can be overwritten, with the new entry)
5)If there is no matching 'Request #' found in the database, the script should loop to select the next available blank cell in column 'A'. So that the form data can be entered.
I am having a sheet where I keep track of when online surveys have been sent to users. The users enail address (column K) may be on the list for several times, but I need to make sure that there is at least a 7 days pause between sending the first mail and the second, depending on the visit date (column G).If there are less than 7 days between two entries with the same email address, the user is not qualified for taking another survey.
I was thinking to write an IF formula which returns either 1 or 0 and then let conditional formatting highlight and HIDE the row via a VBA loop.
Is there a formula that will allow me to look for the existence of any number value in a row of one worksheet and then return a specific number value in a cell on another worksheet? For example, if the formula finds any number value it will always return the number 15 to a cell on another worksheet.