Tech Problem Aggregator

Solved: move data from rows and columns to other rows and columns

Q: Solved: move data from rows and columns to other rows and columns

I have data that repeats hundreds of times. I am trying to put each string of data on 1 line.

f-name(A2) initial(B2) l-name(C2) ID#(D2) DOB(E2) Street(F2) company(G2)
City(F3) company#(G3)
Home Phone(F5)
Work Phone(F6)

After the data is moved to one line I would like to delete the lines that previously housed the information. The company# can be deleted. I have never worked with macros. I would appreciate any help given.

A: Solved: move data from rows and columns to other rows and columns


3 more replies
Answer Match 156.3%

I have been working on a project for a few weeks and I could really use some help. I'm attaching a dummy file (example1) that is an example of how my XLS comes to me each month.

I need a macro that leaves me with the second file (example2). If the macro could just grab the Student name, then put the following info for each student all on 1 row, that would be perfect:

Child's Name | Date In | Time In | Rounded | Time Out | Rounded

Sometimes for some reason there is a student with a (Cont) after their name. I need that row deleted and just pull the times up onto the same row as other times. The example2 file might make sense.

Here are the steps I am doing manually that I hope a macro could do for me!
Un-merge cells: B10
Un-merge any cells with a child's name such as Doe, Jane
Delete any row with a childs name that has (Cont) after it such as Doe, Jane (Cont)
Delete rows: 1-9
Delete columns: A, C, F, H, I, J, M, N, O, and P
Manually move all info up to one row per student
Delete all empty rows below
See example2 as the completed file but I only moved a few of the rows per student for the sake of time.

Is there any way to do all of this with a macro?

A:Solved: XLS Macro to delete specific rows/columns and move columns to rows.

16 more replies
Answer Match 136.5%

I'm a novice excel VBA macro user. I've manipulated already created macros, but I'm not sure how to create one from scratch. Can someone please help me create a macro.

I'd like to move the values highlighted in yellow to the cells highlighted in green...and then delete any rows that are empty.

Thanks in advance for the help.

A:Solved: Excel Macro to Move Data in rows to columns

9 more replies
Answer Match 136.5%

I started out with the two previous posts about macros (post 1, post 2) that move rows into columns, but I'm having a little trouble getting it to work for what I need. First, I'm trying to do a data merge into Word, but in order to get the data merge to work/look the way I want it to, I need the XLS data to be in columns.

I'm attaching an example file that has one worksheet of the sample data (though my "real" data has about 300 rows) and the other worksheet is an example of the outcome I need.

Is there anyway I can do what I need? Exporting into another file or another worksheet within this file would be fine.

Thanks in advance.

A:XLS Macro to move data to columns, delete empty rows, delete duplicate columns

11 more replies
Answer Match 132%

I have a very large spreadsheet (i.e. too big for pivoting and transposing wouldn't work) which looks something like this:
Col. ACol. BCol. CCol. DCol. ECol. FCol. GEntry1Info124562131654632435435Entry2Info150256874654242454654Entry3Info2221333333336546548463
I want it to look like this (i.e. flip Col.C through Col. G and line it up with Entry1, then do the same for Entry2, etc.):

Col. ACol. BCol. CEntry1Info12Entry1Info456Entry1Info2131Entry1Info6546Entry1Info32435435Entry2Info150Entry2Info25Entry2Info6874654Entry2Info242Entry2Info454654Entry3Info222Entry3Info133333Entry3Info333Entry3Info654654Entry3Info8463

Please help!

A:Move Data from Columns to Rows (w/o pivot)

11 more replies
Answer Match 123.6%

I do a weekly report that I base on results that I get with search done in Internet Explorer. I can then cut and paste these results into an Excel spreadsheet, but I need to delete most of the information (whole rows) and reorganize the remaining rows by taking the even numbered rows and putting them into the B column, then delete that Row as well. I have included some images that should help. A few more items:

1.)The information that I paste into the excel spredsheet may contain up to, but no more than 350 lines from the original copying source in Explorer (I'm not sure how many lines that translates into Excel)

2.) After every 20 records in Explorer there is a "top" link that gets copied, which needs to be taken into consideration when deleting the extra rows entirely

3.) Another way to look at this is that I ONLY want to keep the rows that have the 7 digit number a space then 2 more digits, as well as the rows that contain the price with the $ For instance the first record in my example I ONLY kept 8055312 11 & $70,000. The price will ALWAYS have a $ and the first set of number will ALWAYS have 7 digits first, no letters.

Attached is a jpg that shows the various steps, the last screen shot has a few of the cells highlighted in the upper left hand side. Those 6 highlighted cells is all of the information I need, and how I need it presented from the first 3 search records, the MLS number and the price.

A:Solved: Excel Question: Removing unwanted Rows, moving some rows to new columns

16 more replies
Answer Match 122.7%

I have a flat file that when I read it into excel it populates column 1 of each row with data.
This data is actually a series of 5 fields that I need to have in columns and rows, that is,
column a1 thru a5 I need placed in a1, b1,c1,d1 and e1 followed by
column a6 thru a10 placed in a2,b2,c2,d2 and e2.
The data is balanced, that ism there is data in each of the 5 fields for a "record".
Any help would be appreciated.

A:Solved: excel macro to move columns to rows

8 more replies
Answer Match 114%

In Sheet one I have some raw data which in sheet two I have picked out the useful pieces and have then input into out work forms. The problem is that I need to fill the form across (column) but in the sheet that it is referenced from I need it to take the data from the row


sheet one
....a.. b. c
1 a1 b1 c1
2 a2 b2 c2
3 a3 b3 c3

I need to find a way to automatically get it to do this referencing sheet 1 in column A and then filling to the right but actually having it go down the rows in sheet 1
sheet 2
...a.. b ..c
1 a1 a2 a3
2 b1 b2 b3
3 c1 c2 c3
the idea is that when the software exports to sheet 1 we will be able to print sheet two in the form we need it without having to make any changes. I know my explanation is a little crude but if someone could help me I would appreciate it. thanks.

A:Excel problem. Fill columns I need to move across rows in another sheet

You could use:


in Sheet2!A1, then replicate that down an across (pro forma style).

Would that help?

1 more replies
Answer Match 114%


I have imported sales data in excel. The information lists in along two rows with mutliple columns. I need the information to be in one row under various headings. I have attached a link to a sample to explain this properly. I think I need to use a macro but I don't understand enough about them to make it work.

Any help would be much appreciated.

A:Moving data from columns to rows

11 more replies
Answer Match 112.8%

I have data in columns - starting A2 - P2 (and another set of data from A3-P3)

I have various formulae using that data, starting in A20-A40.

I wish to include the second 'row' of data (the A3-P3) into a second set of formulas from B20-B40.

Filling 'right' doesn't work, because, if the formula in the A column is something as simple as "=A2+C2+D2", when I fill right, the formula in the B column is "=B2+D2+E2" - when I NEED it to read "=A3+C3+D3"

I realize there is probably a simple workaround for this - in fact, I COULD just rekey the formula...the reasons I don't are 1) the formulas are more elaborate than I listed, 2) there will be many more rows of data (at least 15 more) - so, rekeying the formula for EACH row of data would be time-consuming and 3) it will eventually move the formulas off the same 'visible area' as the data (I'm currently combatting that by having the panes frozen).

Is there any way to accomplish what I'm trying to get done?


A:Creating Formulas in rows from Data in columns

9 more replies
Answer Match 112.8%


does anyone know how to search for the text content of a cell through a column and then return the value/content of the cell of a certain other column of the same row where the text content was found?

A1 B1 C1 D1
2 013004T XY
3 092004TP YZ
4 012004TP ZY
5 052004P YX
6 092004TP YY [FORMULA]
7 072004TP ZZ
>>FORMULA: "Look for string '092004TP' in column A (other than in row 6) and return the value of that row in column C (C3=YZ)."
NOTE: There might be more than 1 row with the string '092004TP' in column A - I would need the sum of all results in column C where the FORMULA finds this string.

I also have a similar problem with another worksheet:
It would require a formula which searches through a whole column for certain names, e.g. "Donna", and then returns the value of another column in the same row where it found "Donna"; the value, again, is not in a column directly adjacent to the column where "Donna" would be found.
This is fairly identical to problem (A), except that the search string would be unique (only 1 result), and it doesn't have to take into account (and disregard) if the string was found in the same row of the FORMULA (the search column would be in a different worksheet from the FORMULA worksheet).

Thanks for any suggestions!

from New Zealand


A:EXCEL Searching Data in Rows/Columns

7 more replies
Answer Match 111.6%

We have a survey package which is great, but it out puts the questions numbers over the columns and each new row is a response, however our calculations are setup for the question numbers to be the rows and the responses are the columns. Is there any way to swap these values around in this fashion? Thanks for any help

A:Excel: swapping columns and rows layout of data?

Howdy. You can copy the data, then Paste Special > Transpose

2 more replies
Answer Match 110.4%

..... and I want to convert the lot to 2 decimal place numbers.

Excel has several methods, but none seem to work for conversion in bulk. Working on futher cells from a suitably formatted one does not work.

Is the only way to solve my problem to manually enter the numbers elsewhere, clear the original cells, and then cut and paste back to the original cells?

Help please!

A:Number data in 10 columns and 25 rows pasted from other source is text

Need more info about the source text file. When opened in Word and Show All (the paragraph mark) is enabled, what does the text file look like?

See this thread from a couple years ago and see if it gives you any ideas:

Please Help - Data in Text File to be arranged in Excel in a specific


3 more replies
Answer Match 109.2%

"Macro Creation Request for Moving Data from Rows to Columns in a Non-Conventional Way"

Hello, all! Hopefully somebody can help me with the following problem (please see the attached document).

Presently, I have an Excel 2010 document containing variables 1-6 per country in rows for label 1 through label x. However, I need the table to contain the country level information as columns for each label so that there is only one row per label. For example, instead of row 1 containing label 1 argentina variables 1-6 then row 2 containing label 1 arab emirates variables 1-6, I need the table to contain row 1 label 1 columns argentina variable 1, argentina variable 2, etc...then arab emirates variables 1, arab emirates variable 2, etc.

Also, the countries in the table that do not have information for a given label fall at the end of the list for each label instead of in alphabetical order, but they need to be placed in alphabetical order when "columnized." I have provided the arab emirates as an example. Alphabetically, it comes before Argentina, but in the list it comes after because it did not contain information for those given labels. Since information per country will vary from label to label, the countries must remain in alphabetical order in the columns regardless of whether information is provided or not per label.

Is there a macro that may be written for this?

Thank you so much, in advance, for taking the time to read my post! Happy day!

A:Macro Creation Request for Moving Data from Rows to Columns in a Non-Conventional Way

14 more replies
Answer Match 106.8%

I need a visual basic macro for excel 2002 that will do the following:

From sheet1:ColumnA
Select rows until sheet1:columnA value does not start with REC (as the no of rows is unbalanced, sometimes 7 rows, sometimes 10 rows, sometimes 8 rows, etc)
copy selected rows and transpose to sheet2:columnA to however many rows were selected

Repeat until end last row
My real table has 30000 rows and the rows are unbalanced

I am attaching a test file.

Please help me and thank you for your support and time.

Tech Support Guy System Info Utility version
OS Version: Microsoft Windows XP Professional, Service Pack 3, 32 bit
Processor: Pentium(R) Dual-Core CPU E5300 @ 2.60GHz, x86 Family 6 Model 23 Stepping 10
Processor Count: 2
RAM: 2047 Mb
Graphics Card: ATI Radeon HD 4300/4500 Series, 1024 Mb
Hard Drives: F: Total - 99998 MB, Free - 30856 MB; G: Total - 205236 MB, Free - 153405 MB; H: Total - 305168 MB, Free - 180367 MB;
Antivirus: None

A:Visual Basic Macro for Excel 2002 columns to rows in new sheet using unbalanced data

Can you also attach a second workbook showing how the data should appear after the macro is run?


3 more replies
Answer Match 105.9%

When I attempt to insert a column or a row, I'm getting a message from MS Excel:
"Cannot shift objects off sheet".
Can someone advise me as to what I must do to correct this?
Also, what have I done to cause this to happen?
Thank you for your help.

A:Solved: Inserting Columns or Rows

hi floydcojacket,

I think this is connected with your earlier issue with cell comments.

I'm now sure you must have your Advanced Options, Display Options for this Workbook- Display Objects set to Hide.

That option is in the next block below the Display options for Comments.


2 more replies
Answer Match 105.9%

I am really new to Excel (2003) and have read several similar posts to mine below; but cannot adapt the existing programming to accomplish the task. I wish to convert a data in “Book A” to appear like that of “Book B”
This will be an almost daily repetitive task. Please refer to the attachment. Thanks for looking. Any thoughts on the subject will be greatly appreciated.

System information:System Board: ECS K7S5A Chipset: SiS 735
CPU: AMD @ 1200 MHz
System Memory: 4x1024MB (DDR SDRAM)
Bios: AMI (11/21/01)
Video: onboard
Audio: Creative SB Live!
Op System: Win XP - Pro SP3 with all updates

A:Solved: Rows to Columns Issue

6 more replies
Answer Match 105.9%

I had a similar post and thought it I understood the solution, but did not. Solution called for Pivot tables and it's not quite working for me. Just wondering whether a VBA file would better serve the purpose. Please look at the attached file. Many, many thanks for the kind help. (Running Excel 2003 on an XP- SP3 machine.)

A:Solved: Convert rows to columns, (again)

7 more replies
Answer Match 105.9%

Hi all. First post so be kind! Bit of a novice at VBA, but i am sure this is possible..
basically, I have a contact list in Excel that I need to format 'correctly'. It is currently formatted with the address on multiple rows, with phone number and email address in another column ( i have attached a dummy file). I would like to 'move' data so it is in correct columns...
Name Address1 Address2 Address3 Address4 Address5 Phone Email

To make matters a bit trickier, the number of address rows varies, so it might be 5 rows or sometimes 3; and not all contacts have an email address (although they would always be in row "2" of a contact address.

Many thanks in advance for any advice


A:Solved: Moving rows to columns

12 more replies
Answer Match 105.9%

I remember seeing somewhere that you can convert rows to columns in Excel, where the numbers would be across the top and the letters down the side. How is that accomplished? Also, if there is data in the spreadsheet at the time, will it be converted too or will it just change the tabs?

A:Solved: Converting rows to columns

7 more replies
Answer Match 104.7%


I have data in the following row format:

0 4591 5 4491 10 4461 15 4441 20 4321

The data are X and Z points so the above example shows 5 pairs of data. I would like to place these pairs of data sequentially in two columns where one column has all the X's and the other has the related Z's. I have many, many rows of similar data that I need transferred into two columns.

0 4591
5 4491
10 4461
15 4441
20 4321

Could anyone help me out with a macro that can do this for me?

Thanks very much in advance.

A:Solved: Excel Macro - Rows to Columns

Welcome to the board.

Let's say the example pairs are in A1:J1.

With A1:J1 selected,

Sub test()
For Each Cell In Selection
If Cell.Column Mod 2 = 1 Then
Range("A" & Rows.Count).End(xlUp).Offset(1) = Cell.Value
Range("B" & Rows.Count).End(xlUp).Offset(1) = Cell.Value
End If
Next Cell
End Sub

gives you actual pairs in A2:B6.

So, what do we need to adjust to make it compatible with your "many, many rows of similar data" scenario?

3 more replies
Answer Match 104.7%

I need to convert rows to columns in Excel like this:

Monday | 1
Tuesday | 2
Wednesday | 3
Thursday | 4
Friday | 5
Monday | 6
Tuesday | 7
Wednesday | 8
Thursday | 9
Friday | 0


Monday | Tuesday | Wednesday | Thursday | Friday
1 | 2 | 3 | 4 | 5
6 | 7 | 8 | 9 | 0

Is this possible?

Well, that didn't display at all like I expected. In short, I need the repeating headers in column A to become one set of headers in row 1 with the data corresponding to each header name below it. Does that make sense?

A:Solved: Excel Rows to Columns with a Twist

Try this :

1) copy the days i.e(MondayTuesdayWednesday Thursday Friday Monday Tuesday Wednesday Thursday Friday
2) Go to the required cell and right click and select "paste special as" then select "Transpose"
You will get the data in this shape
MondayTuesdayWednesday Thursday Friday Monday Tuesday Wednesday Thursday Friday
4) Repeat the same step for other data............

2 more replies
Answer Match 103.5%

Hi Again

CodeLexicon gave me a code that worked very well in hiding column A only. Is it possible to make the macro hide all columns with all zeros?? Also I tried to change CodeLexicon's macro to do hide all rows whose columns have zeros but without success. I tried to make the code generic.

Attached is a workbook with the 2 macros. Test the macro that I did out and see that it only hides row A only.


A:Solved: Macro to hide all rows whose columns have zeros

6 more replies
Answer Match 103.5%

Hi all,

this came up in conversation recently and I thought I knew the answer but was proved wrong.

when you insert a row (or column), it sometimes (but not always) copies the format from the preceeding row (or column).

what are the criteria that determine this?

I thought it was based upon something like if the preceeding 5ish rows were all the same format but it's not that!


Just realised I don't know how to add a link to a previous post!!
btw I used the macro in the posting 11-Aug-2004 "Insert Row Automation" which solves the above nicely (thanks Anne), but I'm still curious for the above criteria.
btw the 'InserARow' macro needs a row test at the beginning to check that you aren't insering above row 1 'cos there aint a row 0 to copy down from!

More replies
Answer Match 101.4%

Excel 2000

I have created a calender ( actually a schedule) in excel which has multiple rows columns (A9:O36). The schedule shows where everyone works that day (eg billy on fries, johnny on grill, susie on cashier)

At the bottom I want to create one box which shows what days each worked and where

..................Fries | Grill | Cashier |

I've tried Sum. sumif, countif, if-then even an array...
Can't seem to do it or find the answer through searching
The closest I've come is the array, but I don't know how to make it work for a range of cells that is not a column
Any thoughts would be appreciated.

A:Solved: count instances that occur in multiple rows/columns after criteria met

9 more replies
Answer Match 101.4%

for some reason, this afternoon they began showing only ONE column, on the left side of the folder. the remainder of the folder is blank. see attached screen shot.
thanks for helping, boyd.

Tech Support Guy System Info Utility version
OS Version: Microsoft Windows 7 Home Premium, Service Pack 1, 64 bit
Processor: AMD Athlon(tm) II P340 Dual-Core Processor, AMD64 Family 16 Model 6 Stepping 3
Processor Count: 2
RAM: 2810 Mb
Graphics Card: AMD M880G with ATI Mobility Radeon HD 4250, 256 Mb
Hard Drives: C: Total - 288256 MB, Free - 112291 MB; D: Total - 16683 MB, Free - 2407 MB; F: Total - 99 MB, Free - 89 MB;
Motherboard: Hewlett-Packard, 1444
Antivirus: AntiVir Desktop, Updated: Yes, On-Demand Scanner: Disabled

A:Solved: Folders no longer show rows and columns of icons/thumbnails.

Thanks for the screen shot; makes it very clear what you are describing.

If you select a file it will preview it in the Preview pane (maybe not all types of files). If you'd like the Preview pane smaller and the main area larger drag the divider to the right. If you don't want the Preview pane at all get rid of it (Organize - Layout - remove check from Preview pane).

3 more replies
Answer Match 99.3%

I have formulas that has the data setup in rows (input). The next sheet is formulas that are in columns referencing these individual rows (output). When column A's formulas are dragged to column B, the references change as expected but to Sheet1!B1 rather than Sheet1!A2 (back to the rows). I think I 've done this before, but can't for the life of me remember how. Help me please and I'll be your best friend! (hey, it's the best I can do).



A:Excel Columns to Rows

Select all the cells involved

Right click anywhere on your selection and from the menu that pops up choose Copy

Click in the cell where you want the list to begin then Right click and from the menu choose Paste special you will now see another menu.

At the bottom right hand side of this menu, Select Transpose.

That's it your list will now run across the page instead of down

3 more replies
Answer Match 99.3%


I do not know much about excel so i need your help.
Attached is a screenshot. Please examine it a bit to know which rows and columns the data responds to.

Now that you done that heres the question:

How can i switch the dates to the top row and the exercises to where the dates are but keeping the readouts of the weight measurements to its corresponding labels?
I looked over it and it seemed like i had to do it manually but i am wondering if there was a way to automatically do it? Without all the hard work

A:Flip the rows and columns

Check out the function =Transpose()

Type into the top cell you want to put the new table (I'll use A32), and using your screenshot values:
In cell A32: "=Transpose(A1:K27)" (don't use ") after you type that in, select starting at that cell the same area for your new table - all the cells.

So select A32 and select to AA42, then press F2, hold down Ctrl & Shift, and then Enter, and it will Transpose the vertical to the horizontal and all the corresponding data.

Transpose is brilliant.

I recommend that you then copy the information from that and use paste special and keep values, then delete the complete rows with the transposed array, its annoying cos you can't change the info, so just turn it back into cell data is the best option.

Unless you want to put it on another sheet, and want it to update from your original data.

3 more replies
Answer Match 99.3%

Isn't it possible to freeze a specific row or column, rather than panes?

A:freezing rows/ columns

If you are talking Excel then you can freeze the Top rows and side columns as headings, but I don't think you can freeze individual rows/columns anywhere else on the worksheet.

2 more replies
Answer Match 99.3%

Copy Rows into columns using VBA1 have a very little experience with VBA, and I would really appreciate any help with this issue. I need to convert rows into columns from sheet 1 to sheet 2.input file Article ID EU-statistics Number of sheets Size of sheet Absorbancy With empties BOM (Empties Bill of Material)1062 a 0 b 0 c1065 a 0 b 0 c1066 a 0 b 0 c1071 a 0 b 0 c1077 a 0 b 0 c1081 a 0 b 0 c1086 a 0 b 0 c1090 a 0 b 0 cDesire output file Article ID 1062 EU-statistics a1062 Number of sheets 01062 Size of sheet b1062 Absorbancy 01062 With empties BOM (Empties Bill of Material) c1065 EU-statistics a1065 Number of sheets 01065 Size of sheet b1065 Absorbancy 01065 With empties BOM (Empties Bill of Material) c1066 EU-statistics a1066 Number of sheets 01066 Size of sheet b1066 Absorbancy 01066 With empties BOM (Empties Bill of Material) c

More replies
Answer Match 99.3%

I've long used a simple macro on various spreadsheets to reset the last used cell:

Sub Reset_Range()
End Sub

This works fine, but prior to using it, I would have to press CTRL + End to see where the current last cell is, then manually delete any blank columns and rows appearing at the end of the data, by selecting them by their column letters / row numbers, right clicking and selecting Delete. Failure to do this would mean the macro didn't successfully correct the last used cell.

I would like to add this stage into the macro.
I found some code on the web that allegedly removes all blank rows and columns, so I pasted it at the top of my existing macro:

Option Explicit

Sub DeleteBlankRows()
Dim Rw As Long, RwCnt As Long, Rng As Range

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

On Error GoTo Exits:
If Selection.Rows.count > 1 Then
Set Rng = Selection
Set Rng = Range(Rows(1), Rows(ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).Row()))
End If
RwCnt = 0
For Rw = Rng.Rows.count To 1 Step -1
If Application.WorksheetFunction.CountA(Rng.Rows(Rw).EntireRow) = 0 Then
RwCnt = RwCnt + 1
End If
Next Rw

Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic

End Sub

Sub DeleteBlankColumns()
Dim Col As Long, ColCnt As Long, Rng As Range

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

On ... Read more

A:Solved: Excel 2003 macro to delete blank columns & rows, then reset range

6 more replies
Answer Match 98.4%


I would like to put names or numbers on the columns
and rows.

Ive managed to get a table to work for me, its a set
of multiples for 45
the first cell is blank, the next is the first entry
and i put 45 in this case here, the rest of the table
fills itself in with multiples of 45.

Thing is, when i print it out, i want the columns and
rows to have headings.

Is there a way to do this please?

The drawing is only aproximate, i have to convert to
bmp, then add in the extra numbers, which dont change
they could be background, the colour doesnt matter it
is only there to separate the columns and rows from
the multiples of 45.
Later if its 46 or 47 i would use the same table.

<img src="">

by using the tens and units you get the multiple at
the intersection.
row 20 and column 2 give the result for 22 times 45

There might be better ways, but this works ok.

Regards, John

A:EXCEL, Can i put headings on rows and columns??

I set up the rows and column headings the way you want.
Then I hid the "real" row and column headings.
You can left-click to view it.
Right-click and choose Save target as to save it.

2 more replies
Answer Match 98.4%

I have some Excel files that only take up 50 - 100 rows, but the scroll bar on the side is very tiny (as if I had used the worksheet to the bottom). Is there a way to get rid of these unwanted rows at the end? I've highlighted and deleted them, but they just get replaced. Is there a simple way, withouht copying the data to a new file?


A:Excel - Getting rid of extra rows/columns

Copy and paste the cells into a new worksheet. By default, Excel opens a Workbook with 3 Worksheets. After copying andpasting the info, nad verifying that itlooks the way you want, then you can right-click the worksheet tab at the bottom and delte the old one.

3 more replies
Answer Match 98.4%

how can the contents in cells A1, A2 and A3 be transposed so that they are on the same row, AND always on the same row as B1; and

how can the contents in cells A4, A5 and A6 be transposed so that they are on the same row, AND always on the same row as B4.

a sample worksheet is attached.


A:excel - transpose columns to rows

10 more replies
Answer Match 97.2%

Okay, got a convoluted spreadsheet going on & I'm not entirely sure how to describe it in words. I tried several searches on these forums and on Google but I didn't find anything that was relevant. So I'm going to apologize in advance if I'm re-posting a topic due to my inability to use the appropriate vocabulary to describe this problem.

Windows XP Professional SP3
Excel 2007

I've attached an example spreadsheet.

Here's the simplest way I can describe it:

1) Test1 is the first spreadsheet I'm working with
- All the data is already filled in by a vertical organization
- This spreadsheet will be updated on a regular basis

2) I'm trying to have the data in the columns moved over to another sheet
- Horizontal organization (This can not be compromised - Absolutely necessary)
- This is being done by formulas (of course)
- This needs to be done on separate pages, i.e.: Jack should have his own page, Jill should have her own page
- It would be preferable to find a way to use the Fill command, as there are more records currently and more coming (or at least a way to automate the proper filling)

3) Is there any way in which this can be done with merged cells? If not, then I don't mind doing it with un-merged cells
- Merged Cell Version is "Test2" Sheet
- Un-Merged Cell Version is "Test3" Sheet

Both the Vertical & Horizontal Based Spreadsheets are going to be updated on a regular basis but the firs... Read more

A:Non-Adjacent Formula Filling - Columns vs Rows

13 more replies
Answer Match 97.2%

I have an excel file with single worksheet. The file is about 4-5 print pages in A4 size. The excel file has titles in first column and 5th row. I want to repeat these titles in every pages when printing. How do I do this. Can I use macros for this.

A:Repeating rows and columns for printing in excel


1 more replies
Answer Match 97.2%


I need help in Excel copying columns and paste it in rows.

Ex: I have Columns A and B.
Column A Column B
5.78% 4.51%
23.60% 32.50%
14.17% 16.41%
32.12% 54.16%

Now output should be in one row.

Row1 5.78% 4.51% 23.60% 32.50% 14.17% 16.41% 32.12% 54.16%

A:Copy columns and paste in rows in Excel

sub test()
dim rng as range
dim i as long
dim col as long
dim nextcol as long
dim lastrow as long
lastrow = range("A"&rows.count).end(xlup)
set rng = range("A2:B"&lastrow)
nextcol =col+1
for i=2 to lastrow
range(cells(i,1),cells(i,col)).copy cells(1,nextcol)
end sub

1 more replies
Answer Match 96%

In my work environment we are writing test cases and for the test steps we use a word table. Its the same 4 columns so we can load them into the Quality Center environment. One issue we had was our review tool doesn't support word but does text documents. The format of the table was kind of messy when we saved as a text document in the sense it would lump all the stuff together with no clean breaks. As a solution people making every other row and column blank so there would be a break in the text format. Once the review was complete you would have to then go back into that word doc and delete all the blank rows and columns to load into Quality Center. Not hard but time consuming with the number of test we would deal with. I wrote a quick macro that would delete the header in the table plus all the blank rows and columns.

Now what we have is we are re using these test and adding to them. Currently we are pulling them out of quality center, adding the blank rows and columns back in, adding our updates, sending back out for review, deleting the blank rows and columns (macro does this), load back into Quality Center.

There may be a better way to go about this but what I am after is this. A macro that will insert a blank row and column every other row and column. I have been off and on playing with this for a few days but really have gotten no where with it. Posted on a few non technical forum and they suggested posting on this site for some help. I tried searching and did... Read more

More replies
Answer Match 96%

Hello - I found a previous post on this site that solves (I think) 90% of what I need to accomplish. I have a large spreadsheet that I need to:

· Delete column C
· Delete all rows without account numbers (Acct numbers will always be in column A)
· Delete all rows that have dates in column F other than &#8220;00/00/0000&#8221;.

The code I found on this site is :

Simple vba code:
lastrow = Range( "A65536").end(xlup).row
For y = LastRow To 2 Step -1
If Cells(y, x).Value = "" Then Cells(y, x).Delete shift:=xlUp
Next y
Set the range to the the column desired, in this case "A"
Lastrow checks the last row and starts from the end up.
Removes all empty rows entirely up to row 2 because row 1 generally is the header
Happy coding
Can anyone help me?

A:Excel VBA Macro to delete rows/columns with criteria

To delete column c, use:
Delete all rows without account numbers (Acct numbers will always be in column A)
If Cells(y, "A").Value = "" Then Cells(y, "A").Delete shift:=xlUp

lastrow = cells(rows.count,1).end(xlup).row
For y = LastRow To 2 Step -1
If Cells(y, "A").Value = "" Then Rows(y).EntireRow.Delete
If Cells(y, "F").Value = “00/00/0000” Then Rows(y).EntireRow.Delete ' Delete all rows that have dates in column F other than “00/00/0000”.
Next y


1 more replies
Answer Match 96%

Hello - I found a previous post on this site that solves (I think) 90% of what I need to accomplish. I have a large spreadsheet that I need to:

· Delete column C
· Delete all rows without account numbers (Acct numbers will always be in column A)
· Delete all rows that have dates in column F other than “00/00/0000”.

The code I found on this site is :

Simple vba code:
lastrow = Range( "A65536").end(xlup).row
For y = LastRow To 2 Step -1
If Cells(y, x).Value = "" Then Cells(y, x).Delete shift:=xlUp
Next y
Set the range to the the column desired, in this case "A"
Lastrow checks the last row and starts from the end up.
Removes all empty rows entirely up to row 2 because row 1 generally is the header
Happy coding
Can anyone help me?

A:Excel 07 MACRO to delete rows/columns w/ criteria

Delete all rows without account numbers (Acct numbers will always be in column A)Click to expand...

If there are no acct numbers, will there be

blanks ""
Space " "
dash -
other ??
Can you provide a sample with dummy data so we can see the data structure?

1 more replies
Answer Match 96%

Hi, I'm new to macro. Hope you can help me with my problem. I've been stuck with this for a week with no result.

I have this table:

001 002 003 004
111 115 119 123
112 116 120 124
113 117 121 125

Let's say, the first row are the StoreID and all other digits below them are the ProductID

I want to convert this table into something like this:
001 111
001 112
001 113
002 115
002 116
002 117
003 119
003 120
003 121
004 123
004 124
004 125

I haven't made any macro before in MS Excel and this one is really getting the breath out of me.

Hope you can help me please.. I'd really appreciate it.

Thank you in advance!

A:Help with Macro in excel - Convert Rows to Repeating Columns

is this just a "one off" thing or do you have many sheets to convert? Because for one or a few sheets, it is not a lot of work to do manually...probably take a few minutes ( I 'll explain if you need)

to automate I can do it, but I need to build some loops and references to refer to the columns and ranges to move to a new's a bit of work.

Please confirm also if it is only 4 columns, and or if the column count varies

1 more replies
Answer Match 96%

I know you can hide and unhide rows and columns but can you make it so they don't even exist?

I have a just under 2m picture I want to put as a background but when you put the file as a background it tiles it the whole 256 columns and 65,536 rows even if I have them hidden.

This makes my 2.5m spreadsheet over 32 megs in size even with the columns/rows hidden.

I need to be able to see the lines on this above the picture for this project and I can't find any way to do this. I thought I could put it in the background but this pesky problem turned up.

I tried adding more space to the jpg that was empty white space but this too also increased the file size.

A:Excel - Pictures and Limiting the number of rows and columns?

8 more replies
Answer Match 95.1%

I am un able to get an existing word file to open. I can get the following to open a new word file. I need this to opoen an existing file.

Sub export2Word(row)
Dim oWD As Object
Dim wdDoc As Object
Dim TWB As Workbook, wsh, wsh1 As Worksheet
Set TWB = ThisWorkbook
On Error Resume Next
Set oWD = GetObject(, "Word.Application")
If Err.Number <> 0 Then Set oWD = CreateObject("Word.Application")
Set wdDoc = oWD.documents.Add
With wdDoc
With .Range.paragraphs(1).Range
.Text = "PICK UP & DELIVERY" & Chr(10)
.Font.Size = 15
.Font.Name = "Times New Roman"
.Font.Bold = True
.Font.Underline = True
.ParagraphFormat.Alignment = 1
End With
With .Range.paragraphs(2).Range
.Text = "PICK UP" & vbTab & Cells(row, "K").Value & vbTab & Chr(10)
.Font.Size = 10
.Font.Name = "Times New Roman"
.Font.Bold = True
.Font.Underline = True
.ParagraphFormat.Alignment = 0
End With
With .Range.paragraphs(3).Range
.Text = Chr(10) & Chr(10) & Chr(10) & Chr(10)
.Font.Size = 13
.Font.Underline = False
.DefaultTabStop = Application.CentimetersToPoints(1)
.ParagraphFormat.TabStops.Add Position:=Application.CentimetersToPoints(5), _
Alignment:=0, Leader:=0
End With
With .Range.paragraphs(5).Range
.Text = "NAME" & vbTab & Cells(row, "B").Value & vbTab & _
Cells(row, "C").Value & Chr(10) & _
"ADDRESS&qu... Read more

A:Populate Word Doc from Excel (Multiple Rows, Select Columns)

Welcome to the forum
You should paste your code in a code clock

[ code ]

no spaces in between the []

[ / code ]

Set wdDoc = oWD.documents.Add

To open a word doc

Set wdDoc = oWD.documents.Open(fullpath and name of the file)

This should do the trick

1 more replies
Answer Match 95.1%

Well..glad I found this forum. I would like to be able to populate a word document from an excel worksheet, with the ability to select (highlight) multiple rows in excel and have those rows transferred to word, but only certain columns

I found almost the right macro here:

Except you can only select (1) row.

Any coding solutions on how to copy a range of rows? This will also require the .Text in the word paste to change....
I see some hope with this code as well, but figuring it out may take me longer than someone that does this everyday.
Thank you.

A:Populate Word Doc from Excel (Multiple Rows, Select Columns)

12 more replies
Answer Match 95.1%

Ive spent so much time on this, I want to pull my hair out.

I have a pdf file of addresses. I converted the pdf to an excel file (the one I uploaded).

My eventual goal is to convert the addresses into excel, then do a mail merge into word.

I found a tool (via this great site) called ASAP utilities that I can turn the rows into columns, thats easy.

But the problem is, the addresses aren't always the same length. Some labels are 4 rows, others are 6 rows.

Is there any way I can either automatically make the rows 6 each without doing it manually? Or does anyone have any type of suggestion?

Thanks so much for the help

A:Converting excel rows (addresses) to columns for mail merge

Firstly, can I assume that you have permission to use those addresses for your own mailing?

If so you could go back to the originator and ask them to give you a CSV file, or maybe see if the pdf file can be saved as a CSV file.

If so, it would be very easy to bring that into Excel and then convert the file from text to Columns, using the Data, Text to Columns feature.

1 more replies
Answer Match 93.3%

I sure hope someone can provide, or direct me to the formula to accomplish the following in Xcel 2000.
I have a singe sheet consisting of 5,123 rows of data in 13 columns. A person has been maintaining this and we are about to convert it to cvs and install a text file in a CGI\Perl program to run on a web site. For some unknown reason the person who started and has been maintaining the file has set it up so that the first 3 columns contain data that should be all in one column. Here is an example: a ham radio call, we will say is: WW6XXX. In the first column (A), row 7, he has entered the prefix: "WW", in the second column, (B), row 7 he has entered the call district "6" and in the third column (C), row 7, he has entered the suffix "WWW".

I have inserted a blank column "D". I can combine, for example A7,B7 and C7 with the simple formula =A1&B1&C1 placed in D7. No problem.

Now the problem, and I'm sure you all ready can see it. I need to do this with all 5,123 rows. It certainly SEEMS, logically, that I should be able to accomplish this but durned if I've been able to do it. I have Googled, I have Jeeved it, you name it, I've tried it. I have found some "close calls" that almost answer it, but not the real answer.

Obviously I can do this 5,123 times, manually, but I'd rather find a simpler answer, if there is one.
Blessings to anyone who can provide me with the answer. This by the way, is for a... Read more

A:Solved: In Xcel, I Need to combine multiple columns containing multiple rows into one column

9 more replies
Answer Match 93.3%


I am trying to classify and code my inventory items in excel.
My classification sheet contains data in columns which I would like to copy to rows in another excel sheet.
Here is the sample data in ACMOTORS-ATTRIBUTES sheet:

The above sheet has to be converted to columns as in Item_Classificatios_Form sheet :

Can anybody assist me in writing a macro for the same.


A:Solved: Excel Macro to convert Rows from one sheet to columns in another sheet

8 more replies
Answer Match 87.6%

Hi There

It has been quite a while since I asked for help. I wonder if the following is doable as an Excel macro. The attached is only a demo with only 2 fields and a few rows of data. The real worksheet has more fields and around 3,000 rows.

Sheet 1 contains the data in its initial state and sheet 2 contains data after the macro is run. You will see from sheet 2 that the field labeled QUANTITY determines the number of rows to insert and copy the correct data into those inserted rows. I want the entire row to be copied down as opposed to only the data, since I have more columns than shown here. Is this possible to do? Can anyone help me with writing a macro, since I have over 3,000 rows to do.

Thanks for all your help. You guys are fantastic.


A:Inserting specific number of rows in Excel and copying data in those inserted rows

14 more replies
Answer Match 87.6%

Hi I am trying to copy and insert rows based on a number in cell E. If the number in cell E is 4, I would like to copy 3 additional rows beneath the original and then also number the 4 rows into column F consecutively for each group. I am attaching a spreadsheet of before and after. Sheet 1 is the before and sheet 2 is the after. Can anyone help me with this. I have tried another code but it not work properly. I did find one that would put blank rows in but I cannot get past that. Any input is greatly appreciated.

Thank you


A:insert rows based on number in cell and copy the data down into the new rows

Hi Peg

Try this solution and see if it is ok for you. I've put in some code to help prevent the running of the code multiple times on the same sheet. If you don't need this safeguard you can delete the block of code that does this.

Also, make sure and make a backup of your file before running this - just in case.

1 more replies
Answer Match 82.8%

If you check the file attached.

please can you help me in moving data with duplicate names to have the 2nd and 3rd email address moved to a new column and delete the row

need an excel macro to automate this as i am working with a large number of records like this in one excel sheet. i.e, i want to select the sheet and move data in every 2nd row to the columns in row above at the end of columns in that row.

A:Excel Macro to Move data in Rows to column

I'm unable to understand the entire requirement, but for moving the records with duplicate names, I've written few lines. This will cut the duplicate record rows (Consider "Pupil Forename" for removing)from the "Report Data" and will post into "Sheet3". Before running this macro please insert "Sheet3". Let me know your requirement, hope I will be able to resolve it out. Thanks!

Sub test()
Sheets("Report Data").Select
Dim trow As Long
trow = ActiveSheet.UsedRange.Rows(ActiveSheet.UsedRange.Rows.Count).Row
For i = trow To 1 Step -1
If i = 1 Then
Exit Sub
End If
If Cells(i, 1).Value = Cells(i - 1, 1) Then
Selection.Cut Destination:=Sheets("Sheet3").Range("A65536").End(xlUp)(2)
End If
Next i
End Sub

2 more replies
Answer Match 82.8%

I have a excel file like below.

Column1 |Column2|Column3|Column4|Column5|Column6|Column7
Row 1 EEEE 1 2 3
Row 2 4 5 6

I want to move data in row 2 (4,5,6) to Row 1 columns 5,6,7.

Could you help me with an excel macro to automate this as i am working with a large number of records like this in one excel sheet. i.e, i want to select the sheet and move data in every 2nd row to the columns in row above at the end of columns in that row.

your assistance is greatly appreciated.

thank you

A:Excel Macro to Move data in Rows to column

8 more replies
Answer Match 81.3%


I was hoping somone could please help me out.

I have an excel spread sheet with a lot of data in columns which i need to convert into rows. The problem is one column contains over 10,000 rows of data... thus making it too hard to transpose manually.

I have attached a copy of the spreadsheet (condensed version) and was hoping someone had some suggestions on how i can achieve my desired outcome.

Thanks very much,


A:Move alot of Data from Columns Excel 2010 - too big to transpose

I'm sorry to say that this is pretty much impossible as far as I can tell because there simply isn't enough consistency in your layout. If all rows were there and in order it would be easy enough.
As they aren't, one would need to inspect the titles to put them in the right place, but your titles don't always match either. For example your second "Telephone" entry is actually titled "Clinic Mobile", which the computer justly sees as very different indeed.
I'll try to help if I can, but you'll need some point of consistency if you want computers to automate a process. If it helps, here's a copy of my spreadsheet that inspects the titles (on sheet 2). If there are only a few problematic titles it might be easier to correct them manually (or use search and replace).

3 more replies
Answer Match 107.52%

Ok I am trying to print a spreadsheet format list. I have about 30000
title-artist entries in 2 columns. I am basically trying to print pages 1 & 2, 3-4, 5-6 and so on the same page without shrinking them way down. I want it to be just like I printed 2 columns but with 4 instead. I want to use the left side of the page for page 1 and the left side for page 2. Any help would be greatly appreciated.


A:Solved: Printing 4 Columns from 2 columns in excel

Welcome to the board. ?

1 more replies
Answer Match 106.68%

I tried out this formula, =IF(B10<>"",COUNTA($B$10:B10),""), to number the rows in a column that have data in adjacent columns, but leave a row un-numbered and uncounted if the adjacent cell was blank. It worked great in Column A.

However, I tried using the formula in column D and it didn't work so well. Instead of numbering in sequence it was counting by 3's. 3, 6, 9, 12 etc. It still skipped the rows with no data in the adjacent cells but the numbering was wrong.

I tried making some changes no no avail.

This is the formula in D10: =IF(E10<>"",COUNTA($B$10:E10),"")

Any ideas on how to make this formula work in Column D?


A:Using =IF(B10<>"",COUNTA($B$10:B10),"") to number rows in columns other than A


I think your problem is with your formula having a static reference for the first part of the array in the COUNTA (The dollar signs). Since you have the reference in the original location as $B$10:B10, when you copied it over, it kept the reference so your new location is counting across columns B through E. You can fix this 1 of 2 ways. You can modify only the formula in column D to read =IF(E10<>"",COUNTA($E$10:E10)"").

Alternatively, you could change your original formula and recopy it. The dollar signs will keep the reference they are in front of static, so if you changed your original formula to =IF(B10<>"",COUNTA(B$10:B10),"") and copied it, the column label would change relatively.

The final recommendation I'm going to give is a new formula that I think gives you the same result but with easier formulas.


This will give a true/false value based on whether or not the targeted cell is blank, and then return the current row number. Let me know if you need any further assistance!

5 more replies
Answer Match 106.26%

Is there anyone who could help me with one macro? This is the format of the data:


And this is what I would like to have at the end:


So basically I need a macro that would copy column D&E and put the data below B&C, also copying tasks respectively. and then the same for all other columns. The problem is that the number of columns varies... sometimes it's 30, sometimes it's much more.

Thanks in advnace

A:Solved: macro to move columns

Welcome to the forum fenrost.

Is there always going to be 7 tasks?

1 more replies
Answer Match 106.26%

How do I move between columns in word? I know how to create columns. I know if I go to the bottom of one column it continues on the other. But I'm interested in writing an address on the left and jumping to the right and writing another address. I'd like to move back and forth between the columns w/o going to the bottom of the page. Is there a way. Thanks, Jex

A:Solved: Move Between Columns In Word

If you mean within a table - TAB

3 more replies
Answer Match 103.32%

I am having exactly the same problem as a closed thread.

Did anyone ever get to the bottom of it?

Basically, if I have a table in Excel 2007, and actually use the filter, it then breaks the autofilter.

I had a table with 6 rows, and it completely messed up.

Now I am down to 4. If I filter on 1, then 1 shows.

If I cancel the filter, only 1 to 3 show and row 4 is hidden. If I drop down the filter, row 4 does not exist.

If I unhide row 4, it is matterless. Excel 2007 's table shows it on screen, but it is no longer in the autofilter.

Filter by row 1, then row 3 disappears into hidden status, and drops off the autofilter. Rows 1, 2 and 4 now show (I unhid row 4, remember?)

BUT< the autofilter now only has row 1 in it. Rows 2 to 4 have been lost from the autofilter.

I need to be able to :
a)automatically add rows
b)filter by criteria
c)reference the table by row and column in calculations

Switching the autofilter off and on does not help. Converting it to a range means all my references went to pot, and also means that referencing and calculating sums breaks it automation. I am utterly depressed.

A:Excel 2007 table filter bug is hiding rows and losing rows from the autofilte

Ah well, Looks like I'm not the only one who had this problem. This article has a detailed explanation of what's causing the problem and a few possible workarounds:

I found it thanks to

2 more replies
Answer Match 102.9%

Weird and annoying.

Suddenly after a reboot my 5 row layout of Metro screen was changed. Tiles are now huge, Metro only showing two rows:

This on laptop's 1600 * 900 display. If I set my external 1920 * 1080 display as primary, it shows the same huge ties in 3 rows:

Register value in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\Grid is 5 as it should be.

Any ideas on how to get my 5 row layout back?


A:Metro tiles suddenly huge, only 2 rows, should be smaller and 5 rows

Hello Kari,

It looks like you may have turned on the Make everything on your screen bigger option under Ease of Access in PC settings. Turning it off should restore things back to normal.

3 more replies
Answer Match 102.06%


I couldn't find an answer in the Forums for this in the past half hour of looking through them- there are so many, and I need an answer sooner than in the 4 or 5 days it will take me to get through them in HOPES of finding my answer. Sorry. So could someone who knows Excel in Windows 7 help me?

I uploaded a bunch of keyword searches. Came up with 4 columns and anywhere from 100- 400 rows. I need to sort these in different ways. By Keyword so the spreadsheet is by alpha, then by Demand with highest at top/lowest at top, by Supply highest at top/lowest at top, and by Profitability highest/lowest. I know I can't do all at once, I am referring to different sorting methods.

Example: (you have to imagine 4 columns, and the numbers going under each column- when I saw the preview it bunched the numbers together and I can't seem to put them where they belong, but the first # goes under the second col (B), second # goes under "C", third # goes under "D" column:



breathing exercises 7995 5306 1507
celebrations 8523 142301 60
cervical 10235 58395 175
chakra 28455 43099 660

My problem has been that in reading the instructions I don't understand how to do this (perhaps I'm just dumb!) so that each word will still have the "righ... Read more

A:Re: EXCEL- resorting rows so they each relate to original rows

When you sort in Excel, you select all of the rows and columns of the data to be sorted. When you apply a sort to one (or many) columns, all of the data on each row is kept complete and moved up or down.

Is that what you needed to hear?

7 more replies
Answer Match 100.8%

I've been at this for what seems forever so any help would be greatly appreciated!

I want to compare data from one sheet to another and for any exceptions (non matches) I want it to copy and paste the entire row into a 3rd sheet.

I've searched and found various codes about comparing columns, but my need seems to be a little more complex. I want it to compare 2 columns on sheet 1 (columns A & B) against 2 columns on sheet 2 (columns C & D) and it does not what row they are in. I also would like the sheet name to be included in the results.

I've attached a sample book with the data. Sheet3 shows what data should generate from this code.

These would be the results because the names (both first and last) do not appear on both sheets. I dont have a lot of experience with code so any help would be great.

Thank you!

A:Solved: VBA Compare data columns

12 more replies
Answer Match 100.8%

I have a workbook (sample attached) which lists customer data in cols A to J. Each customer has a main ref (col B) and may have any number of secondary refs in cols L onwards. Col K shows how many secondary refs the customer has, and is used in the code below to determine how many blank rows to add for those customers that have 1 or more secondary refs (1 row per ref)
Sub Insert_Row()
Dim I As Long
LASTROW = Range("C" & Rows.Count).End(xlUp).Row
For I = LASTROW To 2 Step -1
If ((IsNumeric(Cells(I, "K"))) And (Cells(I, "K") <> Empty)) Then
Range(Cells(I + 1, 1), Cells(I + Cells(I, "K"), 1)).EntireRow.Insert
End If
Next I
End Sub
The attached shows the worksheet having run the code
What I need now is for the code to do 2 more things –
1. Once the blank rows have been inserted for e.g. the customer in row 5, the value in L5 to be copied to B6, and the value in M5 to be copied to B7. (Could select, then transpose?)
2. Then copy the values in cells C5:J5 into the same columns in rows 6 & 7. (Not bothering with col A)
Sheet 2 shows the end result I’m after Basically, I’m consolidating main and secondary refs for each customer into one list.
Hope someone can help?

A:Solved: Copy data to inserted rows

11 more replies
Answer Match 99.96%

Hi everyone

I'm a newbie here, so hoping someone can help me!!
I have Names and Mobile Number in Column A. I need to find a way of moving Mobile Numbers into Column B - please tell me there is a simple way in which this can be done.....HELP!

A:Solved: Data From One Column To Split Into Two

8 more replies
Answer Match 99.96%

Hi - I'm semi-proficient with excel, and I'm actually working on creating some dashboard reports at this time.

One problem I'm having is separating some of the data from a specific column. Let me give you an example:

9/1/2009 14:14 8/28/2009 7:33 7/17/2009 14:29 9/11/2009 12:28 9/11/2009 12:19 9/10/2009 18:53 9/11/2009 13:17 9/11/2009 13:27 9/10/2009 13:19 9/11/2009 13:08 9/11/2009 8:29 9/11/2009 13:01 9/11/2009 13:11 9/11/2009 2:00 7/22/2009 13:31 9/11/2009 13:04
This column has over 2600 lines, this is just a sample. What I need to do is break this column out by month, and show how many dates are from the last month, the last 2-3 months and the ones that are 3+ months in the past. Of course I want the sheet to show this info automatically, so it has to know the current date which I can do by placing the formula "=TODAY()".

So, what I'm asking for is what formula (and format) would I use to count how many cells in this column fall into each of date ranges I mentioned.

Also, I did manage to use the =DAYS360(A6,C9) (for example) where A6= "=Today()" and C9= "9/10/2009 13:19" above. This information is in cells next to the above data as follows:

-13 -16 -57 -3 -3 -4 -3 -3 -4 -3 -3 -3 -3 -3 -52 -3

So I figured out how to list how many days I have since the date in the first column, but not how to break them apart within the column.

Hopefully this is enough information to request some help, but if you need more info pl... Read more

A:Solved: Data separation in Excel columns?

7 more replies
Answer Match 99.96%

On the attached spreadsheet, I need a total count of baselined desktops (minus the ones that have been deleted) problem is how do I get it to look at one record, mark that that agent had been a baselined one, but is now deleted, so don't count it. I can't just remove the deleted ones, cause I want my customer to know which agents have disappeared. Take a look at the formula in B2 for a general idea. That formula doesn't work cause it just adds everything together. I need it to be smart enough to Total the Baselined Agents and then Subtract the agents that are baselined and deleted per field. Any questions let me know. Look at B2 to get an idea and see if I'm on the right track.

A:Solved: Excel - Trying to count 2 columns (almost as one) to get data for a 3rd.

6 more replies
Answer Match 99.96%

I have data organised in paris of columns with differing amounts of data in each column pair.
I need to move all data to columns A&B:

- If there is data in columns C & D, move it to the foot of columns A&B.
- Then, if there is data in columns E & F, move it to the foot of columns A&B.
- Etc. til the end of the ActiveRange.

I've managed to do this using hard-coded column references, but it involves a lot of reptetition.
Presumably the code can be substantially compacted, and work to the end of the ActiveRange rather than to arbitrary end columns (in this case, cols AC and AD).

A:Solved: Excel VBA moving all data to columns A+B

This will work on the active sheet.... If you need this for multiple sheets we would need to alter the macro slightly. Test this on a copy of your xl file.


Sub appAB()

Dim i As Integer
Dim lRow As Integer
Dim lRowA As Integer

For i = 3 To 30 Step 2
lRow = Cells(Rows.Count, i).End(xlUp).Row
lRowA = Cells(Rows.Count, 1).End(xlUp).Row + 1
Range(Cells(1, i), Cells(lRow, i + 1)).Cut Destination:=Range("A" & lRowA)

End Sub

3 more replies
Answer Match 99.96%


First, thank you all for you time and knowledge in advance.

Here's my situation. I'm working with file that is sent to me with populated information, in this example Col A
What I would like to do is enter information in Col B and then do a comparison of both A and B, letting me know if something in Col B is not in Col A and also is something in Col A not in Col B.

I need to know if what was sent to my in the spread sheet match what I physically inventoried.

I have provided an example.

Hopefully I did not over complicate my request.

Thank you,


A:Solved: comparing data in two columns in Excel

does this help

or this may ble closer to what you need

3 more replies
Answer Match 98.7%

What would be the best way to find a specific Column Header, and copy the data found in the column until the column header is found again?

A:Solved: Excel Macro Copy Data From Columns

8 more replies
Answer Match 98.7%

Hi, This is a fab site, just spent a good few hours reading through without realising the time!
ANyway, I am stuck on an Excel problem.

I have two columns, of which there are lots of duplicates in column A, and various values in column B:

Like this:

A. B.

Book Title 1. Song One
Book Title 1. Song Two
Book Title 1. Song THree
Book Title 2. Song One
Book TItle 2. Song Two
Book Title 2. Song Three
Book TItle 2. Song Four

and so on, for 339334 rows.

What I would like to do is have all of the relevant info from column B in just one cell, in one row, rather than a separate row for each song title.

So what I ideally need is:

A. B.
Book Title One. Song One, Song Two, Song Three
Book Title Two. Song One, Song Two, Song Three, Song Four

and so on. I have no idea where to begin with this. I have read several similar things that might help, but the problem is that each 'Book Title' has a different number of songs in it.

Can any one advise a complete beginner on how I might accomplish this?

Many thanks for any guidance!

A:Solved: Excel Sort and Merge Data from two Columns into a row

11 more replies
Answer Match 98.7%

I have a spreadsheet that has is basically ready to be converted to a .csv file, It is basically a list of items that I want to convert to a csv file so I can import into our ERP system.

The problem is I have some items with 0 qty on it and I do not want those rows going into our ERP system. I want to clean this up before I convert to a csv file.

Items # Qty
1121 1
1470 0
1569 2

I just want
Items # Qty
1121 1
1569 2

Is there a macro that I can run that will do this for me?

A:Solved: Excel - remove 0/blank rows data for csv conversion

6 more replies
Answer Match 97.86%

I am trying to build a spreadsheet that allows me to enter data (steel angle) by individual leg sizes and thicknesses that automatically references the correct weight per foot so I no longer have to look it up in a book. I have loaded the data and built the template, but I cannot get a formula to work that will search my array of data that has repeating data in all the columns, but where all the data in one row has a unique weight. I have tried several commands, and I feel like I need a nested command, but I do not have the knowledge to get it done properly. I have attached the file: Angle Database. Any help will be greatly appreciated.



A:Solved: Repeating Data in multiple columns for unique result

I used Concatenate and Vlookup to solve the problem. I just needed a week to let my head clear.

1 more replies
Answer Match 97.86%

Hi guys,

I've been going through this thread and its been a lot of help. I've now come across a problem that i cant find the solution to and im hoping someone can help me out.

I have a file that contains two columns of data in MS Excel and one value in the first column corresponds to a value in the second column. For example -

Column 1 Column 2
A1 X
A1 X
B2 Y
A1 X
B2 Y

What I have to do is find if there are any mismatches in the data for example an X corresponding to B2 instead of A1 or vice versa (or any other value instead of X and Y in the second column for that matter). I would need a message saying there are a particular number of errors and the rows in error should be highlighted. I DONT need the corrections just need to see where the mismatches are.

Im pretty new to Macros and VB, so please bear with me , but i do understand the basics and ive done some programming before.

Any help would be greatly appreciated . Thanks

A:Solved: Checking data in seperate columns and finding mismatches

oops.. the X's and Y's are supposed to be in column 2.
That didnt quite show up how i expected it to..

3 more replies
Answer Match 97.44%

I am looking for a way to insert rows automatically with a formula or some other function. I have large spreadsheets where the data will be the same in a certain column for two to 50rows. When that data changes in that column, I want a row inserted before the new data item. I've searched ?Help with no solution. Is there a way to do this so I don't have to go line by line looking for the data to change, then manually adding a blank row between the changed data?

A:Solved: Excel 2003 insert rows when data stops duplicating

10 more replies
Answer Match 96.6%

Hi everybody

I have got an hourly meteorological data for 10 years. The problem is that some of the data entries are missing. e.g.

23-April-2006 19:00
23-April-2006 20:00
23-April-2006 22:00
23-April-2006 23:00

I need to insert the rows for missing hours. Rest of the columns in the inserted row are needed to be blank. e.g.

23-April-2006 19:00
23-April-2006 20:00
23-April-2006 21:00
23-April-2006 22:00
23-April-2006 23:00

Please also note that for some years, the data entries are for half past hours. e.g.

31-Dec-2001 23:30
01-Jan-2002 00:30
01-Jan-2002 01:30
01-Jan-2002 02:30

Muhammad Zeeshan

A:Solved: Inserting rows for Missing Date/ Time data (Excel 2007)

16 more replies
Answer Match 95.76%

I was hoping someone could help me write or find a macro that would take two columns and move it to column A under the previous data and repeat for all columns. Basically user information is located in pairs of columns (typeofvalue, value). So column A and B are for user1, column C and D are user2, column E and F are user3, etc. Bonus if I could have a space in between each once moved.


HTML Code:
User1First User1Last User2First User2Last
User1ValueTypeA1 User1ValueB1 User2ValueTypeA1 User2ValueB1
User1ValueTypeA2 User1ValueB2 User2ValueTypeA1 User2ValueB1

HTML Code:
User1First User1Last
User1ValueTypeA1 User1ValueB1
User1ValueTypeA2 User1ValueB2


User2First User2Last
User2ValueTypeA1 User2ValueB1
User2ValueTypeA1 User2ValueB1
Each user has 47 rows of "values", for the example I just did two rows worth.

A:Excel Macro to move columns to 1 row after each other.

I did a quick google and found this. It worked for you?

Excel macro to move columns to 1 row after each other

2 more replies
Answer Match 95.76%

Hi, Just got a new computer with Windows 8.1 and I'm having trouble with getting my emails. Also new to this web-site and help. I read on here a suggestion to go to View, click Settings, then go to Columns etc, etc. I can't do this. When I go to View and Settings the only thing that is highlighted is Custom - I can't make the Columns to be hightlighted so I can open that up. Help! and many thanks in advance.

More replies
Answer Match 95.76%

I am trying to hide rows of my worksheet that show a date in the completed column.
The orders that are complete have a date in column F up to this point I highlight them green so I know they are completed but it would be nice if they highlighted green and were hidden when a date was entered into the completed column.
Can someone assist me with creating a macro that will do this?
I am very new to macros so please forgive my lack of knowledge.

I have attached a sample of what I am doing however inf has been changed.

I am using Excel 2007

Thank you,

A:Solved: Macro for excel 2007 to hide rows based on any data entered in a column

Hi, welcome to the forum,

I put some simple code in the Sheet's vba

Make sure you allow macro's to be run

Just enter a date in the last row of column F for testing.

For the other green rows, just click in column F and update the date by retyping it

3 more replies
Answer Match 94.5%

I have a dump from a text file in two single columns. The first column is a block of 55 labels that repeat for every group of data, the second is the data for 110 transducers. Every transducer produce 55 single values (numerical or status(text)). I need to order this two columns dumps into a table. Where the first column are the labels and the rest 110 column the corresponding data one column per transducer.
How can we do this? Can any body help me?

A:Excel macro to move two Columns into a table

Hi and welcome to TSG!

Can you upload a sample of the textfile? I just need a few lines. It doesn't have to be real data. Just want to see the data structure.If you can provide this, I'm sure we will solve the problem.


1 more replies
Answer Match 94.5%

I have this annoyng thing that i'm not able to change in windows 7 :
when i browse a folder (i have the list visualization) if i have many files what happens when the folder is not enlarged (most of times) is that i see 2 colums of files.
If i click on a file on the second column, that column move to the left, the result is all colums scrolls to the left. This is really annoyng when i just want to select a file and keep the visualization of the previous files in the previous column. Or when i double click to hear an mp3 on the second column, it scrolls.
Well... sorry for my english i hope you did understand the little issue wich is going on since few years, but now is time to understand how to change this behaviour in Win 7.
Any of you know the solution?

A:Clicking on files move the columns in the folder...

What view are you using? If you use details view then the folder contents should scroll rather than wrap.

8 more replies
Answer Match 91.56%

I have found a few posts here and there about how to move columns around but nothing quite what I m looking for.

So I get these data dumps from a vendor weekly , column headers are always the same but they are always in different order (strange I know)


Email | Phone | Last Name | First Name

I would like to have a macro cut/paste entire rows and put in a specific order

First name |Last Name| Phone| Email

Any help would be great! Thank you!

A:Excel 2007 – Macro (newbie) - Move Columns bases on name question

How many total columns are we talking about? Is it possible to post a sample workbook with any sensitive data removed so I can see the structure.


3 more replies
Answer Match 91.14%

Hi,i found this question and seems near to my problem, but I totally dont know how to revise the code."Excel: Moving Column Data Into New Rows??"I have this data:UniqueID Company 1FullName 1Designation 1CountryCode 1Phone 1Email 2FullName 2Designation 2CountryCode 2Phone 2EmailR123456 Company1 Chris Reeves +65 90221111 R234567 Company2 Sam Lim Sole Proprietor +65 9851234 Samboy Lim Account +65 94890987 xyz@ggg.comR345678 Company3 Jose Accounts Department +65 67672345 and I need the above data to be like this:UniqueID Company 1FullName 1Designation 1CountryCode 1Phone 1EmailR123456 Company1 Chris Reeves 65 90221111 abcd@ggg.comR234567 Company2 Sam Lim Sole Proprietor 65 9851234 lmno@ggg.comR234567 Company2 Samboy Lim Account 65 94890987 xyz@ggg.comR345678 Company3 Jose Accounts Department 65 67672345 pqr@ggg.comPlease help.Thanksedited by moderator: Mask email addresses

A:Moving columns data into new row

I have edited your post to mask anything that looks like an valid email address. We do not want this forum to become a place where email addresses can be harvested. Once the bad guys start hanging around it's really hard to get rid of them.I can not determine the layout of your input or output data.Please click on the following line and read the instructions on how to post example data in this forum.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

4 more replies
Answer Match 91.14%

Alright so I have 2 workbooks lets say "workbooka" and "workbookb" they both contain the same column header "asset #". Workbooka has a list with no duplicates and is listed as column D. While Workbookb has a couple duplicates and is in column F. I wanted to be able to pull the information from workbookb into workbooka for only the "asset #" that match. Because of the duplicates however I have been running into a problem. Looking for input that does not involve a macros or add-in.

Thank you

More replies
Answer Match 91.14%

Hi - i am trying to write a macro to move data from some rows to columns, but its not a straightforward transpose. Attached is the example

and if there are any blanks not to transpose those.


A:Macro column data into rows

Select your range of data to evaluate (in your attached example you would select C3:N12) and then run the macro below. The macro will create a new sheet with the transposed data.
Sub Transpose()

oldSheet = ActiveSheet.Name

Worksheets.Add().Name = "NewSheet"


For Each vcell In Selection.Cells

If vcell.Value <> "" Then

vRow = Sheets("NewSheet").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).Row

Sheets("NewSheet").Range("A" & vRow).Value = Range("A" & vcell.Row).Value
Sheets("NewSheet").Range("B" & vRow).Value = Range("B" & vcell.Row).Value
Sheets("NewSheet").Range("C" & vRow).Value = Cells(2, vcell.Column).Value
Sheets("NewSheet").Range("D" & vRow).Value = vcell

End If

Next vcell

End Sub

1 more replies
Answer Match 91.14%


I am in need of a Excel tool (may be VBA/Fucntion..) where in I get the data from a spread sheet into another based on the 3 cells of a row.
EX: Excel 1 is having 3 columns defined (A, B, C) & each row in these columns will have predefined numbers as shown below:
Using these I need to get the data from Excel 2 (where we have the columsn A, B, C) for columns D, E....
Compare row 1: X1,Y1, Z1 in excel 1 & excel 2 to get cells D1, E1& F1 data to be filled from Excel 2.

A:Data from one excel into another by using predefined rows

13 more replies
Answer Match 91.14%

Hello Again

This is an Excel question. I have many rows in an Excel spread sheet that have duplicate data. These duplicate rows vary in content and in length each and every day. So far I have been deleting the duplicate rows manually. This task is now becoming time consuning. To make it easier on myself, I do a sort so that duplicates are all clumped together. For example I may the following in Columns A and B. Note, there are no spaces between different products.

000-00-001 product A
000-00-001 product A
000-00-002 product B
000-00-002 product B
etc and so on

I tried writing a macro to eliminate the duplicates only but it does not work properly. Can you help me on this one?


A:Deleting Rows that have duplicate data

6 more replies
Answer Match 91.14%

In my quest to develop macros to manipulate our data I am trying to find a way to delete all rows that do not contain data in column J. Any ideas of how I could select rows without having the specific worksheet in the macro?

Whenever I try recording a macro using the sort function, it specifies the one worksheet where I recorded it.
This is what it recorded:
ActiveWorkbook.Worksheets("Z011_15A").Sort.SortFields.Add Key:=ActiveCell. _
Offset(-98, 0).Range("A1:A159"), SortOn:=xlSortOnValues, Order:=xlDescending _
, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Z011_15A").Sort
.SetRange ActiveCell.Offset(-99, -9).Range("A1:X160")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
End With

A:MACRO selecting rows that do not contain data in a particular row

8 more replies
Answer Match 91.14%

Not sure where to post this; hope I found the right forum.

I have a set of texts in the source language in Excel. I have translated these into the target language. What I now want to do is match the source language data with my translations.

Is there any way to tell Excel that "when the text XXX is in column G, row 341, the text XXX is to be inserted into column H, row 341)?

Just an example.

In other words, what I want to do is make sure my translations are placed in the column to the right of each source language text.


A:Excel, matching data in rows

i have moved to business applications

in column H you can use IF

in H341
=IF(G341="XXX", G341, "what to do if not")

this will copy G341 into H341 only if G341 contains "XXX"

=IF(G341="XXX", "YYY", "what to do if not")

if what you want inserted is different text

1 more replies
Answer Match 90.72%

Hello. I am looking for copy data based on criteria into a new work sheet and format it at the same time. My data is a database dump with thousands upon thousands of records and for my purposes I want to create a semi-refreshing excel dashboard that will show the data I want to extract. Basically I am dumping the database to an excel tab but can also access the database so getting to the data is not the problem. What I would like to do is get the data based on criteria and add it to an excel worksheet with a row being created based on the successful criteria of the data.Basically my data looks like this:## DATA FILE TAB ##[![Data file sample][1]][1] [1]: this is what I want the data to end up looking like. One thing to keep in mind is that I can't simply populate a worksheet as I need to be able to create new rows once "good data" has been filtered.## Formatted Worksheet ##[![Formatted Worksheet][2]][2] [2]: for your help in advance.

A:How do I add rows of data to new worksheet from data dump

I'm not quite sure what kind of help you are asking for. Your subject line asks about "adding rows to a new worksheet" yet you posted an image [2] of data that is apparently sorted in some way and formatted with different font sizes and fill colors. In addition, the 2nd contains data that doesn't even appear in the original data set.What exactly are you asking for help with? Are you asking us to help create that 2nd, formatted sheet or are you asking for help with adding rows to that formatted sheet? I also don't understand this line:with a row being created based on the successful criteria of the data.What does "successful criteria of the data" mean?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more replies
Answer Match 90.3%

I'm trying to find a way to delete some data from a column, say column A. The numbers to be deleted are in another column, column B. Is there a way to have excel remove from column A, those numbers that appear in column B? It would require some way to compare, but I can't figure out if excel has this capability. If the columns were small, we could do this manually, but the data set is huge, with several thousand numbers.

Thanks for any help.

A:Is it possible to subtract data columns in excel?

16 more replies
Answer Match 90.3%


I have a really big problem in excel that I don't know how to do it.
In my workbook, I have 4 imported columns from txt files. They are located in: Z, AA, AB and AC.
• Z & AA contain the first and last name. This can't contain any numbers.
• AB & AC contain the arrival/departure hours. This can't contain any words.

The list of names is made as the folowing:
• the unique names always start from the top
• the dupplicated names always start after the unique list.

There can't be more than two instances of the same name and the list is contiguous. Based on that, I need to find only the dupplicated names that have one arrival and one departure hour in cells AB and AC. So, the first matched name should have AC blank and the dupplicate will have AB blank. I will concatenate the names if it's easier to do the macro but I'd rather not because the workbook itself is packed with loads of formulas and it's really making it difficult to calculate.
An example has been attached containg the expected result. The workbook has 57 sheets and they all use the same reference: Z, AA, AB and AC from row 17 and down.

Thank you for reading and for your intent to help. I appreaciated.

A:VBA search two columns same time and get data

16 more replies
Answer Match 90.3%

Here is a sample of the table that I am working with:

Year Warehouse Item# Period1 Period2 Period3 Period4 etc....

There are many more columns but my issue is that if there is a 0 or blanks for all columns from period 1 to period 12 then don't show that row. How do I get this to happen with a query?

A:Access - hide row if many columns contain same data

In the first Criteria row for each period column enter

1 more replies
Answer Match 90.3%

Is it possible to fetch some lines of data from a group of web pages and paste in to Excel?Pls view the image for required excel columns.

urls are,
Stock Share Price dlf ltd | Get Quote dlf | BSE
Stock Share Price dlf ltd | Get Quote dlf | BSE
Stock Share Price jaiprakash associates ltd | Get Quote jaipra | BSE
up to 100 urls in a text file.

A:Web site data to excel columns

When you right click on the webpage and select "View source" from the context menu - do you see the info of interest; I don't. If the info were there, you could use InetGet. They know the value of the info being presented and they probably want to discourage automated data mining.

See if there is a mobile version of the webpage.

9 more replies