Macro Needed To Include Particular Columns Out Of So Many Columns In A Sheet

Apr 23, 2014

I have file with so many columns and i want to keep only columns i want.

Data
genredyellowgreenwhiteblue
1aaggttccbb
2aaggttccbb
3aaggttccbb
4aaggttccbb
5aaggttccbb

expected
genredwhite
1aacc
2aacc
3aacc
4aacc
5aacc

for example here i want to keep only gen, red and white columns only out of columns what i have in my data. I have so many columns in my original data but here i given just small example. How to proceed with macro or any other way because removing manually taking long time for me.

View 6 Replies


ADVERTISEMENT

Vb Code Macro Needed To Transpose Data From Columns To Rows

Oct 14, 2008

i have the following spreadsheet with dummy data however, there is a before and after scenario i have posted is this possible with a macro ...

View 9 Replies View Related

Multiply 2 Columns With Each Other. Dynamic Row Needed

Jul 31, 2009

Hi, I have this good working formula: ...

View 6 Replies View Related

Lookup Values And Include New Rows As Needed

Jan 8, 2009

I am looking to build a VBA to do the following action:

Look up an ID number from column F (ID numbers are separated by an empty row at current),
then check whether there is a corresponding value in columns N to P,

if there are values, copy them onto a different sheet into three different columns

if there values below this particular row, i.e. if the rows below say row 9 (where we looked up the ID number) in columns N - P are not empty, also copy all these values and add additional rows as needed on the sheet this is copied to

then look up the next ID in column F and do the same until there are no more IDs

View 9 Replies View Related

Getting Sum Formula To Only Include Visible Columns

May 28, 2012

Starting from D6 to the end of the data (could be F6 or AA6) I need to sum the total, but only if the column is visible.

View 9 Replies View Related

Consolidate 4 Columns Of Data Which May Include Duplicates?

Jun 18, 2014

I have four columns of data (in column B) across 4 worksheets within the same workbook. The rows in this columns contain text. In some cases the text in various rows of each columns are identical, and in other cases they are unique. There is a percentage in column C for each text in column B.

What I'm trying to do is as follows:

Create a consolidated list of all four columns into a single column (say column A in a separate sheet). Therefore, each row in this consolidated column will have a unique text based value.

Have the percentage value for each unique text based entry in column B of the separate sheet. if the text based contents in the column A row is one of those that had the same entry in the original four columns, then the average of the percentages will appear in column B.

View 1 Replies View Related

Filter On Two Columns And Results Include Text From Either Column?

Jul 5, 2012

I have a file with a bunch of columns in it. Columns C and D have names in them. I want to filter on these two columns where the results show all rows where the selected name is in both.

Example, If I filter on Column C first on 2 specific names (Joe and Chris), it will not show the results in column D if that name was aligned with a different name in column C (Mark and Steve). I need all rows to come back.

Column C
Column D
Joe
Joe
Chris
Chris
Joe
Chris
Joe
Mark
Joe
Steve
Chris

View 1 Replies View Related

In A Table Include Data In Columns Into Existing Rows

Jun 7, 2012

I have a table in which the rows represent cities and the columns represent certain characteristics/ attributes a city can have. In the cells every city & attribute pair receives a "grade"

City EatingBeachSki
Barcelona 210
Chamonix 002

I would like to transform this so that every row represents a city & attribute pair and includes its corresponding grade.(I want to do this in order to be able to add more information about city- attribute pairs rather than about cities only)

City AttributeGrade
BarcelonaEating 2
BarcelonaBeach 1
BarcelonaSki 0
ChamonixEating 0
ChamonixBeach 0
ChamonixSki 2

I am aware that I can use a pivot table to sort out all the pairs with a specific grade. and then I could paste this into a new table. But my data base (number of cities x number of attributes) is huge and I was wondering if there is no automatic process to make this transformation.

View 4 Replies View Related

Macro To Unhide Columns - Call A Macro Then Revert Columns To Previous State

Jul 17, 2014

I have on sheet1 a number (72 at the moment) of Form CheckBoxes.

In simple terms: I would like a macro to look at each CheckBox and remember its state (Checked or Unchecked)

Then, go through and Check All checkboxes

Call MyMacro

Once MyMacro is complete (Filtering & Printing)

Revert the checkboxes to their original state.

The purpose of the checkboxes:

When Checked column on sheet2 is UnHidden
When UnChecked column on sheet2 is Hidden

Or, UnHide All columns on sheet2, run MyMacro, then "re-hide" the columns that were previously hidden.

View 11 Replies View Related

Copy Columns Resulted From Another Columns Operations And Paste In New Sheet

Dec 30, 2008

when i copy columns resulted from another columns operations and paste in new sheet i got garbage ,could you tell me why and how to overcome this problem.

View 2 Replies View Related

Create Macro For Exporting 2 Columns From One Many Sheet To New Sheet

Aug 31, 2013

Create a macro to export 2 column to a new sheet.

I have attached the sample file, check for reference.

I want to export Month and Monthly percentage column to a new sheet..

Efficiency Report Fo TS.xlsx

View 5 Replies View Related

Move And Sort With One Column But Insert Extra Columns As Needed For Proper Sort?

Jan 13, 2014

Using DataEntry sheet for data.
Trying to rearrange the data to DataFormatedProperly sheet.
So far all I can accomplish is DataFormatedWrong sheet.

Edit: Not sure what happened but file was NOT understandable before. It should be correct now.

View 2 Replies View Related

Editing Macro To Include Multiple Rows And Include Text Formatting For Leading Zeros

Apr 2, 2014

I need the values that are copied from the template to copy over in text form from the "Data" Tab. Secondly, the master sheet has multiple lines for each vendor. For the area highlighted in red I'd like for it to copy all cells in column C for the vendor and search the vendor by name. Then, move to the next sheet.

View 10 Replies View Related

Macro To Compare Columns A & B And Dispaly Any Duplicates In Columns C & D

Feb 21, 2009

what I'm after is a macro to check the contents of Column 'A' against column 'B' and display any duplicates in Columns 'C' & 'D'.

N.B. The headings of Columns C & D are :-

C = Value Found in Column A

D = Value Found in Column B

Any duplicate entries logged in columns C & D should be listed in C2,C3,C4....C20 and D2,D3,D4......D20 etc (in effect creating two new lists)

View 5 Replies View Related

Macro For Copying Columns From One Sheet Onto Another Is Pasting A Picture Instead

Mar 31, 2014

I have a sheet made into a form with some check boxes included. If I select all the relevant columns, create a new sheet, and paste into cell A1 - all of the information carries over just fine. You can still select cells and check the boxes in the new sheet.

However, when I record this action as a macro, using the macro produces a picture of the selected columns instead of actually copy/pasting the information. I can't click on the cells or check boxes. I can only move the picture around within the new sheet.

View 7 Replies View Related

Macro To Auto Filter And Then Paste Certain Columns To Another Sheet

Jun 11, 2014

I am running a auto filter macro to I need to change it to only copy column A:B and past in column C:D in the sheet called "Diary". How to change my current macro to only select column A:B and paste it. It is currently pasting the entire row.

Here is the part of my code:

[Code] .....

View 1 Replies View Related

Macro To Copy 2 Columns To New Sheet Based On Value In A Different Column

Jul 4, 2014

I'm trying to create a macro that will look at the values in one column (column G) and whenever there is a new value, it will copy the data from 2 other columns (I and J) into a new sheet with the original column as the title. I can't think of a better way of explaining that so I've attached a sheet with 'Raw data' being the source sheet and 'Outcome' being the hoped for final product.

I have color coded the sheet to show where the data is coming from, but do not want the colors in the actual sheet.

View 8 Replies View Related

Macro To Copy Selected Columns And Paste In New Sheet

Aug 24, 2012

I have a sheet that has columns from A to BS, and the column headers start in Row two.

I need to 1st filter the data by Column E where the data in Column E should not contain a particular Value, like"Sleeve".

Then it needs to copy the Columns A,D,G, BN, BO, BP,BP,BR & BS.

And it needs to delete Rows 3 & 4 from the current sheet, before pasting it in a new sheet.

And at the bottom of the sheet it needs to give me a count of the rows and the month end date for each month.

View 1 Replies View Related

Macro VBA For Copy Paste Columns Of Data From Three Tabs Into One Column On Separate Sheet

Nov 18, 2013

I have a workbook with four tabs or four sheets.

Tabs 1, 2 and 3 have a column of data (Column A) on each sheet. They all start from the same cell. Each cell of data are just numbers. The column (an array) of data will not have blanks between.

But, they are not the same number of data. They vary.

Meaning, Tab 1 may have 15 numbers (A1 to A15), Tab 2 may have 20 numbers (A1 to A20) and Tab 3 could have 5 numbers (A1 to A5). Each iteration of the workbook may have different number of data in the A column on these tabs.

Now on Tab 4, I want combine the data from all three tabs into one column (in column A).

So, Tab 4 has a column A with data from Tab 1 copy and pasted to (A1 to A15) as values, then (A16 to A35) have Tab 2 data copy pasted as values and (A36 to A40) have Tab 3 data copy pasted as values.

Basically, the macro on Tab 4 has to count the number of rows on each Tab that are populated with data values and figure out to copy all the data on Column A from each three tabs and paste the data value into the Tab 4 in one column of data (in values).

View 6 Replies View Related

MACRO Lookup Columns Of Current Sheet And Matches It With Table In Tab Then Returns Hourly Pay In Column

Mar 5, 2014

I am having trouble with my macro. I have attached excel sheet for reference.

Basically, I want a Macro that Looks up columns B & C of current sheet and matches it with table in the charges tab, and then returns hourly pay in column D.

I have created the macro but it's giving me Run time 1004 error.

Also, my formula is incorrect. Maybe that's why my macro isn't working?

2WayLookup_Macro.xlsm‎

View 4 Replies View Related

Linking Data (look At Sheet 1 And Populate The Date Columns With The Guest Name From Sheet 1)

Jan 7, 2009

Sheet 1 contains a column titled "name" and 6 columns to the right of name titled "sat", "sun", "mon"........ the col titled name is not the first col in the work sheet.

In each row I enter the guest name under the name col and I enter a room number (example: 1A, 1B, 2A, etc...) in the column to the right that coresponds with the day the guest will be staying.

Name Sat Sun Mon Tue Wed Thu Fri

Mr. Smith 1A 1A 1A 1A
Mr. Jones 3B 3B 3B
Ms. Tiller 4A 4A 4A 4A 4A 4A 4A

Sheet 2 is in the same workbook and looks something like this:

Room # Sat Sun Mon Tue Wed Thu Fri
1A
1B
2A
2B
3A
3B

I want it to look at sheet 1 and populate the date columns with the guest name from sheet 1

I tried this formula =IF('Sheet1'!G:G="1A",'Sheet1!$F:$F,"Available")
It seems to work on the first row but I have problems with any rows below that. Basically it acts like there is no data in the rows below.... I think the fact that the names on sheet 1 are not alphabetical is creating part of my problem? I tried a lookup formula but it seems like it has to be the first column in the worksheet and it has to be alphabetical to work like that.

View 4 Replies View Related

Excel 2010 :: Match 1 Cell And Column In Sheet 1 To 2 Columns In Sheet 2 Return Data From A 3rd

Jul 23, 2012

I have 2 workbooks in Excel 2010, each contain just 1 sheet. (see attached) I need to compare on sheet 1, cell D1 and column A:A (this column will be much longer), with the data in columns C:C & A:A on sheet 2, if a corresponding match is found, the data contained in column D on the same row on sheet 2 is written to the cell with the matching data in sheet 1.

My attempt is in cell D2 on sheet1.

View 5 Replies View Related

Redirecting Multiple Columns From One Sheet To Another Sheet Depending On A Condition?

Jan 23, 2014

In sheet 1 i have the data like this

Date Amount
---------------------------
13-Mar-13
---------------------------
20-Mar-13 2000
---------------------------
27-Mar-13
---------------------------

[code]...

now in sheet 2 i need the date and amount fields in which amount is present.

i need sheet 2 like this

Date Amount
-----------------------------
20-Mar-13 2000
-----------------------------
3-Apr-13 3000

2.jpg

View 2 Replies View Related

Populating Multiple Columns In On Sheet By Referring To A Column In Another Sheet

Mar 14, 2013

i'm having in excel- I'm looking to populate rows in 2nd tab based on the data entered in the 1st tab. The rows to be populated in the 2nd tab resides in the 3rd tab. So a match has to be made on the data entered in the 1st tab. When a match is found on the 3rd tab then the corresponding rows from the 3rd tab should be listed on the 2nd tab.

I have an example.xls attached for clarity.

example.xls

View 4 Replies View Related

Create New Sheet For Each Group & Copy Needed Data To Each

Mar 11, 2009

I have just inherited an Excel spreadhseet that displays job titles and what types of documents each one should be trained on. What I am trying to achieve is a formula, or something to that sort, that will look at each job individually and tell me only those documents that they need to be trained on and list it on a seperate sheet.

If you look at the attached document you will see that the first 2 columns contain a document number and description. Across the top you see each of our job descriptions. In the middle you see an X that indicates that person should be trained on that document.

So once more, I would like to take each Job Description (seperately) and list only the documents that have an "x" in their column on another sheet. I already have the sheets created, I just need to know if there is some kind of formula or macro that can do this for me.

View 4 Replies View Related

Look For Matching Information From Two Columns In One Sheet / Another Sheet

Jul 16, 2014

I have one sheet that contains three columns of data. I want to look in another sheet and find if any of the rows in that sheet have the same data found in the first sheet.

I have attached an example sheet of what I need done:

In reference to the example, I am first looking in sheet 2. The information from Column A and C is what I want to find in sheet three if it is there. So for example, A1 and C1 are Joe and 233. I want to then look into sheet 3 and see if any row in sheet 3 has Joe in column A and 233 in Column B. if so I want the value in column B (233) returned into a new sheet.

I need this process to repeat for all rows in sheet 2. The number of rows may change in either sheet.

View 3 Replies View Related

Copy Columns Containing Certain Text From Sheet 1 To Sheet 2?

Jan 25, 2014

I am looking to copy the columns containing firstly H and then A from this sheet (sheet 1) to sheet 2. At the moment the H and A run in sequence, sometimes 2 or 3 times in a row but I want them to appear seperatly in sheet 2 so that I have all of the H's together in a sequence and all of the A's together in a sequence further down the sheet. I haven't used macros since school and don't have the first idea where to start. Do I need macros or is there a simple formula I can input? The data I am looking to copy is below with the letters in question 3 rows down.

Week 22
Week 21
Week 20

[Code].....

View 7 Replies View Related

Counting Formula (compare Values In 2 Separate Columns To See How Many Times The Same Value Appears In Both Columns)

Oct 13, 2008

I'm trying to compare values in 2 separate columns to see how many times the same value appears in both columns. Ideally I would be able to insert a range function to compare the values in the column "ID 1" against the values in column "ID 2" and return the count of times that a value appears in both columns. For example 2122, 1112 and 1718 appear in both columns and I would like the formula to return a count of 3.

ID 1ID 2
12342122
45671112
89101718
11122678
13144544
15162324
17189987
19201215
21221928
1976
2576
2345
4678

In my actual project I'm comparing 2 columns in the same worksheet. The column are column B with data in cells B2:B10266 against column C with data in cells C2:C18560.

View 4 Replies View Related

Search Columns Of Worksheets / If The Columns Contain Data Then Form A List On Another Worksheet

Apr 17, 2013

I have a workbook that has worksheeets for every day of the month. The data in the worksheet consists of columns (employee #, name, clock in/out times, and break penalty).

What I am trying to do is create another worksheet that searches all the other worksheets for a "yes" in the "break penalty" column and then create a list of all the employees that received a break penalty for the entire month. I would like this to be able to auto populate throughout the month as data is entered and not have to use a filter every time I want to compile this list.

View 3 Replies View Related

Excel 2007 :: Automatically Transfer Columns From One Worksheet To Another In Multiple Columns?

May 4, 2013

I would like to take the data from worksheet1 and put into worksheet2 but limit the length of a list (the real spread sheet has over 100 rows and i would like them in 4 sets of 25 versus the example I provided). Is there an array or macro that would make this work (keeping the formatting)..

Excel 2007
B
C
3
Name
Company

[Code].....

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved