Windows Support Forum

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

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

Hello I ve long used a simple macro on various spreadsheets to reset the last used cell Sub Reset Range Application ActiveSheet UsedRange End then Excel 2003 range reset to & delete columns rows, macro Solved: blank 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 Solved: Excel 2003 macro to delete blank columns & rows, then reset range 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 Solved: Excel 2003 macro to delete blank columns & rows, then reset range Long RwCnt As Long Rng As Range Application ScreenUpdating False Application Calculation xlCalculationManual On Error GoTo Exits If Selection Rows count gt Then Set Rng Selection Else Set Rng Range Rows Rows Solved: Excel 2003 macro to delete blank columns & rows, then reset range ActiveSheet Cells SpecialCells xlCellTypeLastCell Row End If RwCnt For Rw Rng Rows count To Step - If Application WorksheetFunction CountA Rng Rows Rw EntireRow Then Rng Rows Rw EntireRow Delete RwCnt RwCnt End If Next Rw Exits 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 Error GoTo Exits If Selection Columns count gt Then Set Rng Selection Else Set Rng Range Columns Columns ActiveSheet Cells SpecialCells xlCellTypeLastCell Column End If ColCnt For Col Rng Columns count To Step - If Application WorksheetFunction CountA Rng Columns Col EntireColumn Then Rng Columns Col EntireColumn Delete ColCnt ColCnt End If Next Col Exits Application ScreenUpdating True Application Calculation xlCalculationAutomatic End Sub However it doesn t work with my current document - pressing CTRL END after running the combined macro takes you to the same last cell as if you hadn t run it Cells in the blank columns and rows at the end have formatting shading cell borders but no obvious data As a test I also tried deleting the contents of column in the middle of the data selecting column and pressing Delete just leaving the cell formatting in place The macro failed to remove that column too So can someone help me get code that actually works in deleting empty columns and rows and resetting the last used cell Ta nbsp

Relevancy 100%
Preferred Solution: Solved: Excel 2003 macro to delete blank columns & rows, then reset range

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/directdownload.php. (This link will automatically start a download of Reimage that you can save to your computer.)

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

https://forums.techguy.org/threads/solved-excel-2003-macro-to-delete-blank-columns-rows-then-reset-range.1038197/
Relevancy 105.4%

I have been working on a project for a few weeks and I could really use some help I m attaching a dummy file example that is an example of how my XLS comes to me each month I need a Solved: to delete specific XLS Macro move to columns rows/columns rows. and macro that leaves me with the second file example If the macro could just grab the Student name then put the following info for each student all on 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 Solved: XLS Macro to delete specific rows/columns and move columns to rows. a Cont after their name I need that row deleted and just pull the times up onto the same row as other times The example file might make sense Here are the steps I am doing manually that I hope a macro could do for Solved: XLS Macro to delete specific rows/columns and move columns to rows. me Un-merge cells B 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 - 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 example 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 nbsp

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

https://forums.techguy.org/threads/solved-xls-macro-to-delete-specific-rows-columns-and-move-columns-to-rows.1021890/
Relevancy 100.44%

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 VBA Macro to delete rows/columns with criteria

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

Use:
Code:
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


 

https://forums.techguy.org/threads/excel-vba-macro-to-delete-rows-columns-with-criteria.934475/
Relevancy 100.44%

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?
 

https://forums.techguy.org/threads/excel-07-macro-to-delete-rows-columns-w-criteria.935095/
Relevancy 94.55%

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

https://forums.techguy.org/threads/xls-macro-to-move-data-to-columns-delete-empty-rows-delete-duplicate-columns.1014294/
Relevancy 93.31%

Hi,

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
Else
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?
 

https://forums.techguy.org/threads/solved-excel-macro-rows-to-columns.992309/
Relevancy 92.38%

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.
THanks
 

Relevancy 91.45%

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.
 

Relevancy 87.42%

Please Help - ASAP - Thank you in Advance.
(I did also post this under Business Applications, before realizing it should probalby go here - sorry about that)

I'm just STUCK on this one last bit of my code to finish off this macro for a meeting today

I am Copying a Range of data, from a specific sheet on about 36 Workbooks
I need to paste only certain columns from that copied info, into a new worksheet.

Maybe I'm making this sound too difficult... at this point all I need is:

Columns A-E, K, P, S-U, W, AB-AC, AE-AH, AJ-AK, from the "TargetData" (Defined Range) on Customer Targets worksheet of Test1, to Paste into Columns A-S of the Build Worksheet

This should be easy right? I'm having a mind block...
 

A:Excel Macro - Move Specific Columns from Range to New Range - ASAP If Possible

There have been a bunch of views, but not replys or suggestions. Am I not including the right information? Is this not posted in the right place? Can someone please help me?
 

https://forums.techguy.org/threads/excel-macro-move-specific-columns-from-range-to-new-range-asap-if-possible.682364/
Relevancy 87.11%

Please Help - ASAP - Thank you in Advance.

I'm just STUCK on this one last bit of my code to finish off this macro.

I am Copying a Range of data, from a specific sheet on about 36 Workbooks
I need to paste only certain columns from that copied info, into a new worksheet.

I think I've attached a sample of the code, and some test workbooks I've been using.

Any advise would be helpful. I know this should be easier than I'm probably making it...
 

Relevancy 84.63%

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 list...it's a bit of work.

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

https://forums.techguy.org/threads/help-with-macro-in-excel-convert-rows-to-repeating-columns.748186/
Relevancy 84.32%

Hi All,

I have a spreadsheet containing 30 address blocks that I'm trying to clean up. A sample is attached.

All of the data is in column A. Each address block is 6 rows, like this:

Name
Company Name
Street Address
City/State/Zip
Phone number
Email Address

Between each 6 row block is a varying number of additional rows that might or might not contain extraneous information. I want to remove those extra rows leaving only the address blocks.

I'm thinking about counting the "x" number of rows between email address "@" symbols, and then just deleting X-6 rows. But I'm not sure how to accomplish this.

Any ideas how this might be accomplished, or any better suggestions to accomplish the goal?
 

A:Solved: Excel macro/vba to delete rows

"might or might not contain extraneous information"

For Each Cell In Range("A1", Range("A" & Rows.Count).End(xlUp))
If InStr(Cell, "@") <> 0 Then
Cells(Cell.Row - 5, 1).Resize(6, 1).Copy Range("B" & Rows.Count).End(xlUp).Offset(1)
End If
Next Cell

If those are real names and addresses, you should remove your file.
 

https://forums.techguy.org/threads/solved-excel-macro-vba-to-delete-rows.769443/
Relevancy 83.7%

I am trying to find a way to find a specific text within a worksheet, select that cell and the 9 rows under that row, and delete the 10 rows.
 

Relevancy 83.08%

Hi,

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.

Thanks,
mihaufo
 

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

https://forums.techguy.org/threads/solved-excel-macro-to-convert-rows-from-one-sheet-to-columns-in-another-sheet.1045277/
Relevancy 81.53%

I need to delete multiple columns within an Excel worksheet based on the headers in the first row. What would be the best way to perform this operation?

I have been playing around with the code below, but I feel as though there could be a better way.

Sub test()

Dim myArr As Variant

myArr = Array("Test1", "Test2", "Test3")
If Range("C1").Value = myArr Then
Columns("C").Delete shift:=xlToLeft
ElseIf Range("D1").Value = myArr Then
Columns("D").Delete shift:=xlToLeft
End If

End Sub
 

A:Solved: Excel Macro -> Delete Multiple Columns Based on Criteria

https://forums.techguy.org/threads/solved-excel-macro-delete-multiple-columns-based-on-criteria.835469/
Relevancy 81.22%

I need a visual basic macro for excel that will do the following From sheet ColumnA Select rows until sheet columnA value does not start with REC as the no of rows is unbalanced sometimes rows sometimes rows sometimes rows etc copy selected rows and transpose to sheet columnA to however many rows were selected Repeat until end for 2002 to in new Visual columns Excel data unbalanced Basic rows sheet using Macro last row My real table has 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 Visual Basic Macro for Excel 2002 columns to rows in new sheet using unbalanced data version OS Version Microsoft Windows XP Professional Service Pack bit Processor Pentium R Dual-Core CPU E GHz x Family Model Stepping Processor Count RAM Mb Graphics Card ATI Radeon HD Series Mb Hard Drives F Total - MB Free - MB G Total - MB Free - MB H Total - MB Free - MB Motherboard MICRO-STAR INTERNATIONAL CO LTD G M -L V MS- Antivirus None nbsp

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?

Regards,
Rollin
 

https://forums.techguy.org/threads/visual-basic-macro-for-excel-2002-columns-to-rows-in-new-sheet-using-unbalanced-data.1080037/
Relevancy 80.91%

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 moving unwanted Rows, Question: rows Solved: Excel to new Removing columns some 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 Solved: Excel Question: Removing unwanted Rows, moving some rows to new columns Row as well I have included some images that should help Solved: Excel Question: Removing unwanted Rows, moving some rows to new columns A few more items The information that I paste into the excel spredsheet may contain up to but no more than lines from the original copying source in Explorer I m not sure how many lines that translates into Excel After every records in Explorer there is a quot top quot link that gets copied which needs to be taken into consideration when deleting the extra rows entirely Another way to look at this is that I ONLY want to keep the rows that have the digit number a space then more digits as well as the rows that contain the price with the For instance the first record in my example I ONLY kept amp The price will ALWAYS have a and the first set of number will ALWAYS have 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 highlighted cells is all of the information I need and how I need it presented from the first search records the MLS number and the price Thanks nbsp

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

https://forums.techguy.org/threads/solved-excel-question-removing-unwanted-rows-moving-some-rows-to-new-columns.814184/
Relevancy 108.36%

Hi,
can any body suggest me a macro code to delete the blank rows from the worksheets, i have a worksheet in which blank or empty rows are present unevenly. and i want to delete all such blank rows all at once. so please suggest me a code.
 

A:how to delete blank rows in a worksheet by macro?

Hi,
I referenced this utility at MSDN, and tested it.
This may or may not be what you are looking for
============== =====================================
Place the following VBA code in the worksheet you want to delete blank rows from
********************************************************************************
' The following code deletes blank rows from the active worksheet.
Dim Counter
Dim i As Integer
Sub DelRow()
' Input box to determine the total number of rows in the worksheet.
Counter = InputBox("Enter the total number of rows to process")
Activecell.Select
' Loops through the desired number of rows.
For i = 1 To Counter
' Checks to see if the active cell is blank.
If ActiveCell = "" Then
Selection.EntireRow.Delete
' Decrements count each time a row is deleted. This ensures
' that the macro will not run past the last row.
Counter = Counter - 1
Else
' Selects the next cell.
ActiveCell.Offset(1, 0).Select
End If
Next i
End Sub
================================================================================================
The solution can be found at.....
http://support.microsoft.com/kb/110759
**********************************************
You may further be able to programmatically create a form with a button that will automate the process.
Hope this helps
 

https://forums.techguy.org/threads/how-to-delete-blank-rows-in-a-worksheet-by-macro.1048882/
Relevancy 107.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.

Mario
 

Relevancy 104.92%

What I need to do is insert 3 blank rowes in to a my excel sheet before bold text. im having to hand ball it at the moment and the pages are sometimes 18 pages long eg:
1900 - every time there is a bold heading I need to insert 3 blank rows befor the bold text. all the bold headings are in the same column.

Please help if you can, thanx all
 

Relevancy 104.92%

I am trying to write a macro that compares cells in column A from sheet1 to cells from column A in sheet2 and if the values from sheet2 are not in sheet1 then I want to delete the entire row from Column A in sheet2.

for example

In sheet1, column A has a list of id no's (no duplicates) and in sheet2 Column A has list of id no's (with duplicates). I want to delete every row in Sheet2 Column A that is not in Sheet1 Column A.

Keep in mind that both sheets have several columns.
Also there is about 5000 rows in sheet 2

Any help would be greatly appreciated.

Thanks
 

A:Excel HELP macro to Delete Row Based 2 columns from 2 sheets

Welcome to the board.

While I understand each part of your post (I think), some parts seem to contradict others. So here's what I did.

In Sheet1!A1:A5 I entered 1 -- 2 -- 3 -- 4 -- 5.

In Sheet1!A1:A6 I entered 1 -- 2 -- 6 -- 3 -- 4 -- 5.

Then I wrote some code that removes the third row from Sheet2, since it contains 6 in column A which is not in col A of Sheet1.

How the code works is:

(i) inserts a new column A on Sheet2

(ii) enters a formula in new column A Sheet2, e.g.:

=MATCH(B1,Sheet1!A:A,0)

which returns a number if there's a match in column A Sheet1, #N/A if not

(iii) deletes any rows on Sheet2 with #N/A in column A

(iv) deletes column A on Sheet2 (redundant).

Obviously if this isn't what you need don't use it, post more info instead.

HTH

Sub test()
Sheets("Sheet2").Range("A1").EntireColumn.Insert
x = Rows.Count
y = Sheets("Sheet2").Range("B" & x).End(xlUp).Row
Sheets("Sheet2").Range("A1").Resize.FormulaR1C1 = "=MATCH(RC[1],Sheet1!C,0)"
Sheets("Sheet2").Range("A1").Resize.SpecialCells(xlCellTypeFormulas, 16).EntireRow.Delete
Sheets("Sheet2").Columns(1).Delete
End Sub
 

https://forums.techguy.org/threads/excel-help-macro-to-delete-row-based-2-columns-from-2-sheets.746604/
Relevancy 104.06%

Hi guys, I have this macro which is below and what i need it to do is only delete the rows that do no contain the number "6" in it. i have over 30k lines many which are either blank or have other values. I only want to keep the rows that contain the value 6 in the C Column.

Sub DeleteDuplicates()

Dim x As Long
Dim LastRow As Long

LastRow = Range("C30000").End(xlUp).Row
For x = LastRow To 1 Step -1
If Application.WorksheetFunction.CountIf(Range("C1:C" & x), Range("C" & x).Text) > 1 Then
Range("C" & x).EntireRow.Delete
End If
Next x

End Sub

If you need a sample i can attach one.
Thanks ahead of time.
 

A:Solved: excel macro to delete rows not containing "6"

HI Chris,

Can you try this codes mentioned below , i have used auto filter for deletion of rows , but u need to mention the column number in the field and also the entire range of the sheet.

Sub DeleteDuplicates()

With ActiveSheet

'Firstly, remove the AutoFilter
.AutoFilterMode = False

'Apply the filter
'.Range("I2:I" & .Rows.Count).AutoFilter Field:=1, Criteria1:=myArr
.Range("$a$1:$c$" & .Rows.Count).AutoFilter Field:=3, Criteria1:= _
"<> 6"

Set Rng = Nothing
With .AutoFilter.Range
On Error Resume Next
Set Rng = .Offset(1, 0).Resize(.Rows.Count - 1, 1) _
.SpecialCells(xlCellTypeVisible)
On Error GoTo 0
If Not Rng Is Nothing Then Rng.EntireRow.Delete
End With

'Remove the AutoFilter
.AutoFilterMode = False
End With

End Sub

Hope its helps you...
 

https://forums.techguy.org/threads/solved-excel-macro-to-delete-rows-not-containing-6.1073267/
Relevancy 103.2%

Need help with a macro for a tool I'm developing for work. What I'm stuck on is something to remove inserted lines in a specific range. See attachment.

I've got buttons within column I8:I14 that will copy B2:I2 and instert below the button,shifting the content down. I need an option for the users to remove these lines somehow. I was thinking of having checkboxes within the inserted lines in column B so the users can select which rows they want deleted and then can click the "Delete Checked" button in I7 to remove. My attempts at getting checkboxes to copy over have failed and I'm not sure what else I can do.
 

Relevancy 102.77%

I have the following data that i need to create a set of rules or code that if multiple criteria is met to delete the row I have included some examples criteria. multiple to VBA delete or MS on Excel Macro 2007 rows - based of what i need i tried doing a Recording macro but didnt work since sometimes some of the criteria is not there at the time of running the macro and it fails I need to have code look for specific values i e Account paid Y Date of Payment Blank Highlight all cells this is to review information after this then check if it has Code C and Code D Highlight MS Excel 2007 - VBA or Macro to delete rows based on multiple criteria. all cells this is to review information After Check if MS Excel 2007 - VBA or Macro to delete rows based on multiple criteria. Code B Check if Paycode is blank or other Highlight all cells this is to review information Then delete other rows AccountBalanceDateCode Code Due dateCode Code Code Account paidPaycodeJonnathan A B C D E YCollectedJessica A B C D E YCollectedMaria A B C D E NPayPlanLeon A B C D E NPayPlanDavis A B C D E YCollectedCarmen A B C D E NOtherKarina A B C D E NJose A B C D E YCollectedMary A B C D E YPayPlanMiguel A B C D E NPayPlanJessica A B C D E NCollectedElaine A B C D E YOtherPatricia A B C D E NCollectedKaren A B C D E NCollecteddavid A B C D E YPayPlanJoe A B C D E YPayPlanJoseph A B C D E NCollectedwilliam A B C D E Nbill A B C D E YCollectedLes A B C D E NCollectedLeslie A B C D E NPayPlanJanet A B C D E YPayPlanJannette A B C D E YCollectedjames A B C D E NOtherjim A B C D E Njohn A B C D E Yjuan A B C D E NMario A B C D E NPayPlanMarcelle A B C D E YCollectedChris A B C D E YOther nbsp

A:MS Excel 2007 - VBA or Macro to delete rows based on multiple criteria.

https://forums.techguy.org/threads/ms-excel-2007-vba-or-macro-to-delete-rows-based-on-multiple-criteria.1045797/
Relevancy 101.48%

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

to:

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............
 

https://forums.techguy.org/threads/solved-excel-rows-to-columns-with-a-twist.742146/
Relevancy 100.62%

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)
State,Zip(F4)
Home Phone(F5)
Work Phone(F6)
Email(F7)

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

bump
 

https://forums.techguy.org/threads/solved-move-data-from-rows-and-columns-to-other-rows-and-columns.932353/
Relevancy 100.19%

Hi
Is there a quick way to delete blank rows in an excel worksheet. I am using excel 2007

Thanks
Brian
Dubli, Ireland
 

Relevancy 99.76%

Hi,

I am trying to suppress blank rows/cells from appearing in a combined column/line chart in Excel 2003.

The cells have a formula in them so I have tried putting "", 0 and NA() in the cells but none of these seem to work. I just get 0,0,#N/A as the labels/data values in the chart accordingly. I have also tried Tools|Options|Chart "Plot empty cells as not potted".

Please see attached for examples of chart.

Does anyone know how to do this? I want to keep the range dynamic so I don't want to have to hide rows.

Thanks!!!
 

A:Suppressing blank rows/cells in Excel 2003 chart

It's possible to do something by using:

#N/A

in formulas. See attached: the left chart is based on A1:A6 (values) and skips the blanks, whereas the right chart is based in B1:B6 (formulas) and ... "trends" over the blanks.

If this doesn't point you in the right direction, upload your file and say more about what you actually want to appear, if poss.
 

https://forums.techguy.org/threads/suppressing-blank-rows-cells-in-excel-2003-chart.768736/
Relevancy 96.75%

In my work environment we are writing test cases and for the test steps we use a word table Its the same columns so we can load them into the Quality Center environment One issue we had was our review tool doesn to macro insert columns and table new rows into Word a t support word but does text documents The format of the table Word macro to insert new rows and columns into a 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 didn t come up with anything like my scenario so hopefully not asking something previously asked Thanks nbsp

https://forums.techguy.org/threads/word-macro-to-insert-new-rows-and-columns-into-a-table.1110148/
Relevancy 95.89%

Hi all, looking for some assistance to save time with a task. I am required to send an email to email addresses in cell E if the cell value in d is greater than 0. Would appreciate assistance, thanks
 

A:Solved: Excel mail a row/rows to email addres in range

Hi

Attached is an example of how you would send emails automatically from your spreadsheet. If your "real" spreadsheet is in any way different from the example the macro will need to be adjusted, Also, I used column H to identify when an email has been sent and told the macro not to re-send to that address(es). If you do want to re-send you would need to delete the notation in column H.
 

https://forums.techguy.org/threads/solved-excel-mail-a-row-rows-to-email-addres-in-range.1102670/
Relevancy 94.6%

quot Macro Creation Request for Moving Data from Rows to Columns in a Non-Conventional Way quot Hello all Hopefully somebody can help me with the following problem please see the attached document Presently I have an Excel document containing variables - per country in rows for label through label x However I need the table to contain the country level information as Columns Way Data Request Rows Moving for in from Macro Non-Conventional Creation a to columns Macro Creation Request for Moving Data from Rows to Columns in a Non-Conventional Way for each label so that there is only one row per label For example instead of row containing label argentina variables - then row containing label arab emirates variables - I need the table to contain row label columns argentina variable argentina variable etc then arab emirates variables arab emirates variable 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 Macro Creation Request for Moving Data from Rows to Columns in a Non-Conventional Way but they need to be placed in Macro Creation Request for Moving Data from Rows to Columns in a Non-Conventional Way alphabetical order when quot columnized quot 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 nbsp

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

https://forums.techguy.org/threads/macro-creation-request-for-moving-data-from-rows-to-columns-in-a-non-conventional-way.1120209/
Relevancy 94.17%

I need to create a macro in Excel that will look for a certain text within a column (Column A), Copy the data in another column (Column B), and paste the data in another column (Column C).

For Example....

Column A
ABC1
ABC1
ABC1
ABC1
ABC1
DEF2
DEF2
DEF2

Column B
1000
1500
78
562
235
89
456
258

So, I would like to copy all the data in Column B that correspond with "ABC1" in column A, and paste that data in Column C.
 

Relevancy 94.17%

Hi, I have approx 25,000 rows of data relating to parts held in inventory, on a spreadsheet in Excel 2003 SP2 .

One common cell on each line is the Supplier Stock Code and the data in it is duplicated on different rows as the same Supplier Part is held under several different Part ID's on our system, ie,

Cell A2 0-320311-00
Cell A3 0-320311-00
Cell A4 0-320311-00
Cell A5 0-330317-29
Cell A6 0-330317-29
Cell A7 0-330317-29
Cell A8 03400BK08345
Cell A9 03400BK08345
Cell A10 03400BK08345
Cell A11 03400BK08345

I have sorted the data into Supplier Stock Code order and need to find a way to automatically insert a blank row (or two) after each change, ie, in the example above it would be between rows 4 & 5, and 7 & 8.

Does anyone know of a Macro which will do this?

Many thanks,

MarG38
 

A:Solved: Excel Macro to automatically insert rows

First things first -- welcome to the board.

2nd thing:

"insert a blank row (or two) after each change"

Hmm: for what purpose? The "official" line is "DON'T do that, it's VERY bad design". K?

So what I did was drag your last entry down to r25000, to generate 03400BK08346,
03400BK08347, and so on. "Test data".

Then I ran the code at the bottom of this post. It ground away for 12 minutes (make coffee, visit bathroom, yada yada) & then fell over on account of "ran out of worksheet" (bear in mind I had c.25K unique values, you have far fewer).

Last (but most definitely not least) thing: back up your work before trying the code.

HTH

Sub test()
Application.ScreenUpdating = False
LastVal = Range("A" & Rows.Count).End(xlUp)

Do Until LV2 = 1
x = Range("A" & Rows.Count).End(xlUp).Row
x = Range("A" & x).End(xlUp).Row

If Cells(x, 1) = LastVal Then
LV2 = 1
Else
y = Application.Match(Cells(x, 1), Columns(1), 0)
z = WorksheetFunction.CountIf(Columns(1), Cells(x, 1))
Cells(y + z, 1).Resize(2).EntireRow.Insert
End If
Loop

Application.ScreenUpdating = True
End Sub
 

https://forums.techguy.org/threads/solved-excel-macro-to-automatically-insert-rows.995141/
Relevancy 94.17%

Good Day,

I would like to copy the rows in a worksheet to another worksheet where a value in the row say H2 <900. I would then like to delete those cells from the former worksheet. Can you assist with this. Thanks
 

Relevancy 93.74%

I'm using some software to export payment information into a CSV file. This file needs to be in the bank's specified SIF format which requires all the data to be in one column.

The limitation with my software is that the detail of each payment gets exported into it's own separate column. For instance, cells A1:A10 contain payment details to one individual, B1:B10 to another, and so on. I require the whole lot combining into Column A, running from A1:A65536 (it will never go this far down the spreadsheet, but you get the idea).

I've tinkered with some basic copy and delete macros but I'm unable to make the headway that I need to. I don't have the touch when it comes to programming .

Thanks in advance
 

Relevancy 93.74%

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?
 

Relevancy 92.88%

I have a drop down list in D1 and what I need is a macro that will search for the selected value through column D and hide the rows that don't match. Think of it as like the autofilter function in excel.
 

Relevancy 92.88%

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).

thanks,

drew
 

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
 

https://forums.techguy.org/threads/excel-columns-to-rows.210075/
Relevancy 91.59%

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?

Thanks!
 

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.
 

https://forums.techguy.org/threads/excel-getting-rid-of-extra-rows-columns.102865/
Relevancy 91.59%

Hi 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 the first cell is blank the next headings EXCEL, on i columns?? put Can and rows is the first entry and i put in this case here the rest of the table fills itself in with multiples of 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 EXCEL, Can i put headings on rows and columns?? dont change they could be background the colour doesnt matter it is only there to separate the columns and rows from the multiples of Later if its or i would use the same table lt img src quot http forums techguy org attachment php postid quot gt by using the tens and units you get the multiple at the intersection row and column give the result for times There might be better ways but this works ok Regards John nbsp

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.

www.theofficeexperts.com/downloads/ForJohn1.xls
You can left-click to view it.
Right-click and choose Save target as to save it.
 

https://forums.techguy.org/threads/excel-can-i-put-headings-on-rows-and-columns.127894/
Relevancy 91.59%

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.

thanks.
 

Relevancy 91.16%

Excel Masters I am not sure how to loop through the following code for multiple row formatting The code works fine if the user has selected cells within a single Solved: Macro selected-cell multiple formatting Excel - for rows Loop row However when multiple rows are selected the With ActiveCell formatting only works for the first row selected How can I loop the else statement to format the ranges for all rows with a cell selected Private Sub Button DeleteRow Click Selection Solved: Excel Macro - Loop selected-cell formatting for multiple rows EntireRow Interior ColorIndex msg MsgBox quot Delete this row quot vbYesNo If msg vbYes Then Selection EntireRow Delete Else Selection EntireRow Interior ColorIndex xlNone With ActiveCell Range Cells Row quot AA quot Cells Row quot AN quot Interior ColorIndex Range Cells Row quot c quot Cells Row quot d quot Interior ColorIndex Range Cells Row quot a quot Cells Row quot a quot Interior ColorIndex Range Cells Row quot j quot Cells Row quot j quot Interior ColorIndex Range Cells Row quot n quot Cells Row quot n quot Interior ColorIndex End With End If End Sub On a related note I already have a separate worksheet change event ByVal Target As Range running on this worksheet nbsp

A:Solved: Excel Macro - Loop selected-cell formatting for multiple rows

Something like:

Selection.EntireRow.Interior.ColorIndex = 3

msg1 = MsgBox("Delete this row?", vbYesNo)
If msg1 = vbYes Then

Selection.EntireRow.Delete

Else

Selection.EntireRow.Interior.ColorIndex = xlNone
SelRows = Selection.Resize(, 1).Cells.Count
Cells(ActiveCell.Row, 27).Resize(SelRows, 14).Interior.ColorIndex = 15

'(and so on)

End If

?

On a related note, I already have a separate worksheet change event (ByVal Target As Range) running on this worksheet.Click to expand...

If you mean "how do I bypass that for Selection.EntireRow.Delete then:

Application.EnableEvents = False
Selection.EntireRow.Delete
Application.EnableEvents = True
 

https://forums.techguy.org/threads/solved-excel-macro-loop-selected-cell-formatting-for-multiple-rows.990212/
Relevancy 90.73%

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

See http://office.microsoft.com/en-us/excel/HA102432191033.aspx
 

https://forums.techguy.org/threads/repeating-rows-and-columns-for-printing-in-excel.870707/
Relevancy 90.73%

Hi A does anyone know how to search for the text content Searching Rows/Columns EXCEL Data in 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 e g A B C D T XY TP YZ TP ZY P YX TP YY FORMULA TP ZZ gt gt FORMULA EXCEL Searching Data in Rows/Columns quot Look for string TP in column A other than in EXCEL Searching Data in Rows/Columns row and return the value of that row in column C C YZ quot NOTE There might be more than row with the string TP in column A - I would need the sum of all results in column C where the FORMULA finds this string B 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 quot Donna quot and then returns the value of another column in the same row where it found quot Donna quot the value again is not in a column directly EXCEL Searching Data in Rows/Columns adjacent to the column where quot Donna quot would be found This is fairly identical to problem A except that the search string would be unique only 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 Cheers from New Zealand Andreas nbsp

Relevancy 90.73%

Hi,

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)
col=rng.columns.count
nextcol =col+1
for i=2 to lastrow
range(cells(i,1),cells(i,col)).copy cells(1,nextcol)
nextcol=nextcol+col
next
rng.delete
end sub
 

https://forums.techguy.org/threads/copy-columns-and-paste-in-rows-in-excel.1059996/
Relevancy 90.3%

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
 

https://forums.techguy.org/threads/solved-macro-for-excel-2007-to-hide-rows-based-on-any-data-entered-in-a-column.1076999/
Relevancy 89.87%

Hello I'm having a problem in create a excel macro, that multiply the values from a table(for example the range is (B5:L20)) by the values that are in the column (A5:A20). The result should be place in another sheet.

There is someone who can help me, please.

Regard
 

Relevancy 89.87%

What is the best way to determine through code if a range is selected?
 

A:Solved: Excel Macro -> Determine if range is selected

For Example, I want to run an IF THEN statement only if specific cells are not the ones the value is being changed or added.

The specific cells do not go in sequence.
 

https://forums.techguy.org/threads/solved-excel-macro-determine-if-range-is-selected.882052/
Relevancy 89.87%

Hello everyone I am wondering if anyone one would be able a to 07 Excel Solved: range colour macro cells in to help me I have only just started getting into advanced excel use of macros Solved: Excel 07 macro to colour cells in a range and formulas for Excel I have done ok so far except for the following macros formula needed tp change the background colour of a range of cells with more then the three options that conditional formatting allows I have a column of cells from C C which I have made all drop down selections from a list of four text items ItemA ItemB ItemC ItemD I was trying to get a macro that would colour the cells in C C automatically on selection of the drop down list based upon the four different selections available And another macro to colour that whole row that has data in it based upon that same selection The reason why two different ones being that I am unsure of what will work the best I know this is on the easy side of macros but I am hoping someone would be able to throw me a bone none the less Thanks for any help all Ads nbsp

A:Solved: Excel 07 macro to colour cells in a range

Ok turns out I didn't need macro and it can all be done with conditional formatting using the "Highlight Cell Rules". I was under the impression that you could only use three conditions but that was incorrect. Thanks for the help from Sweep at another forum.
 

https://forums.techguy.org/threads/solved-excel-07-macro-to-colour-cells-in-a-range.915654/
Relevancy 89.87%

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
 

https://forums.techguy.org/threads/excel-swapping-columns-and-rows-layout-of-data.456591/
Relevancy 89.87%

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.
 

Relevancy 89.44%

I have a range of data into which I need to insert a blank record wherever the value of a column changes, so that I can include totals for each data set in my worksheet. I have gotten to where I can copy the range to another sheet and sort it properly, but I can't compare each cell in a column to determine if a blank line should be inserted. I have attached the file for anyone who can help.

Thanks.

btw, this needs to be able to handle a variable number of records.
 

A:Solved: Inserting blank rows for totaling with Excel VBA

Hi, I don't do "proper" VBA. I couldn't get the way I'd normally do it to work in your file, so I copied Sheet1 out to a new file & added a new Sheet2. Then I used:

Sub Test()
Range("Sheet2!A:C").ClearContents
Range("Sheet1!A1").CurrentRegion.Copy Range("Sheet2!A1")
Range("Sheet2!A1").CurrentRegion.Sort Key1:=Range("Sheet2!B2"), Order1:=xlDescending, _
Key2:=Range("Sheet2!C2"), Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, _
MatchCase:=False, Orientation:=xlTopToBottom
For Each Cell In Sheets("Sheet2").Range("C3", Sheets("Sheet2").Range("C65536").End(xlUp))
If Cell <> Cell.Offset(-1, 0) Then
If Cell.Offset(-1, 0) <> "" Then
Cell.EntireRow.Insert
End If
End If
Next Cell
End Sub

In theory, this'll run from either sheet with no particular range selected.

HTH,
Andy
 

https://forums.techguy.org/threads/solved-inserting-blank-rows-for-totaling-with-excel-vba.358542/
Relevancy 89.01%

I am trying to delete rows where the value in the 4 column is less than 21. I have tried variations of the code below but all do the following:

Delete some rows that are less than 21 and leave others
Delete some rows that are greater than 21 and leave others

When I step thru the code and check the value it shows me the value in the cell and deletes whether it is true or false. Please tell me what I am doing wrong.

LastRow = ActiveSheet.UsedRange.Rows.Count
For r = LastRow To 1 Step -1
With Cells(r, "D")
If .Value < "21" Then .EntireRow.Delete
End With
Next r
 

A:Solved: Excel VBA Delete Rows by Value Not working

Duh! Don't need " around 21 and changed to

LastRow = ActiveSheet.UsedRange.Rows.Count
For r = LastRow To 1 Step -1
If (Cells(r, 4).Value < 21) Then Cells(r, 4).EntireRow.Delete
Next r
 

https://forums.techguy.org/threads/solved-excel-vba-delete-rows-by-value-not-working.856279/
Relevancy 89.01%

We recently migrated from Office 2003 to Office 2010.

Just to give some background, (and I dont' know if this is relevant to this error), the Office 2003 excel did not accurately show the correct file paths where files were linked. It would show something in the C drive.

The issue I am concerned about today is this: when some users close files in 2010 (files were created in they sometimes get the error below:

'"The name ABE2, either conflicts with a valid range reference or is invalid for Excel. This name has been replaced with _ABE2"

Can someone assist me with this? I need to stop it from appearing and I am not sure how.
 

Relevancy 89.01%

In Sheet one I have some raw data which in sheet two I have picked out the useful pieces and Fill another across sheet in move rows to Excel I problem. need columns 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 EX sheet one a b c a b c a b c a b c I Excel problem. Fill columns I need to move across rows in another sheet need to find a way to automatically get it to do this referencing sheet in column A and then filling to the right but actually having it go down the rows in sheet sheet a b c a a a b b b c c c the idea is that when the software exports to sheet 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 nbsp

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

You could use:

=OFFSET(Sheet1!$A$1,COLUMN()-1,ROW()-1)

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

Would that help?
 

https://forums.techguy.org/threads/excel-problem-fill-columns-i-need-to-move-across-rows-in-another-sheet.1035094/
Relevancy 89.01%

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:
http://forums.techguy.org/business-applications/732913-solved-populate-word-document-excel-2.html

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.
http://stackoverflow.com/questions/1725768/excel-macro-to-select-multiple-row
Thank you.
 

Relevancy 89.01%

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.
 

https://forums.techguy.org/threads/converting-excel-rows-addresses-to-columns-for-mail-merge.860585/
Relevancy 89.01%

I am un able to get an existing word file to open I can Doc Word Select Populate (Multiple Columns) Rows, Excel from get the following to open a new word file I need this to opoen an existing file Sub export Word row Dim oWD As Object Dim wdDoc As Object Dim TWB As Workbook wsh wsh As Worksheet Set TWB ThisWorkbook On Error Populate Word Doc from Excel (Multiple Rows, Select Columns) Resume Next Set oWD GetObject quot Word Application quot If Err Number lt gt Then Set oWD CreateObject quot Populate Word Doc from Excel (Multiple Rows, Select Columns) Word Application quot Err Clear Set wdDoc oWD documents Add With wdDoc With Range paragraphs Range Text quot PICK UP amp DELIVERY quot amp Chr Font Size Font Name quot Times New Roman quot Font Bold True Font Underline True ParagraphFormat Alignment End With With Range paragraphs Range Text quot PICK UP quot amp vbTab amp Cells row quot K quot Value amp vbTab amp Chr Font Size Font Name quot Times New Roman quot Font Bold True Font Underline True ParagraphFormat Alignment End With With Range paragraphs Range Text Chr amp Chr amp Chr amp Chr Font Size Font Underline False ParagraphFormat TabStops ClearAll DefaultTabStop Application CentimetersToPoints ParagraphFormat TabStops Add Position Application CentimetersToPoints Alignment Leader End With With Range paragraphs Range Text quot NAME quot amp vbTab amp Cells row quot B quot Value amp vbTab amp Cells row quot C quot Value amp Chr amp quot ADDRESS quot amp vbTab amp Cells row quot D quot Value amp vbTab amp Cells row quot E quot Value amp Chr amp quot PHONE quot amp vbTab amp Cells row quot R quot Value amp Chr amp quot MODEL quot amp vbTab amp Cells row quot F quot Value amp Chr amp quot VIN quot amp vbTab amp Cells row quot G quot Value amp Chr amp Chr amp quot WORK TO PERFORM quot amp quot quot amp vbTab amp Cells row quot I quot Value amp Chr amp Chr amp Chr amp quot SPECIAL INSTRUCTIONS quot amp quot quot amp vbTab amp Cells row quot J quot Value amp Chr Font Size Font Name quot Times New Roman quot Font Bold False ParagraphFormat Alignment End With End With oWD Visible True wdDoc Activate End Sub nbsp

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

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

[ code ]

no spaces in between the []

[ / code ]
Code:

Set wdDoc = oWD.documents.Add

To open a word doc
Code:

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

This should do the trick
 

https://forums.techguy.org/threads/populate-word-doc-from-excel-multiple-rows-select-columns.1111808/
Relevancy 88.15%

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.

Sample
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?
 

Relevancy 88.15%

Hi All I am in need of help I am trying to create a macro that deletes rows in what looks like a quot page break quot to combine data spanning K rows For some reason after VBA Solved: them - Excel then Find and Delete 2007 Rows a variable amount of rows of data there are lines that reappear in what looks like a quot page break quot I say that it looks like a Solved: Excel 2007 VBA - Find Rows and then Delete them page break because at the rd row of this quot break quot shows the date and then the th row shows all the column headers again They always appear in this order Blank Row Blank Row Date in Column A Blank Row Blank Row Column Headers at Column B Blank Row Data onwards until the Solved: Excel 2007 VBA - Find Rows and then Delete them next quot page break quot So what I m trying to program is a macro that goes through the data to delete all of these breaks until the end of the spreadsheet I included an image of what the whole dataset looks like The background info to the data is below Column A is blank except for the date The date shows in A and then on the rd row in every page break The Solved: Excel 2007 VBA - Find Rows and then Delete them data starts in Column B until the end of the data set in column AI I would REALLY REALLY REALLY appreciate anybody s help with this If anyone can get me started that would be great I was thinking about recording the macro as I go to the first line of data hit CTRL DOWN highlighting the seven rows hitting CTRL RIGHT deleting the rows doing all up to this point only once and then making the macro loop until the end of the data set What do you experts think Thanks All nbsp

Relevancy 88.15%

How do I unlock the outline column when I protect the sheet?

Have a spreadsheet in outline form (Data->Group and Outline ...) which, of course, produces a special column to the left of the worksheet that allows expansion or contraction of the rows on the spreadsheet (with a plus or minus sign).

I want to protect the spreadsheet, but still allow this expansion and contraction. However, when I protect the worksheet (tools->protection->Protect Sheet) it also protects this expansion/contraction column
 

A:Solved: Excel 2003 Unprotect Outline Columns

Yep, that to my knowledge is correct.

You cannot protect the sheet and work in group mode.
 

https://forums.techguy.org/threads/solved-excel-2003-unprotect-outline-columns.863710/
Relevancy 88.15%

Hello,

I need help to create an Excel macro that would

1. ask users to select x number of rows to be copied from one worksheet of one Excel file
2. once users have selected the rows to be copied, then the rows are copied from the one original Excel file into X number of target Excel files

Notes:
the target Excel files are all based on the same template
there is one worksheet in each of the target Excel files

in the target files, the rows should be copied from the first available empty row, going down

Looking forward to your help!

Thanks a lot.
Mzz
 

A:Macro needed to copy x number of rows from one Excel file into a batch of Excel files

Hi, welcome to the board.
Not much info there to get the correct picture.
Sample? Of source and template please
And not to forget, what version of Excel are you and the users using?
 

https://forums.techguy.org/threads/macro-needed-to-copy-x-number-of-rows-from-one-excel-file-into-a-batch-of-excel-files.1002554/
Relevancy 87.72%

I am usually savvy about Windows, but this one has me stumped. I have taken on a volunteer project that requires me to add volunteer hours in an Excel Pivot Table. I am having calculation issues which I believe to be caused by a limit on the maximun number of rows. Reading Excel help is just confusing me more. My mentor showed me how to do this once, but I did not take notes and now I am a lost puppy. Given the above information, does anyone have a solution? Thanks for your time.
 

Relevancy 87.29%

I need to delete the first 12 rows from 180+ seperate spreadsheets. Whats the easiest way to do that?
 

A:Solved: Excel 2007 Delete Rows In Multiple Files

I found a macro that works. It deletes the rows beginning with what you are looking for, up to the first non-blank row which works for my purposes.

Sub ProcessFile()
Dim Rw1 As Long, Rw2 As Long
Set xSheet = Sheets("Sheet1")
This = "-------------" ' change this to what you need to match
On Error Resume Next
Rw1 = Cells.Find(What:=This).Row
Rw2 = Cells.Find(What:=This).End(xlDown).End(xlDown).Offset(-1, 0).Row

xSheet.Rows(Rw1 & ":" & Rw2).Delete Shift:=xlUp

End Sub
 

https://forums.techguy.org/threads/solved-excel-2007-delete-rows-in-multiple-files.1008287/
Relevancy 87.29%

Hi. Im a bit stuck on how to attack this problem in vba and im sure someone has a basic solution for this:

In Sheet1, I have A1: Start Date and A2: End Date
In Sheet2, is the look up sheet. Its sorted by ColumnA:
ColumnA.......ColumnB.....ColumnC...ColumnD
01/02/2008...James........20...........$200
05/02/2008...Jones .......10...........$800
06/02/2008...Mary.........30...........$900
06/02/2008...Bob...........50...........$600
07/02/2008...Jason........10...........$500
08/02/2008...Jackie........20...........$400
etc
etc

I wanted to create a button in Sheet1 that will copy the entire row of data in Sheet2 but only within the date range declared in Sheet1. and place the copied row in Sheet1 starting at position A100.

Eg.
Start Date: 05/02/2008
End Date: 07/02/2008
Click button(vba executes)
Copy all rows from lookup sheet2 within these dates and paste it in Sheet1 A100.

Any solution will be very much appreciated.
 

A:Copy rows within date range - EXCEL

Dear Miage
Peace be upon you
What if there is 10 rows (or more) matches the criteria should all rows been copied from A100 to A140??!!!
I think this will be annoying.
Instead I think it is better to
make a category for each row in Sheet2 depending on the date range in Sheet1. (Using Vlookup function, in access 2007 only)
Give the category a name that could be understood (From010102To150302)
apply a filter on Sheet2 so that you can see instantly all the records you want within the range.
If you want more details I am ready, but please post a sample file (just 4 records)
Mohammad ElNesr
 

https://forums.techguy.org/threads/copy-rows-within-date-range-excel.812124/
Relevancy 87.29%

Dear guys,

I was wondering if there is a way to change Columns to Text. I know that from the last question i posted here a while back, that we could change a string of text in to many columns. So what i would like to do now is the opposite.

Referring to the excel spreadsheet attached, I basically want to change columns A, B and C in to G.

At first i tried using the formula "=(A3 x B3 x C3)" and obviously that didnt work if not i wouldnt be posting here. How would you pick values up from a cell and then use them in another cell something like =A3 which will bring the value of that cell into another cell. How would you do it for multiple cell references?

Thanks in advance!
 

Relevancy 86.43%

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?
 

Relevancy 86.43%

I m using Windows and I used a macro which worked totally Solved: Run Doesn't Excel 2007 - Macro in Excel Requested 2003 Help fine under Excel Now under Excel it does not run anymore but displays the following error message quot Run-time error Object doesn t support this action The function of the macro is to open up all other Excel spreadsheets located in the same folder and copy data out of them into the spreadsheet in which the macro is stored When I click on quot Debug quot the Visual Basic Editor highlights the row which says Set FilSrch Application FileSearch Can you help me with this I ve searched for Solved: Excel 2003 Macro Doesn't Run in Excel 2007 - Help Requested a solution for a long time but could not find anything which worked The following is the start of the macro code Sub UpdateTable Dim X As Range I As Integer J As Integer RecNo As Integer CopyVal As Variant Dim SourceBk As Worksheet DestBk As Worksheet StartRow As Integer IndRange As Range Dim ServRange As Range SrcOpen As Boolean SourceName As String Dim FilSrch As Object MyFilArray As String MsgBox quot This function not available in this version quot vbInformation quot Function Not Available quot Exit Sub Sheets quot LookUp quot a Now With Application ScreenUpdating False StatusBar quot Counting source files quot End With Set FilSrch Application FileSearch With FilSrch NewSearch LookIn ActiveWorkbook Path FileType msoFileTypeExcelWorkbooks If Execute gt Then ReDim MyFilArray FoundFiles Count For I To FoundFiles Count If FoundFiles I lt gt ActiveWorkbook Path amp Solved: Excel 2003 Macro Doesn't Run in Excel 2007 - Help Requested quot quot amp ActiveWorkbook Solved: Excel 2003 Macro Doesn't Run in Excel 2007 - Help Requested Name Then MyFilArray I FoundFiles I End If Next I Else MsgBox quot There were no files found quot End If End With nbsp

A:Solved: Excel 2003 Macro Doesn't Run in Excel 2007 - Help Requested

https://forums.techguy.org/threads/solved-excel-2003-macro-doesnt-run-in-excel-2007-help-requested.991531/
Relevancy 85.14%

Ok here is what I have.

I am working on a report that would identify duplicate rows on a spreadsheet and hightlight them.

As of right now I am useing:

Code:

=IF(AND(E3=E2,Q3=Q2),"Repeat","Unique"))

Then I highlight all the "Repeat" rows and resort them.

I was I have tried to come up with a macro and do not have much other then how to get the cells to highlight
Code:

With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With

I do know I am going to have to use an IF statement in the VB but not sure what comes next.

Thanx in advance.
 

Relevancy 85.14%

I need some help in creating a macro in Excel 2010 for deleting rows that contain specific characters (the pound sign) in the text. I cannot get it to recognize the # as text. Also the # is embedded as part of a line of text which varies, so I also need a wildcard. Any help is greatly appreciated. thanks.
 

A:Excel macro for deleting rows

use instr("original text", "#")
 

https://forums.techguy.org/threads/excel-macro-for-deleting-rows.1066126/
Relevancy 85.14%

I Excel Macro Random Rows ran into a post from DerbyDad that grabs a certain number of rows based on a percentage I've edited it a bit to fit what I'm trying to accomplish but have run into a dilemna My question is is there a way to have percRows equal a certain number of rows to pull This number wouldn't be hard-coded but I would like percRows to refer to a cell to get this number Thank you for any assistance provided Randomize 'Initialize Random number seed Dim MyRows As Integer ' Declare dynamic array Dim numRows percRows nxtRow nxtRnd chkRnd copyRow As Integer 'ThisWorkbook Sheets Inventory Activate Sheets Add After Sheets Sheets Count Sheets Sheet Select Sheets Sheet Name Temp Sheets Inventory Range A N Copy Sheets Temp Range A 'Determine Number of Rows in Sheet Column A numRows Sheets Range B Rows Count End xlUp Row 'Get of that number percRows numRows 'Allocate elements in Array ReDim MyRows percRows 'Create Random numbers and fill array For nxtRow To percRows getNew 'Generate Random number nxtRnd Int numRows Rnd 'Loop Excel Macro Random Rows through array checking for Duplicates For chkRnd To nxtRow 'Get new number if Duplicate is found 'If MyRows chkRnd nxtRnd Then GoTo getNew Next 'Add element if Random number is unique MyRows nxtRow nxtRnd Next 'Loop through Array copying rows to Sheet For copyRow To percRows Sheets Rows MyRows copyRow EntireRow Cut Destination Sheets Cells copyRow Offset

A:Excel Macro Random Rows

In it's simplest form you could use:percRows = Range("$A$1")While this should work great when A1 contains a number, things will go horribly wrong if A1 contains "Fred". ;-)Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

http://www.computing.net/answers/office/excel-macro-random-rows/19804.html
Relevancy 85.14%

I have spreadsheet that has a bunch of parts listed in separate categories Column A is the quantity column I want to be able to hide all rows using a macro that have a zero in column A The workbook has several sheets that need the same functionality The macro must not hide rows with nothing in them or nothing in column A For example a row may have content in hide rows to Macro Excel other columns but nothing in column A because that row is not used for a specific part therefore there will never be a quantity entered The code below works great except that it hides all rows with that are zero or blank I just need to figure Excel Macro to hide rows out how to make it skip the blank rows column A has no data Any ideas It doesn t have to be with my code just something that provides this function Excel Macro to hide rows for all sheets in the workbook Thanks Option Explicit Sub HideRowsWithZeros Dim ws As Worksheet Dim c As Range Dim rngRange As Range Application ScreenUpdating False For Each ws In ActiveWorkbook Worksheets ws Select Set rngRange Range Cells Cells End xlUp For Each c In rngRange If c Value Then c EntireRow Hidden True End If Next c Next ws Application ScreenUpdating True End Sub nbsp

Relevancy 85.14%

I am trying to come up with a code that will cut one or multiple rows and paste to a different sheet. The determination of what rows to cut is if it goes one day past the date in Column D.
Can anyone provide any guidance?
 

A:Excel Macro/Cut & Paste Rows

Hi, with the information you have given us (not much), a macro will do the job.
You could either make it event-driven or manual.
kevcott9 had a similra question but not with a condition in column D, but the idea would be the same, copy rows to different sheets.
This is event driven.
I've attached the file with the code I 'wrote' for him, maybe you can change it and use it too.
 

https://forums.techguy.org/threads/excel-macro-cut-paste-rows.1109180/
Relevancy 85.14%

I m not sure Excel Macro rows adding to allow what this is called possibly dynamic named range so I will try to explain I am trying to update a macro that was written by somebody else In the macro Excel Macro to allow adding rows he used row numbers I have added rows within the referenced area and now the macro pulls information from the wrong rows I want to change the macro to allow for more rows whenever I feel like we need to add them The piece of the code that I want to update is below If I change the row numbers it works properly but I need them to allow for movement I m not sure how the rest of the macro Excel Macro to allow adding rows uses this piece so if I need to post the rest of the macro or the actual document please let me know Project Level Documents rowHeader rowPDDstr rowPDDend rowTOGPMstr rowTOGPMend rowRAstr rowRAend rowSOWstr rowSOWend rowTestStrategystr rowTestStrategyend rowImplementation and Transition Strategystr rowImplementation and Transition Strategyend rowIssue Mgmtstr rowIssue Mgmtend rowRisk Mgmtstr rowRisk Mgmtend rowChange Mgmtstr rowChange Mgmtend rowProject Planstr rowProject Planend rowProject Statusstr rowProject Statusend rowProject Reviewstr rowProject Reviewend nbsp

A:Excel Macro to allow adding rows

Hi, Welcome to the forum.
This is something I tell every poster.
Please start by telling us which version of Excel you're using.
What you explain may be clear to you but try and envision somebody who has no idea of what you're intending to achieve.
I do suggest you attach a sample (copy) of you file with non-private data and add some informtaion there, somehting like showing a 'before' and 'after' so that one us can understand what you need.
 

https://forums.techguy.org/threads/excel-macro-to-allow-adding-rows.1106638/
Relevancy 85.14%

Hello I am a total vba beginer and really need some help I just can t get my head round the following Any help would be so very much appreciated This is what I am trying to do- I have a sheet with many columns of info This info is basically a listing of the fruits whole Macro Excel copies that rows that Shop A B and C sell and the different prices and other stats I want to copy across the rows of info for each shop sort by fruit but exclude some of the stats example If column equals shop A and column equals pears then copy the row of info into the new sheet but only the info in columns and I then want a blank row Then I want if column equals Shop A and column equals Excel Macro that copies whole rows apples then copy the row of info into the new sheet but only in the info in columns and Then I want a blank row Then I want if column equals Shop A and column equals peaches then copy the row of info into the new sheet but only in the info in columns and Then a blank row and repeat process for Shop B and C If Shop A B C has no apples peaches pears then nothing will be returned After each shop s fruit has been listed I want to total up the prices column in the orginal sheet And then I want a grand total of Shop A shop B Shop C as the last line I hope I am clear Thanks so much in advance nbsp

Relevancy 84.71%

Basically each morning I import data from an internet database to excel.
I need to divide the number of rows, that i receive daily in this excel document, to 4 worksheets designated to 4 staff members.
Each staff member needs to receive an equal amount of rows.

For e.g. if today i received 124 rows of data then each staff member should get 31 rows each.
Except the number of rows will vary on each day. I could get 200 plus rows of data.

Can someone please assist with writing a macro to divide up the rows in to the 4 worksheets? I would be very appreciative. Thanks in advance

I have attached the sample file for viewing....the data starts from row 3...thanks
 

A:Solved: Excel Macro to divide any number of rows equally onto certain number of works

https://forums.techguy.org/threads/solved-excel-macro-to-divide-any-number-of-rows-equally-onto-certain-number-of-works.732437/
Relevancy 84.71%

I am trying to do a macro to multiply the several columns values, observing determined terms, but do not be getting. Attachment, worksheet with example and for macro that I typed but is not solving. I thank any help.
 

Relevancy 84.71%

I am trying to create a macro in Excel that will sum two different columns of numbers The columns will always 2 Macro Sum 2007 Columns Excel be the same length I am new at quot trying quot to create macros and I can t figure out how to keep the same range to sum just move it columns to the right A sample of the table data is below Thank You Sub Test On Error GoTo CancelExit With Selection Offset Rows Count Columns Count Excel 2007 Macro Sum 2 Columns Cells FormulaR C quot SUM quot amp Address xlR C amp quot quot Offset Rows Count Columns Count Cells FormulaR C quot SUM quot amp Address xlR C amp quot quot End With CancelExit On Error GoTo End Sub I am trying to create a macro in Excel that will sum two different columns of numbers The columns will always be the same length I am new at quot trying quot to create macros and I can t figure out how to keep the same range to sum just move it columns to the right A sample of the table data is below Thank You Sub Test On Error GoTo CancelExit With Selection Offset Rows Count Columns Count Cells FormulaR C quot SUM quot amp Address xlR C amp quot quot Offset Rows Count Columns Count Cells FormulaR C quot SUM quot amp Address xlR C amp quot quot End With CancelExit On Error GoTo End Sub Sale Date Sale Price Adj Sale Price Land Imp Total I would be summing the Adj Sale Price and the Total everytime There is data above and below each quot mini-table quot and all are of different rows I tried to set it up to highlight the first column series as all the rows in that series will alway be the same number of rows All help is greatly appreciated nbsp

Relevancy 84.71%

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.

Current:


HTML Code:
A B C D
User1First User1Last User2First User2Last
User1ValueTypeA1 User1ValueB1 User2ValueTypeA1 User2ValueB1
User1ValueTypeA2 User1ValueB2 User2ValueTypeA1 User2ValueB1
Desired:


HTML Code:
A B
User1First User1Last
User1ValueTypeA1 User1ValueB1
User1ValueTypeA2 User1ValueB2

SPACE/EMPTY ROW

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

http://www.sevenforums.com/microsoft-office/374441-excel-macro-move-columns-1-row-after-each-other.html
Relevancy 84.71%

I am very new to writing macros and I'm trying to find a macro that will search for a key word within the whole spreadsheet. If the keyword is found in say 7 of the rows, those rows will remain and all others will be hidden (except for the first 4 rows as these have headings, etc.).I would be very grateful to anyone who can point me in the right direction!message edited by Adrian82

A:Excel Macro - Keep only columns with key words in them

I do not have access to Excel or VBA at the present time, so the best I can offer at this point is to suggest that you look up the VBA Find method via Google. You'll find various options for the use of Find and FindNext. Those are the methods that I would use to loop through your sheet, searching for the key word.If I were to write code to do this, I would start by hiding all Rows (except for the rows with the headings) and then unhiding the rows where the key words were found. That way is easier than hiding rows which don't contain the keyword. Finding something with VBA and unhiding the row where it was found is much easier than not finding something and then hiding the row where it wasn't found.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

http://www.computing.net/answers/office/excel-macro-keep-only-columns-with-key-words-in-them/19926.html
Relevancy 84.28%

Hi

I need help from one of you excel gurus out there.

I will see if I can explain clearly what I am trying to achieve.
I would like a macro that searches a worksheet for all debit transactions and credit transactions seperately for a given date and then sums them up. For example if i had two debit transactions on the 17th March, the macro finds the range for all transactions on the 17th and sums up those debits. Again the same for credits.
Ok, here is where it gets trickier, I need it to do it for all days from 1/07 to 30/06. So it's searching to see if there are any transactions for any of those dates and then sums them up.

I appreciate any assistance

Thanks
Strybes
 

Relevancy 84.28%

I have 1 identifier (column a) and 10 associated yes/no questions (column b to column k). I need a macro that inserts a separate row in a new sheet for each "No" recorded in those 10 columns. Rather than inserting the entire row, I only want the identifier (column a) and column heading (b1:k1) containing that value.

http://www.computing.net/answers/office/excel-macro-to-add-rows-by-column-heading-containing-a-value/20570.html
Relevancy 84.28%

In reference to a question I had asked previously.http://www.computing.net/answers/of...If I have a sheet that contains less than 10 rows and want to get 10% of that, how can I ensure that my results will return at least one record at a minimum. I ask because right now, I have some sheets that only contain 4 rows and when I query 10% of it, I don't get any records because I assume it takes 4 * .01 and comes up with .4 and rounds down to 0 records being pulled.message edited by JasonB

A:Excel Macro Random Rows Results

Here are 2 options:This option will ensure that any number of rows less than 10 returns 1 row:'Get 10% of that number, ensure at least 1 row
percRows = numRows * 0.1
If percRows < 1 Then percRows = 1This option will Round Up all values to the next highest integer. e.g. 4 rows will return 1, 44 rows will return 5:'Get 10% of that number, Round Up result to next integer
percRows = Application.WorksheetFunction.RoundUp(numRows * 0.1, 0)Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

http://www.computing.net/answers/office/excel-macro-random-rows-results/19929.html
Relevancy 84.28%

I have a spreadsheet full of daily sales info listed by item. Each row has an item #, transaction ID, and gross sale amount. I would like to create a macro that will total all the sales with the same transaction ID in a separate column. Using Excel 15 on a Mac but can switch to PC if necessary, any advice or guidance would be much appreciated.Dealing with a really clunky POS that does not export to excel directly so am working around, I can't get the source report sorted by transaction. message edited by jefro88

A:Need a macro in Excel to total rows if their unique ID is th

I'm not sure that you need a macro. I can't see your spreadsheet from where I am sitting, but have you considered this method?1 - Use the Advanced Filter feature to create a list of unique transaction ID's2 - In the next column, use the SUMIF function to total all sales for each unique ID.If that won't work, you'll need to explain why by supplying more detail regarding the layout of your sheet. If a macro is needed, then we are going to need the layout detail anyway.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

http://www.computing.net/answers/office/need-a-macro-in-excel-to-total-rows-if-their-unique-id-is-th/20331.html
Relevancy 84.28%

I am building an excel model and want to link a macro to the "calculate" button based on the above check boxes. If the boxes are selected, the relevant graphs would need to unhide and show and then hide as the boxes are deselected again.

I've attached a screen shot of what I'm working on.

I would appreciate any help possible on how to write the code for this macro.

Many thanks
 

A:Excel 07 - Macro to hide/unhide rows

Welcome to the board.

Screenshots saved as bitmaps are huge. Convert them to (e.g.) jpgs, then you can upload without zipping.

Re this part of your post specifically:

Macro to hide/unhide rows

, one "basic" answer is:

Private Sub CheckBox1_Click()
If CheckBox1 = True Then
Rows("11:20").EntireRow.Hidden = False
Else
Rows("11:20").EntireRow.Hidden = True
End If
End Sub

Do you actually have ten charts, or is it far more in reality?
 

https://forums.techguy.org/threads/excel-07-macro-to-hide-unhide-rows.768085/
Relevancy 83.85%

Hi all,

I have a requirement. Consider there is an excel sheet with values in several columns. Some of the columns inbetween are empty. So i have to somehow highlight the empty columns.
Note: All the columns have headings in the first row.
It is ok even to get the headings of the empty columns in seperate sheet.
Help me out guys.

Thanks in Advance,
Sughesh.
 

A:How to find Empty columns in Excel using Macro

will conditional format workto highlight blank cells if so

goto conditional format- click on cell A1 and then hightlight the range - if you want all the spreadsheet - click on the box between the columns and rows
then in conditional format
type

=A1=""
then set a format fill colour

heres a macro to remvoe blank columns
http://www.mrexcel.com/archive/VBA/11225.html
but may not work if you have a heading - as thats not a blank column

if you could load a dummy spreadsheet as an example- others here with more macro experience should be able to help
 

https://forums.techguy.org/threads/how-to-find-empty-columns-in-excel-using-macro.1062624/
Relevancy 83.85%

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.

Jimmy
 

https://forums.techguy.org/threads/excel-macro-to-move-two-columns-into-a-table.952078/
Relevancy 83.42%

Hi, I'm a beginner when it comes to formula for selecting date ranges! I have tried =SUMIF combos but and hitting a wall. Any help would be very welcome. Pretty basic the request.

2 colums, 'A' with the year (currently as plain number) 'B' with a simple number. There are roughtly 5/8 entries for each year, from 1989 to 2008. I need to sum 'b' for a range of years, (say 1990 to 1995), I can do it for one year value but not more.

Just tired this =SUM(IF(D,">1995",E:E)(D,"<1990",E:E)) but did not work.

[I do have a slightly more complicated request of using real dates and being able on select all for the last 15 years for example and 15 to 20 years, but I think we should leave that for another day}

Any help very welcome, thanks.
 

Relevancy 83.42%

I'm trying to populate blank fields with data from above. For example, in a column, there will be one cell containing data, I'd like to populate the blank cells below until another populated cell appears etc...

I think this is a "Run a For Each...next Loop" macro but do now know VBA language well enough to build.

Any ideas?
 

Relevancy 83.42%

I have a userform created in Excel with a combo box. I would like to have the user select an option from a combo box, and then filter/hide data on a worksheet based on the combobox selection.

If any further information is needed please let me know.

Any help with this would be greatly appreciated.
 

Relevancy 83.42%

Hi Guys

I have a Excel spreadsheet that has a lot of sheets. On the header sheet I have created a checkbox next to the names of each sheet, say "A", "B", etc

I've tried to create a macro that deletes all the sheets with the checkbox checked but unsuccessful so far. Can you guys please help me?
Also what's the best way to get to the sheet from header sheet without slowing down excel too much please? Hyperlink?macro?