I have a spreadsheet containing 2 columns. Column B contains a list of item numbers which are made up of either all numeric values or alpha numeric values. Column A will contain the vendor code which must be extracted from the item number in Column B based on the following criteria:
a. If the item # in Column B begins with the letters ZZZ and the next four (4) characters immediately following the ZZZ letters are ALL numeric, then the vendor code = the next four characters immediately following the ZZZ.
b. If the item # in Column B begins with the letters ZZZ and the next three (3) characters immediately following the ZZZ letters are alpha numeric, then the vendor code = the next three characters immediately following the ZZZ.
c. If the item # in Column B begins with the letters AMER, then the vendor code = AMER.
d. If the first four (4) characters in the item # in column B are all numeric values then the vendor code = the first four numeric characters from the item #.
e. If the first three (3) characters in the item # in Column B are alpha-numeric values, then the vendor code = the first three alpha numeric characters from the item # in Column B.
I tried writing the following formula and receive a #VALUE! error message:
i have 8 digit invoice numbers. Each 8 digit number starts with one of three 4 digit ID codes. Depending on the first 4 digits, I want a different "company" to show up.
ive search the forums for this particular need and found somthing close but not what i need. i need to write a formula (not VBA) to extract a string of letters which can very in number out of a string of characters in a particular cell.
ex. cell A1= 00abcdefg00-000-00 cell A2 = abcdefg
i've tried different methods but can seem to come up with anything.
I would like to extract the 1 between the : and - and as a seperate extraction would like te 2 between the - and the $ I have tried a few things but end up with the - as the length of the data changes
I have a directory folder with an active workbook and another workbook id like to copy data from. The Following macro opens up a file in the same directory, copies some data and pastes it in the active workbook. However with this code I have to specify the filename, 'Data.xlsm' in the example code. I would like it to copy data from the only other workbook in the current directory WITHOUT having to specify the name in the code, so just opening it up no matter what filename it has.
In addition I would like to extract the filename from the workbook im copying data from and paste it into the activewoorkbook in sheet 1 Cell A1. I had a look at getopenfilename function but cant seem to make it work for my purpose.
So we have people's names in a table. First name in one column and last name in another column. We have a 3rd column where we can use 8 characters to do a combination of First 5 of Last Name + first 3 of first name. However, if someone's last name is only 3 or 4 characters, we'd then want to take more from the first name to fill out the 8 characters.
So: Charles Johnson -> Johnscha John Smith -> Smithjoh Willian Wu -> Wuwillia
What's the best way to do that without creating some crazy formula with tons of if/thens?
In one column (Column A) I have a column of data which contains long descriptive text - i want to extract a specific piece of text from this descriptive text and enter it into the next Column (Column B).
E.g. Cell A1 = "Hello Buddy, how are you?" - i want to extract the word Buddy and enter it into cell B1
then A2 into B2, A3 into B3, etc, etc,...
Is there a simple macro out there that can do this?
Is there an Excel formula to remove the spacebar + characters in red, as shown below? I need to be left with only the last name, first name and the semicolon.
Mouse, Mickey ;
Microsoft Outlook has changed the way that email addresses from the global addressbook copy and paste (from version 2003 to version 2010).
I have a cell that contains values such as "AAPL" or "0001.HK" (without the quotes). I would like to extract the content to the left of "." (if any). i.e. I want the cell to return "aapl" or "0001". What formula should I use?
If I have some data in a cell (let's say D1) such as "m-3,s-2,xl-4", what formula can I use in say cell D2 so that if I find the characters "s-" in Cell D1, then it will return the value "2".
Similarly, in say in Cell D3, I would then want to use the same formula but modify it so that if the characters "xl-" are contained within Cell D1, the formula will return "4"
I'm trying to extract pieces of a part number and place each section in another cell. It's kind of like a text to columns, but in a formula and removing part of the data. This is what I'm starting with: Cell 3A: HB149E.505
I'm trying to figure out a formula that will fill the following which are currently blank:
Cell 3A: HB149 Cell 3B: .505
Cell 3A will always have 5 digits prior to the decimal and 3 digits afterward so that is not a problem.
Need formula to extract the text from a cell, with which a vlookup will be preformed on? For example if a cell contains: 116PH(604052) I would need to perform a vlookup on the PH.
The problem is that the "PH" in this case can vary where it's at in the string of numbers. Also, some cells may only have a three digit number with the two letters following. See my attached spreadsheet as an example. The current formula I have in column A on the attached spreadsheet performs the vlookup fine if there is only the three digit number followed by the two letters, but as I've outlined above, this isn't sufficient.
I receive a workbook on a monthly basis and it arrives in csv format. I need to format it and split it into several pages prior to sending to managers. I'm comfortable with the vba for formatting and splitting it into several pages but I have a problem with some cells that always have data in them in the same (incorrect) fashion.
how to go about fixing these cells and then I can get on with writing that into the macro.
Currently looks like:
A || B || C No requested || No Supplied || Percentage 4 || 4100% 12 || 875% 6 || 350%
Should look like:
A || B || C No requested || No Supplied || Percentage 4 || 4 || 100% 12 || 8 || 75% 6 || 3 || 50%
I was thinking of some kind of Left() formula to extract the leftmost character and place it into it's new cell BUT realise that sometimes I might need to extract 2 (or perhaps even more) characters.
I'm trying to extract information from one specific cell, and place it into another. This other thread kind of does what I'm looking for. I wish to extract from the following; "20/04/2009 5:42:51 AM". Placing the date in one cell, and the time in another. All spacing within the quotation marks is respective of the cell. Obviously dates and times would vary.
I currently have an issue with sorting data that i download into excel.
I have a list of rows that have text that look something like the below:
redeem: 141BA9835E Colour: Silver
I want to copy only the colour at the end of each of the colours into a new cell. So in theory the formula will pick only the colour out. Below is a list of more rows as an example where it changes slightly:
redeem: C3CC237E3C Colour: Silver
redeem: db56b2177c Colour: Pink
redeem: 7d3fe7eba2 Colour: Black
redeem: EBE56BDA7A Colour: Silver
To summarise have can i extract into the cell next door, only the colours from text
Currently i am having to manually type only the colour into a cell, and it is taking forever when you have 1000's or rows
I have a column with numbers in. The column has been formatted to include a currency code but this can change on each row, e.g. M1 may be £20,000,000, M2 may be $40,000,000.
I want to insert a column prior to this column and extract the currency so that in L1 I would have £ and in L2 I would have $.
I have a bunch of contributions events and I am trying to extract the date ... for example. each line has "contribution 11/02/2011" or "contribution 12/17/2010" is there a formula that will pull out the date. this way I don't have to do it manually.
If H15 = 12:00pm and H16 = 2:00pm, the result in A3 = 2:00
Cell A5 has the formula: "=A4*A3"
In cell A4, I enter a number, say "4", which produces the result "8" in cell A5
Now...I want to add to the formula in cell A5 to make it "=(A4*A3)+A4". The result I WANT in this example should be 12 but no matter what, the answer always ignores the "+A4" part and always just gives me A4*A3.
So the question is, how do I extract the result "8" from cell A5 as a number to which I can add (or subtract...or ANYTHING) other numbers accurately?
I have a downloaded file from a bank that has a list of names and I need to extract the sirname. The sirname is always last, however there are blank spaces trailing the name.
Example of list is as follows: MS L SMITH MS JOAN STAKE MS MARGARET LOVE MS J POOL MS LOUISE HURT ELAINE TASSETT MR MARK BOOTH MR IRVING CHAN
Using text to columns will not work as sometimes there are 3 parts to the name and sometimes 2.
I am trying to extract a partial string from a cell. There are 2 lines in each cell seperated by ALT + Enter
Example: GREAT SOUTHERN ROAD GUNDAROO QLD 7012
What I want to do is extract only the first line of the text and put it into the next column. I've tried using the FIND, SUBSTITUTE formula, but because the 1st line of the address varies in length, it seems to cause more problems than it solves.
I have written a code using VB for extracting data from notepad to excel and copying the certain data like date in other cell. I need to extract a particular value from the cell where data is copied to another using mid or any other function in VB.The code is as follows:
Private Sub CommandButton1_Click() Call data Call compare End Sub
Sub data() Dim fs, f, ts, s Dim r As Long Dim r2 As Long Dim e1, e2 As Variant Dim i As Integer Const ForReading = 1
Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.getfile("C:Documents and SettingsAdministratorMy DocumentssheetalCingularStatus .txt").....................