Column A and B, starting in row 1, are a "continuous" list of dates and events. column A are dates, and Column B are events (text). The dates in column A are in descending order.
I want a macro to throw in column D and E, all the dates and events of the month of September (09) that are in column A and B, and to place them in descending order as well.
I need to search a list in column B of 500 records to find specific words such as"ABC2000000000" The text will always begin with "ABC................." and I would like to extract this whole world from the text string into a new column.
This is not always in the middle or beginning or end.
It could be inbetween other words or numbers or spaces etc - so its not consistent as this data is from a raw file imported into excel.
So I would like to FIND text beginning with"ABC" in column A and then return "ABC123456789000" in Column B. The format will always be "ABC-followed by 12 numbers"
EG Column A and column B(what I would like to see) KOREIABC123456789999 4029227 ABC123456789999 RCA ABC000010469597 PBI000010005941 ABC000010469597 8990ABC000010480568 ABC000010480568
I'm trying to find a way to use a macro to extract data from a specific column from Sheet1 based on the columns header/title and copied into Sheet2 into the respective column with matching header/title.
For instance, in Sheet1:
Chicken Cow Donkey Pig
[Code]....
So the above table would be the result i'm aiming for.
NOTE, its not different workbooks. I'm looking for sheet to sheet macro.
I've attached a file as well if someone wants to have a go at it. There are no codes in it.
I have a column of numbers that have certain dates in it. I want to extract the dates and then copy and paste the dates into another column. Shall I use a macro for this or can it be done manually?
I am facing an issue right now to extract time band from a column. Below is the data from where I have to extract Time Band only. I tried different things but its diifcult for me to extract time slot.
New Rate - 19:30 - 19:59 -
Effective From 1st May - 00:00 - 00:59 -
- 07:00 - 07:59 - Branding
Morning - 00:00 - 01:00 -
Night - 21:00 - 22:00 -
LPT - 23:00 - 00:00 -
- 22:00 - 23:00 - PT
- 22:00 - 23:00 - BEFORE EP
The output should be like this 19:30 - 19:59 00:00 - 00:59 07:00 - 07:59 00:00 - 01:00 21:00 - 22:00 23:00 - 00:00 22:00 - 23:00 22:00 - 23:00
I have a substantial schedule that has been completed by a 3rd party who has used the comment function for important data. Can anyone suggest how i can utilise a macro to extract all of the comments into the adjacent column?
The comments are currently against cells in column E and i'd like to extract them to blank cells in a newly inserted column F.
I a simple macro below that loops through columns and copies a value from each column. The columns to loop through are specified in cells F2,F3,F4 which contain numbers indicating the column number (currently 1, 4 and 7).
Sub Testing() 'For i = 2 To 4 Cells(6, i).Copy Range("h100").End(xlUp).Offset(1, 0).Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Next i End Sub
However, I would like to specify the column numbers in one cell instead across multiple cells. So, for example in cell H2 I could specify each column number separated by a comma i.e. H2 would show: 1,4,7
Is there a way I could get the macro to reference that once cell only for the column numbers instead of in separate cells as currently? I'm assuming I need to use some clever text functions to extract each column number from the cell based on the comma delimiter and then feed into the macro?
I have the following information under column A, I would like to just have the email address for each under column B. So column B should consist only of email addresses from A.
I have a column which has about 600 Names, and some of them are repeated, so I want to extract the Unique of them into a separate column, How can I do that?
I Need to loop through col W Used range except the last row which is totals or the first 4 rows which is Heading stuff, and if value > 0 post it to a column on the right based on the day code. ( 31 values 1 for each day)
I currently have data in the form of: "510 E. 96th Street, Suite 400 Indianapolis, IN 46240"
And need a formula to extract only the state abbreviation from the cell, any ideas? I currently have the formula, =MID(O333,(SEARCH(",",O333)+2),2) but it only works if there is one comma for example, it works perfectly on this data:
2K MEDIcal 105 West Torrance Boulevard Suite 106 Redondo Beach, CA 90277
I'm using the code below to extract data from a 'Source' sheet to populate a "Yearly Extract Summary" 'destination sheet. With the unique distinct values copied from column I on the 'Source' ("All Data") sheet to column B on the 'Destination' ("Desired Output") sheet. In addition the values from column J on the 'Source' sheet are summed and paste under the relevant month on the 'Destination' sheet.
[Code] .......
The code works fine and the correct figures populate the correct columns and rows on the 'Destination' sheet.
As you can see from the code above, the monthly values have to be hard coded to match the column headings and this is fine when using a static 12 month period. But I'm now wanting to use a rolling 12 month period, which, at the moment, necessitates the need for me to change the code each month so I'd like to change the code but unsure where to even begin, how to produce the initial script.
I'd still like maintain the existing functionality in this section of code:
[Code] ...........
I have attached a file which contain 3 sheets.
The "All Data" 'Source' sheet,
The "Output" sheet, used for testing, and
The "Desired Output" sheet which shows the results using the current code
To run the code, please use the button at the top of the "All Data" sheet.
I have wave data and need to extract out of a column the greatest rate of change i.e. start from a1 if the numbers are going down find the first number that starts going upward...and put in column b...then find the next first number that is going down and put in column b....and so on and so on all the way down the column.
I am having problems with a macro I am writing and I need some guidance on where I am going wrong (I am still a noob at VBA).
I have pasted the code below (not the most efficient use of code I know).
I have a list of departments and codes from the Intranet at Work. Now this contains a Department Code, Department Description and within the Description is a number in brackets showing how high up the organisation hierarchy they are....
I am trying to extract email addresses from a two column list. looks like the information may have been copied and pasted from a business card application of some sort. so first column contains name and a few other bits and pieces, the second column contains email address, phone numbers, status etc. unfortunately some records seem to be six lines, some seven.
I thought I might try using a pivot to create a list of the account names and then do a lookup/offset combination formula but i cannot seem to work into it the means to locate the "@" in the email address (to identify which line contains the email address). my end result will be two columns: name and email address. or maybe, since the name is already on the first line of each record, i could use some sort of formula to pull the email address up the first line of column c??
Celebrant Details
Abbey*Dayrell, Ms 12 Battunga Street, Wishart QLD 4122
I have a spreadsheet with company details in a worksheet. Each company details are in a new column. Like the following example:
company name company name company name
[Code]....
i basically need each of the bold heading in the first row of the new worksheet. Each company details will then need to be moved into a new row with the corresponding data under the correct heading column. Not all the companies have all the data for each heading it would be fine to have "none" value or blank in this case
What is the best way to filter a list of data with dual headers, using both those headers as the filter criteria? I’d like to extract 1 column of data to copy to another location using something like Advanced Filter to select 2 criteria ( Upper header and Lower header), and copy the one column with the matching header values. The worksheet has the following peculiarities:
- 2-row headers - Top row headers (main categories) are merged, spanning several columns (I can un- merge if necessary) - Bottom row headers are sub-categories and have repeating names
Although the top headers are merged and the bottom headers have repeating names, each of the 2 headers combined creates unique labels for each column.
I have a single excel data sheet with 10 rows of header information and then multiple rows and columns of data
I need to extract the 10 rows of header data plus the rows for each unique record in Col A into its own separate worksheet, with the work sheet name being the unique record from Col A
To further add to the challenge, the data in col A may have "/" in so will not comply with excel sheet naming convention so would like an error message to remind me to manually change a sheet name.
I attach an dummy data sheet just to show what I mean!
In the attached, sheet 2 has a formula that pulls the Item (column B) from Sheet 1 based on Instocks (column F) being less than the value in N2. Would it be possible to add a second criteria to the formula in sheet 2? In short, can I pull the item from column B of sheet 1 into sheet 2, where in sheet 1, column F values are less than N2 AND where column G values are greater than O2?
I'd love to just vlookup the fill rate value and then filter it down, I know at some point I will be asked to weed it down a bit via a formula instead.
I extracted data from PDF into a spreadsheet, and now I need to put all the data - according to name, email, address etc. into separate columns, so it is usable.
All categories of data are in 1 column at the moment - mixed up.
How can I sort this into columns according to category?
So, using an array under the Names column, search the string under combined names and break apart as illustrated. Must stay on the same line...w/o VBA.
I basically I have a column with numbers. All the numbers are positive integers. What I like to do is have a VBA function that extracts the integers with the largest number of digits. So for example if we have the following column:
12
123
234
12346
2345
[code].....
So basically we search for largest number of digits, and extract the numbers that fit this category, which could be just one number or multiple numbers.
I want to extract first data from column Name where in the data corresponding to it in Column Marks is blank, and if that is filled, i want the next data to be shown automatically
What i'm trying to do is i would like to compile in 1 column all duplicate values from multiple cells.
ex. A1 to 10 is numbered 1 to 10 respectively, B1 to B10 is numbered 6 to 15 respectively. which means in A1:B10 the duplicate values are 6,7,8,9,10. i could like these number to show automatically in C1 to C5.
The Table : Column R represents a list of services
Column L is the full price Column N is the discounted price ( my example reflects no discount in this case) Column C is an associated code , in some cases the code is n/a Starting at Row 13 ........