Move Duplicated Cell Into New Column

Mar 14, 2014

Basically I have an export which I need to manipulate so I can do a mail merge. I've managed to find a solution to remove the data I don't need and also managed to create the mail merge (even fixing the weird American date issue)

The data that is left looks a bit like this

Staff ID
Name
week ending
week ending
1
Bob Smith
02/03/14

[Code]...

basically what i need the macro to do is to see theres two Bob Smiths (or 2 Staff Id's "1") and put the second instance in column 4

e.g.

Staff ID
Name
week ending
week ending
1
Bob Smith
02/03/14
09/03/14

[Code]...

in some instances there could be 20+ week ending dates to go into the row.

also I don't need to have the dates all in seperate boxes, I just need the information in a row so the mail merge reads and sends out one message rather than 20 messages to the same person asking for each week by itself.

I've manually moved the dates into the boxes up to now and everything else is working

View 5 Replies


ADVERTISEMENT

Modify VBA To Copy Duplicated To Next Empty Column - 3 Sheets

Aug 21, 2014

i need a code line to modify in the code that when find duplicated string (found in 2 sheets) Copy to a next empty Column of a 3rd sheet

how code work: The code is working Fine (excellent!), Its compare 2 given range from 2 sheets( "sheet-1" and "Page-1") and if duplicated string is found on such Ranges, with condition of a min/Max of 5 to 12, then these string are copied on a new sheet called "Intercepted". The problem (is my mistake ) is that the small report is copied, BUT is not copy continuously to next empty column.

I tried to modify my self but not success because i don't know which line delete and where to add the the new code Line.

View 3 Replies View Related

Count Number Which Is Time Format At Column A To Down Without Duplicated?

Jul 11, 2012

which formulas suitable as i just wending to count a number which is time format as "HH:MM" on at column A to down without a duplicated,

I have suck on it .. What I wanted as exampled :
12:00
12:00
12:01
12:01
12:02
range B1 = 3

View 3 Replies View Related

Move Down Column And For Every Blank Cell Clear Contents Of Cell To The Left?

Jun 1, 2014

i need a code that moves down a column and for every empty cell in the column the cell to the left is cleared and then it moves on to the next cell down. the column is not always the same and will start from a selected cell, and the column will contain no more than 5 rows

View 3 Replies View Related

Move The Content Of Cell From One Column To Other

Aug 21, 2007

I want to enter a number 0 to 999 in cell A1 and when the enter key is pressed move the contents of cell A1 to A2 and A2 to A3, cascading down until A40. So after five numbers the first number I entered woul now have cascaded down to cell A5 ready to go into cell A6.

Would I have to use some kind of program or does excel have a command for this?

View 11 Replies View Related

Highlight Row And Column On Move Down Of Cell

Jun 18, 2009

As I move down a cell, I would like the entire row and column be highlighted. Is that possible?

View 11 Replies View Related

Move To First Non-blank Cell In Column

Feb 8, 2009

I will be moving to a specific cell - "N1". I'm looking for code that will then scan down from that cell, making the first blank cell the active one.

View 4 Replies View Related

How To Delete ENTIRE Row If Only One Cell Is Duplicated

Jun 15, 2011

I have a file with 238 rows and 10 columns (see file attached) Column G include phone numbers, some phone numbers are duplicated.

How can I use a macro (I must do it with a macro) to delete the ENTIRE row if the value in column G is the same in other row?

For example: look at rows 2 and 3 : the value in column G2 and G3 is the same, therefor delete row 3

(and if the value in G4 was also the same, then delete also row 4, and so on..)

View 10 Replies View Related

Move Every Other Cell In A Column To Row Above It Then Delete Previous Row

Jul 11, 2014

I have a spreadsheet that I need to rearrange to improve readability. I have an example attache, which is easier to understand than describing it, but I'll try:

I want to start in a1, move to a2
copy a2 to b1
delete line 2 (the previous lrow 3 now becomes row 2
if a2 > 0.01, skip it and
move & select cell a3
... and repeat the above logic, on the next series of cells...

E.g.
copy a3 to b2
delete line 3 (the previous lrow 4 now becomes row 3
if a3 > 0.01, skip it and
move & select cell a4
...and repeat the sequence again.

View 2 Replies View Related

Macro - Move To Next Empty Cell In A Column

Sep 30, 2010

In columnA I want to jump to the next blank cell in a list that continues to grow. So the first time I run the macro I want to go (blank) cell A5 to paste in some data. The next time I run it, it would need to go to cell A6 and so on.

When I do this manually, I simply hit ctrl down-arrow (takes me to the last cell w/data) and then one more down-arrow to take me to the empty cell below.

When I do this in the macro it seems to remeber the cell as an absolute reference (if that's the term) and so it just copies info in the same location as previous, instead of the next empty cell.

View 5 Replies View Related

Move Final Word In Cell To Next Column?

Jul 2, 2014

So I have a few hundred spreadsheets with the following structure:

Persson L. S skogsarb Granberg Malung
Persson M R fru
Persson N skogv Sjog 23 Torsby

What I want to do is move/split the ultimate word in every cell in column A to a parallel cell in column B, and then delete the word from column A.

View 9 Replies View Related

Move Cell One Column Right Offset Rows

Nov 4, 2006

I have sheet1 with four columns. Team, Issue, Discussion and Recommendation. Discussion and Recommendation headings were placed in column B along with the data in the file I was sent. I need to get it back into table format to eventually load into Access. What I'm trying to do is to loop reading down column B. When I find the word “Discussion” (exact format) I need to drop down one row below the word, cut whatever is in the row, move one column to the right, Column C, and two rows up and paste. For example, cell B3 has “Discussion”. I need to drop to B4, cut whatever is in the cell and move to C2 and paste. I also need the same to happen for Recommendation. Find the word, drop down one row, cut whatever is in the cell, move two columns to the right and up four rows. I would like to delete the rows I moved data from, but will do that by hand if it’s too hard to do in a macro.

An example of my data:
TeamText
Design4. Reuse existing code to extent possible.
DesignDiscussion
DesignNo discussion
DesignRecommendation
DesignEstablish a baseline and work to the plan.
Design5. Delete old code
DesignDiscussion
DesignNo discussion
DesignRecommendation
DesignNo recommendation
Design6. Plan to work without full details.
DesignDiscussion
DesignIncremental design
DesignRecommendation
DesignWork on smaller details first

Sub Discussion()..................

View 3 Replies View Related

Move Adjacent Cell Into Rows, Same Column

Aug 9, 2007

I need to create a repeatable macro/module to help me prepare a spreadsheet for import into Microsoft Access. In each row of the spreadsheet is various information including Order Number, Model, and Serial Number. The problem lies in the Serial Number column, which often contains several Serial Numbers delimited by commas. In order to serve my needs in Access, each Serial Number instance needs to become a new row ( record) wherein all of the information (except for the Serial Number) is the same. It is crucially important that all of the serial numbers are in the same column. (I tried using text to columns as a starting-off point, but seemed to dead end).

Example:

Order#1; Model1; Serial1, Serial2, Serial3

Needs to become:

Order#1; Model1; Serial1
Order#1; Model1; Serial2
Order#1; Model1; Serial3

View 9 Replies View Related

Convert Column B As Multiple Column Titles And Move Data In Column C Into New Columns?

Jun 30, 2014

I have a excelsheet that looks like this:

Column A | Column B | Column C
Los Angeles | Fire Dept | 3
Los Angeles | Health Services | 12
New York | Fire Dept | 8
New York | Health Services | 22
New York | Internal Services | 100
New York | Public Works | 7
Chicago | Health Services | 15
Chicago | Public Works | 56
Chicago | Social Services | 4

And I am trying to make it look like this:

Fire Dept
Health Services
Internal Services
Public Works
Social Services

Los Angeles
3
12

New York
8
22
100
7

Chicago

15

56
4

View 8 Replies View Related

Set Of Column Data Move To Different Column And Delete Unwanted Column VBA

May 29, 2014

I have set of data Pasted in 4th row, in the top row 44 columns values assigned i want move data from set of data to different column among these 44 columns

Like "Service Order ID" is 1 column in set of data ,it move to second column of top row

Some of column need to delete. (Service Order Type,Service Order Description,Created By,Status,Contact,Expected Delivery Date,

Creation Date,Priority,Net Value,Currency,External Reference,Reference Date)

I want Get output result in same sheet (Actual).

View 3 Replies View Related

Excel 2003 :: Conditional Format - Highlight Cell In Sheet 2 If Duplicated From Sheet 1

Mar 25, 2014

I have two Sheets, first is Service Data, the second is Log Sheet. In the Service Data sheet I have a column of serial numbers in column A. I also have a column of serial numbers in the Log Sheet, column A.

I'm looking for a conditional format whereas I enter numbers into column A on the Log sheet it will auto highlight the cell if I duplicate a serial number from row A in the Service Data sheet. I would like it to highlight the Duplicated number on the Log sheet. I know new versions of excel make it easier to do this but unfortunately I have Excel 2003.

View 3 Replies View Related

Move Data From One Column To Another Based On Column Headers And Row Text

Feb 7, 2014

I am in need of restructuring a spreadsheet of addresses for mailing purposes. (I tried to find something similar answered previously, but nothing seemed to work for me.)

I have attached a small example spreadsheet below, but our spreadsheets can be hundreds or thousands of rows in length.

I need a macro that will look for the "PO Box" addresses under the column headers named "ADDRESS2" and "ADDRESS3".

The PO Box addresses will need to be moved under the column header "ADDRESS1" within the same row.

It will need to overwrite the text that is already under "ADDRESS1" and delete the text from the "ADDRESS2" and "ADDRESS3" columns - UNLESS the text in 'ADDRESS2" is a PO Box AND "ADDRESS1" begins with "c/o".

If the data in "ADDRESS2" or "ADDRESS3" is anything other than a PO Box it will remain the same. As will "ADDRESS 1".

Basically if there is a PO Box it needs to be in the column named "ADDRESS1" and overwrite anything else that was there. The exception will be for PO Boxes that are in c/o someone else, the PO Box will then need to be listed in the column directly after the column that has c/o.

If the c/o exception will be too difficult the code could just highlight those scenarios and we could fix them manually. We usually do not have a lot of them, but enough that we need to be mindful of them.

The different scenarios are listed in my sample spreadsheet.Also, the code will have to use the column header names in row 1 because those headers are not always in the same column.

View 14 Replies View Related

Copy Or Move Column Ranges From 1 Sheet To End Of Column Range Of Another

Mar 7, 2008

I have two different Excel reports and the data needs to be copied from each column on one spreadsheet and pasted to the bottom of the equivalent column on the other spreadsheet.

So, is it possible to get a macro that will copy the data from one column then paste it to the next free cell in the column on the other spreadsheet.

If I could get some code to do one column then this should be enough to get me started and I could apply this to the other columns I need to copy.

View 8 Replies View Related

Move Info In One Column Based On Data In Another Column

Aug 28, 2012

I am trying to move a column of numbers based on the information in another column. I've been looking for about a week and find macros that are close but not quite.

In one column it reads Mobile, Home, or is blank. If the number is a Mobile (column R), the area code (column P) needs to move to column S and the phone (column Q) needs to move to column T and the primary phone (column R) needs to move to column U. Home and blank cells remain as they are.

area (P)
phone (Q)
primary phone (R)
col S
col T
col U

[code]....

View 7 Replies View Related

Column A And B To Move With Column C When Information Transferred

Mar 18, 2014

All info goes to the master inventory and then if some enters an amount for respray then it is transferred to the respray sheet. when it is transferred to the respray sheet it put the date in Column A and then put 3 days later in Column B.

Every day it will change and the date in A1 changes to tomorrow but if another item is enter as having resprays then it transfers to the respray sheet and will bump down in column C but Column A stays the in the same spot.

I need Column A and B to move up and down if something in Column C moves up or down and it would be nice to always have the oldest date at the top.

View 7 Replies View Related

Insert Column, Move Another Column Into It And Autofill

Feb 3, 2009

I have attached a sample spreadsheet – what I want to do is insert a column before the current column A and move the current column D in to it and auto fill for every non blank cell in column B. Also, there are different values in column D such as “B03” ,”B41” etc – so for example, it should auto fill B03 until it comes across either a blank cell in column B or it comes across a “B41” and then it should do the same until it comes across a “B42” or a blank cell again. This needs to continue till the end of the report.

View 2 Replies View Related

Excel 2010 :: Move Part Columns Of Data From 6 Columns To Form 1 Large Column In Column A?

Jan 31, 2013

I have a large spreadsheet converted from pdf whose data still appears in A4 reading format.

I need to move part columns of data from 6 columns to form 1 large column in column A.

For example, move range B8 to B76 beneath range A8 to A76 and range C8 to C76 beneath that etc, page by page working through all 270 pages !

Also need to delete unnecessary 'page headers' throughout as in rows 2-6

View 2 Replies View Related

Search Through Column First Then Move Onto Next Column?

Sep 11, 2012

I am basically trying to find the first non-empty cell in a range, but I want the macro to look down columns first. In other words, I want it to look down column A, then column B, and so on. Right now I believe it is searching by rows.

With Columns("A1:D15")
.Find(what:="*", after:=.Cells(1, 1), LookIn:=xlValues).Activate
End With

how to make it search through columns then rows?

View 1 Replies View Related

Move Certain Text In Column C To Column E

Feb 16, 2010

I'd like a macro that finds all cells in column C with the text "Apple" and moves all those cells values (text) to column E.

Case InSensItive.

One Caveat though, the search must continue and not stop searching until it is equal to the bottom-most row of data in column F.

I don't want this macro to search all 1 Million + Rows.

View 9 Replies View Related

Move One Column To The Right

Nov 10, 2009

I am trying to move one column to the right each time the macro is ran. Next time it should go from columns B:B to C:C

View 12 Replies View Related

Add Duplicated Data

Dec 2, 2009

i am using the following formula to extract data quantities of items from a worksheet:

HTML Code: =IF(ISERROR(VLOOKUP(A9,OS_SALES_ORDERS,3,FALSE)),0,(VLOOKUP(A9,OS_SALES_ORDERS,3,FALSE)))

is there any way i can modify it so that it adds the qtys of the items which have duplicated item nºs?

View 4 Replies View Related

First Row (for Column Titles) Not Move

Aug 23, 2009

I have been given an Excel file. Upon opening it, I see that the top four rows do not move even if I scroll down. What I'd prefer is that only the first row (for column titles) not move. If I can learn the name of this feature, I'm sure I can figure out how to change the file.

View 3 Replies View Related

Data Move To One Column

May 3, 2013

I have large information scattered all over worksheet. If I want to move all data in one column "A" how can I do it?

View 2 Replies View Related

Move Information Down A Column

Jul 7, 2014

I Have a table in Excel that current look like this:

Name 1
Item 1, Item 2, Item 3

Name 2
Item 1, Item 2

With 650+ Rows. What I need it for it to look like this

Name 1
Item 1

Name 1
Item 2

Name 1
Item 3

Name 2
Item 1

Name 2
Item 2

There are about 20 Items that could be assigned to a name, They are fixed.

Is there a way to create a macro or series of macros the car make this change, as doing it by hand is going to take way too long.

View 2 Replies View Related

Move To Next Column After Sort

Mar 24, 2007

Need the formula that I will need in my macro to move to the next column (up one letter) for the next time I run the macro witout me having to manually change column the letter?

View 15 Replies View Related







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