Pull A Value (text) From Another Spreadsheet Corresponding With A Number
Nov 11, 2008
I am trying to pull a value (text) from another spreadsheet corresponding with a number. I can't use vlookup because none of them are in a left column. HEre's an example:
there are 2 columns with names and percentages. I am trying to pull a name that corresponds to a certain percentage.
I have WorkbookA that pull numbers from WorkbookB. In Cell D2 of WorkbookA is the name of WorkbookB. The data to be pulled from WorkbookB is in Cells H364 through S364, H being data for January and S being data for December. In January, the data from Cell H364 is pulled into WorkbookA. In February, the data from Cell I364 is pulled into WorkbookA, and so on.
The formula can be written such that, based on WorkbookA indicating in Cell B14 the current month, each month pulls the correct month's data from these cells in WorkbookB.
I have two formula i use to pull out the number from text in a cell (J2), the problem i am having is that it will only pull out numbers up to 99,999 and i now have numbers over a million in some case that i need to report on.
I have two way I have been doing this see below, how can i change them so they will pull the number over a million?
I am sure it easy but i have tried all sort and i can not get it to work...
I'm trying to pull a specific 10 digit number from a text string. The ID # is always 10 digits however sometimes there are dates in the data that need to be excluded as well as other numbers such as "I-9". The 10 digit number will always start with 1 or 8. Is there a macro or Formula to extract this data? Please find the example dataset below.
Edit: I should specify I want the "100118416" number from the first cell example or the "800011320" number from the 10th example.
In a1 i have 100.888 and a2 122.222 and a3 122.555UK,(and so on) in column b i want just want the number and not the uk, i have tried =left(a1,7) which works until a3 then it give me characters 122.555 and not the number/value 122.55. I need it as a value to use the vlookup, how do i do it?
I am having an issue with formatting a cell to 'general'. I have a macro that runs using a formula (i.e. =MID(A12, 18,5)) to extract certain characters from an external data source. I then use only the values of that formula. There then is another macro that compares that value to another value in another worksheet. The issue I am having is when the macro runs, the code is read as ActiveCell.Offset(0, 3).Value...but instead of returning the value in 'general' format, it returns it with what appears to be text (i.e. "75.50" instead of 75.5). This acts as a mismatch since the quotes appear.
I have attempted several things to correct, but even if I try to format-->general it maintains the quotes. The only way it changes is if I click within the cell...then it turns to general (i.e."75.00" becomes 75.5). I am not sure what is the issue.
I have a column of numbers each have a 0. infront of them (example 0.2346 0.5698). I want to pull the number from the right until it hits the decimal sign. So for the two above the result would be 2346 and 5698
I have a userform with a textbox that has numbers in it, but when I write them to Excel they are put in the column as text, not as numbers.
[/CODE]Cells(erow,6).Value = txtbox_Amount[CODE]
How can I force it to write the information as numbers?
P.S. My computer won't let me paste into these posts, even when it asks me to allow access to my clipboard. What setting can I change so I can paste my code instead of typing it.
I have a workbook with a spreadsheet that will have ID numbers entered into it. In the column next to the ID numbers, I would like to have usernames automatically populate. I have another workbook that has a spreadsheet with one column with user ID and one column with the username for that particular ID number. Is there a formula I can use to have Excel match the user ID entered to the user ID on another spreadsheet, and then pull in the column next to it (the username)?
I have a complex data set that has been imported into Excel from a binary data file and I am looking for a way to simply pull out specific fields. I tried to record a Macro that would simply delete the rows between the data rows I want to keep, but it always references itself to those same ranges and I'm not sure how to identify that I want it to sequentially move down the page deleting the same number of rows, and adding the row of information I want to keep as it goes.
I have two spreadsheets, i suppose one part of the solution may be to copy spreadsheet 2 into a new worksheet in spreadsheet 1, but this is my current situation:
Spreadsheet 1 has "Employee lastname" in column F, "Employee Firstname" in column G. Column A in this sheet needs updating with the data populated in column H for that employee in spreadsheet 2 - the lastname is contained in column B, firstname in column C - so i need to to a match.
I need to find text within middle of a string. Character before required text is say AAA Character after required text is say BBB Text required can vary in length. Extract text and place in another column.
All text in a single column, required text not in every line. but does repeat.
I have a spreadsheet that has item names and then at the end the manufacturer number. I'd want to find way cut that manufacturer number off the end and move it to its own column.
I pasted some examples below of what it looks like. It is just coincidence that the items below all that the same length...they are all of varying lengths. The one thing they all have in common is that it the last thing in the cell and seperated by a space. I would think there would be a way to find the last space in the cell and cut everything to the right of that. I can do it in a macro if necessary, but where to start.
AVENGERS FIGURE ASST 3 75 A1816 AVENGERS HULK HANDS A1827 AVENGERS SLAMMERS A1822 BATMAN BATMOBILE Y1258 BATMAN DK KNIGHT FIGURE ASST Y7572 BATMAN FIG N VEHICLE ASST Y1252
(the html is messing up the out put for a2 and a3)
I am trying to get the total amout that is in the set in individual cells. I have the size type done just having trouble timesing the numbers in the cell
Example. A1 A2 A3 10/2LB/CASE 20 Pound 12 16 OZ CASE 192 OZ 12/750ML/CASE 9000 ML 5 Gal/Box 5 Gallon
(i have placed the columns to match formatting normal=A1 Bold=A2 Underline=A3)
I have 2 worksheets (Sheet1 and Sheet2). Sheet 1 contains around 3000 records with multiple fields (columns). Column A contains the ID number. Sheet 2 contains some records with different fields except for the ID number which is common.
I need a macro to retrieve information from sheet1 and copy it to sheet 2 based on the ID Number; i.e the macro needs to get the ID number from sheet2, locate it in sheet1 and copy the data from column D in sheet1 for that particular record and paste it in sheet2.
My Cells contain loads of text like this: ["16733:0:0"] = “Product ID”:1:1:0", now what i need is just the 16733 to be extracted into its own cell, and the Product ID to be extracted into the cell next to it... all other Text can be deleted. The problem is, pretty much the whole of the text changes in each line :-
In the Numbered part of it (the bit I actually need), it would be either 4 or 5 digits long. Im guessing what I need to do is remove parts bit by bit, but for a novice user - Its proving a bit difficult!
I am trying to create a formula to pull the person's name and the avg number of cartons sorted for the month from this spreadsheet.
I've attached a sample of the spreadsheet I created, you will see at the bottom I would like to see the person that had the highest avg for the month and the person with the lowest avg for the month.
This is just a simple spreadsheet to track productivity of my sortation employees.
I am trying to do season stats for my roller derby league. I have a great spreadsheet going but the one thing I want to do, I can't seem to do. I am attaching a "test" file. very simple and small but shows what I need to do.
I have different sections and I am trying to pull the highest number out of that section. For this example, it is under the green Jams Skated: Jams at Jammer. The number on the right is the highest number of jams skated while the number on the left should be the name of the skater who has this number. Okay, no problems there. My problem occurs when I try to move these same formulas to another sheet. in this case, sheet 2. It pulls all kinds of strange things.
Formula to pull the lowest number that falls in Cells I2:L2 and the number must be 0 or Greater. Some of the numbers might be negatives and I am trying not to pull those numbers.
I need to pull a reference number and assign it to all records in a particular section. The code I recorded keeps going back to the first section. Also would like it to repeat until all records have the reference number attached.
I have sheet 1 which has titles set up in column A. These titles are pulled from Sheet 2 (same column). I also have a date listed at the top of sheet 1 (in the same row as dates in sheet 2, but sheet 2 contains multiple columns for each quarter). I would like to set something up where if the date in sheet 1 matches the date in sheet 2 it pulls the corresponding values from the named rows in sheet 1. I tried using sumproduct but its not working b/c it wont take TEXT. Plus I want it to search across all of the columns, not just one.
Below is sheet 1 and I would like to be able to pull 1Q08 values from sheet 2 (which contains the values for every quarter). This is my formula (the first part is the date, the second is row titles, the third is the value (although its only pulling from one column, it s/b pulling from all) :
Is there someway to fix this, it would be a huge time saver. -------------------------------------- 1Q08 Revenue Direct Costs Gross Profit Indirect Costs Stock Based Compensation Restructure Charge ....................
I'm trying to pull text out of a middle of a long string of data located within one cell. The string is not always the same size and the text I need to pull out is not always in the same spot
I want to pull out the text "Jimmy Bop (Broad) It will always be between "adgroup=" and ">>/" (although sometimes the character ">>/" will appear multiple times within the string.
Is it possible to somehow filter, search, find, etc, and basically clean cell A1 so that in the end it has just G3**D1234567?
I made a search macro, but the problem is there is so much text that it takes 2 seconds per cell to do a find. There are 6 columns with 65000 rows. I assume if I clean up each cell and do a "xlWhole" instead of "xlPart" in the find code, it will be much faster.
The title of this thread is the best way I can describe what I wish to accomplish. You see, I have a column of information requests in an Excel spreadsheet, each of which his tagged with an alphanumeric request number, and I wish to sort and/or perform and min/max function on the request identification. However, each ID has a IDR in front of it - for instance, IDR000452 - and the letters make the system read the contents as text. Does anyone know of a formula I can use to create a new cell which contains only the numerical contents of the above example?
I have some code that loops through a bunch of text files, finding any that contain an href, and printing that entire line (if found) into excel. These text files are source code for a website. What I need to do, is within this line being pasted, is grab only a few things from within some tags such as the info between <title>This is the title</title> the tags and print it into a colum, I do not want the entire line, just certain things that are in the line. I have supplied the code that I currently have. I have it so that 'WholeLine' contains the entire line. Can I manipulate that with something like Cells (myR, 3).Value = WholeFile(?).
Sub CheckTextFilesForHREFs() MsgBox "Press OK to begin report" Dim WholeLine As String Dim myPath As String Dim workfile As String Dim myR As Long