Delete Rows Without Affecting Formulas

Sep 28, 2009

delete rows without affecting formulas

In general, when you write a formula:

In Cell A1:

View 7 Replies


ADVERTISEMENT

Highlight Rows In Master Spreadsheet Without Affecting Formulas?

Jan 19, 2014

how to highlight entire rows within a spreedsheet based on the information in a cell. I have gone to the conditional formatting and done:

=$A4="Needs Labs" and formatted that red, but when i go to note what areas it applies to, It will not highlight the row. I use the wizard box to decide where to apply the formatting like I saw on an online tutorial and dragged across the row, but nothing happened.

View 4 Replies View Related

Sort Range Without Affecting Formulas That Reference It

Dec 28, 2007

I want to be able to sort a table alphabetically by one column after adding a new row to the bottom. But there is another table that uses the values of the former table. How can this be done without screwing up the formulas in the second table.

View 5 Replies View Related

How To Change Source File Without Affecting VLookup Formulas

Jun 6, 2013

I have an excel file - central database - that holds a lot of raw data organized in tables. There are more than 15 files (dependent files) that access this data using VLOOKUP formulas.

I now need to add a few columns to the central database and these columns can't be after the columns already existing, i.e. they have to be on the left of some of the existing columns. Inserting those columns is going to mess up all the vlookup formulas in the dependent files.

Is there a way change the central database file without affecting the vlookup formulas in the dependent files?

View 2 Replies View Related

Sort Multiple Rows Without Affecting Others Rows

Aug 10, 2006

I want to sort each row in an excel sheet so all calls are in alphabetical order without affecting any other row. I need to do this for about 500 rows. Is there any quick way of doing this without having to sort each row individually.

View 3 Replies View Related

VBA Delete Rows And Insert Formulas

Jun 23, 2013

delete rows of a report which contains $- or zero value but not row with Beginning Balance. Data begins from Column B to Column E. Some records may need to be deleted completely from Account Number down to Subtotal rows plus one empty row, if the Subtotal amount is $- or zero. Below is the sample data and how the finished sheet should look like. The report will comes in thousand of line. I don't have knowledge in programing but believe it can be done through VBA.

Account Number

211-00-5936-00-001-3-00-2-00
Trans. Date
Doc. No.
Trans. Line Comment
Actual Amount

[code]....

if Subtotal is $0, then delete the row starting from Account Number to Subtotal plus one empty row

211-00-5936-00-002-3-00-2-00
Trans. Date
Doc. No.
Trans. Line Comment
Actual Amount

[code]....

View 2 Replies View Related

Delete Rows With Ivalid Formulas

May 17, 2007

I have a problem with deleting rows that contains invalid formulas, these formulas are generated randomly daily in rows that contain no data and refer to empty cells in the same row.

Is there a code to delete rows an empty row in that by data it is empty, but not so because there is a formula?

currently this code of mine doesnt work on the zero data but formular-ed cell.. cause counta on the cell gives me 1

Dim i As Long, EmptyR As Long
EmptyR = ActiveSheet.UsedRange.Rows.Count
For i = EmptyR To 1 Step -1
If Application.CountA(Cells(i, 1).EntireRow) = 0 Then
Cells(i, 1).EntireRow.Delete
End If
Next i

View 9 Replies View Related

Delete Rows With Blank Cells But Housing Formulas

Sep 1, 2009

I have several lists that I need to be able to print out periodically.

The main worksheet that underpins each list is over 900 lines long and numerous calcs and formulae populate columns to provide the data for my 'print lists'.

I need my 'print lists' on seperate worksheets and I have linked the data from my main worksheet results, using IF statements to stop unwanted results being displayed by making the rows appear empty (i.e. to display "").

Due to the design of my main Worksheet it is inevitable that I have many rows in each 'print list' that are not required for that particular 'print list'.

I want to remove the 'empty' rows from the print sheets at the time of printing. I cannot use the GoTo > Special > Blanks > Delete Rows because the rows are not recognised as being 'blank'.

I have attached 2 screenshots of my 'print lists'.

P.S. I am not assuming anything but I have searched on OZGRID and it appears to me that I might need to use Excel/VBA?

View 9 Replies View Related

VBA Macro To Delete Rows/Columns, Insert Formulas & Auto Fill

May 28, 2009

I'm running a macro that opens another workbook and read data from it.How can I incorporate this code into my macro.Sorry i don't knwo VBA.

Workbooks.Open Filename:="C:Documents and SettingsmsimantbDesktopINFRACHEM_POLYMERS - DON''T DELETE.xls]Sheet1"

UserGRP_MAcro Macro
Rows("1:3").Select
Selection.Delete Shift:=xlUp
Columns("A:B").Select
Selection.Delete Shift:=xlToLeft
Columns("B:E").Select
Selection.Delete Shift:=xlToLeft
Columns("A:A").EntireColumn.AutoFit
Rows("2:2").Select
Selection.Delete Shift:=xlUp
Range("B1").Select
ActiveCell.FormulaR1C1 = "Existing userGroup"............................

View 2 Replies View Related

How To Remove Column Without Affecting Another

Oct 7, 2011

I have a formula in column B calculated from column A.

The formula for B is =SUM(A1)

I would like to remove column A while keeping the calculation for column B (I don't care about the formula, I just want to keep the numbers). Obviously, if I delete column A, then column B will show the #REF! error.

Is such a thing even possible?

View 5 Replies View Related

Clear Or Delete Cells Without Formulas

Jul 31, 2007

Im trying to make life easier by setting up some sort of macro function that will clear the contents of all the cells except for the ones that have formulas in them.
I don't want to delete the 1st row as it contains the titles for each column.

View 9 Replies View Related

Delete Formulas Returning Errors

Mar 18, 2008

I have a formula in my worksheet that is copied into 7 other columns and then copied to the bottom of the worksheet. This spans about 10000 rows.

The formula is this: =IF(AC9="G",AG9,#N/A) When I import my data into the worksheet, either the formula will result in a number or will show blank with an error comment. I need to search through this range and then delete the contents of the cell (including the formula) if it is blank. For reference, the range of the columns are AJ thru AP. I hope this is specific enough, if not please let me know. I can attach the file if necessary.

If #N/A is not sufficient, then I can replace it with "x". This way if the formula does not result in a number then it will place an x in the cell. The macro would then search thru the range and delete any cell containing x.....

View 3 Replies View Related

Sorting In Worksheet1 Affecting Worksheet2

Mar 8, 2007

In my workbook I have several worksheets. In worksheet1 I can plot in new users, like

View 11 Replies View Related

Conditional Values Affecting Another Cell

Mar 6, 2009

I was curious if it was possible to have a cell's formatting be altered using the conditional values tool. Example: if(A1=A2,A3=redfont,A3=automaticfont). I know it wouldn't work like that, but it does show what I'd like to happen.

View 2 Replies View Related

Blank Cells Affecting Formula

Sep 30, 2009

=(SUMPRODUCT((D6:D300="a")*(F6:F300="MATT")*(J6:J300)))

Count all A's that are also Matt and add up the corresponding figs in J. If use the formula above to 179 (where there are values in the cells) then I get the answer 170 which is correct. Currently with the it set to review all cells from 6 to 300 which includes blanks then it returns #value therfore I assume it is not coping with the blank cells.

View 4 Replies View Related

Paste Special - Values To Delete Formulas.

Jun 30, 2006

Sub import()
On Error Resume Next
Dim wb As Workbook
Dim c As Range
Dim rngTo As Range

For Each c In Range("D1:D10").Cells
Set wb = Workbooks.Open(Filename:=c.Value)
With Workbooks("DigitalTicketMaster.xls"). Sheets("All")
Set rngTo = .Range("A" & .Rows.Count).End(xlUp).Offset(1, 0)
End With
wb.Sheets("Combined").Range("A2:C100").Copy rngTo
wb.Close .............................................
we have a change on our sheet, make it easy for our guys. Column A, is the date. Today 6/29.

They enter it once at the top, and it pastes for them automatically (a simple cell = $E$1)

But now, when I use the macro, it pastes over the formula that I don't want nor need, and have to call the second macro for. But then everything in that column shoes E1 on my new sheet, which is not the date... and each sheet changes dates, so I can't just have the date all the same.

What can I do in my original code to still make it loop, pull all my pages that I tell it to, but paste values only?

Would it be possible, in my loop, to highlight my cells, on that sheet... A2:C100, copy them, paste themselves right onto themselves, as values only, then copy over to my new sheet?

View 9 Replies View Related

Delete & Merge Columns,Delete Rows With Filter, Etc

Jul 15, 2009

1. Remove J,K,N,A Columns,

2. In the last O (TIMESTAMP) column, the date is 14-Jul-09 format change it to 07/14/2009 (this format mm/dd/yyy

3.Filter L column (VAL_INLAKH) Remove all rows from whole sheet which has 0 value

4. Column C (EXPIRY_DT) date format is 24-Sep-09 , "dd-Sep-09" change to "Sep" only

5.Merge Column B,C,D,E (SYMBOL.EXPIRY_DT.STRIKE_PR.OPTION_TYP
respectively )

View 3 Replies View Related

Method Of Splitting Cells Without Affecting Layout?

Jan 19, 2014

Was just wondering if it was possible to 'split' these cells (highlighted in the link below) into 2 columns without affecting the layout of the invoice.

[URL]

View 12 Replies View Related

Protect Worksheet Without Affecting Macro Functionality

Oct 15, 2008

I've attached an excel invoice template I've been making for our company. I'd like to protect all the cells except A12:H42, C8, B9, G4 and I44. The problem is, if I protect the worksheet (with these cells unlocked) then it won't let me run the macro (for inserting new rows for extra products).

View 5 Replies View Related

VBA To Delete Formulas, Names, & Macros Of Another Workbook, But To Keep Values

May 15, 2009

I want to delete names, formulas, macros of another workbook. For example, A.xls is my codes workbook. From this file, I want to delete the names, formulas, macros (but to keep the values & formatting in tact) of another workbook (there must be a prompt for which .xls file, the names etc. to be deleted). All files are in a same folder.

View 5 Replies View Related

Delete Only Cell Values (not Formulas) In Multiple Sheets

Nov 3, 2009

I am trying to make a button that will re-initialize the workbook: clear (delete) all unlocked cell's values. I have the following

View 5 Replies View Related

Chart Axis Resizing Affecting Full Screen?

Mar 26, 2014

My workbook operates in full screen mode simly to make it looks a bit nicer. I have some + - buttons that call a macro to change the scale of the axes of a chart (sort of a zoom effect). For some reason, whenever I run these macros my workbook exits out of full screen mode.

Here's an example of the zoom code:

ActiveSheet.ChartObjects("Chart 115").Activate
ActiveChart.Axes(xlValue).Select
ActiveChart.Axes(xlValue).MinimumScale = 200000
ActiveSheet.Range("a1").Select

View 2 Replies View Related

Named Columns Being Movable Without Affecting VBA/Macro/Userform

Sep 27, 2008

I have a userform that allows users to review, input and edit data on a spreadsheet. (thanks to Leith for getting me started on it a while back)

I want to be able to assign names to columns so that they can be rearanged in the worksheet without interfering with the VBA/macro/userform.

For instance currently the VBA for the row = "R" (equating it to whichever row the form is currently on)

View 11 Replies View Related

Worksheet Format Macro Not Affecting Pasted Data

Mar 31, 2007

I'm currently using some pretty extensive conditional formatting macros on a worksheet (this functionality is working fine when data is directly entered into the sheet). But when i paste data from another worksheet into my "formatted" sheet, the formatting does not take affect. is there any way to "refresh" a macro?

View 2 Replies View Related

Prevent Mouse Click From Affecting Ado Data Transfer

May 31, 2007

I'm using code based on the following post: Add Borders To Cells Of Spreadsheet From Access. That code was developed for a relatively small recordest. I am using the same coding style to transfer a recordset that has roughly 2000 records in it. Since this is all taking place over a network there is a period of time (about 15-20 seconds) where Excel is open and the user is watching the cells get populated from Access. If, during that period of time when Excel is open, the user clicks in a cell during the population of data, it stops the process and causes an error on the Access end (Error 50290: Application-defined or object-defined error). Is there a way I can prevent user input (perhaps prevent signals from the keyboard and mouse) until after the data has been transferred? I know this is a long way to do a TransferSpreadsheet command but I like the way the column headers get formatted as well as the column sizes. I also think it's pretty cool to watch the data populate as it goes.

View 2 Replies View Related

Make All Blank Cell Have Dash Without Affecting Other Cells With Data?

Jul 20, 2013

section 100
section 200

100-1
200-1

I have a large spreadsheet with text, numbers and blank cells. Is there a code a can use to make all blank cell have a dash (-) without affecting the other cell with data.

View 8 Replies View Related

Excel 2010 :: Delete Filtered Rows Without Deleting The Hidden Rows?

Sep 25, 2012

How do I delete filtered rows without deleting the hidden rows in excel 2010?

View 8 Replies View Related

Moving Data From Rows To Columns And Delete Repeated Rows

Apr 16, 2014

removing duplicate rows and move other data frm rows to columns.xlsx.

I am attaching a sample excel sheet showing what I need to do.In the first tab, I have a list that includes duplicate rows (first column only). I want to remove those duplicate rows but I don't want to lose the data in the following columns which can be unique or duplicates as well.

see the desired result tab in the sheet to get an idea of what I am looking for as the end result.

Keep in mind that the actual source file I am working with could have up to 50000 row, and the expected results could be around 2000 rows. So nothing can be done manually.

View 5 Replies View Related

How To Delete Copied Rows And Update Original Tab Without Empty Rows

Apr 3, 2014

In my excel I'm copying rows upon specific criteria to another tab.

The question is how I can delete copied rows and update the original tab without empty rows? (N of rows is always changing)

View 14 Replies View Related

Delete The Columns First Then Rows Will Not Delete

May 22, 2008

Is there a limit on the number of rows and columns that can be deleted in a macro on Excel 2003? I am trying to create a macro that, amoung other things, delets 1119 rows and 54 columns. If I delete the columns first, the rows will not delete. If I delete the columns first, the rows will not delete.

View 12 Replies View Related







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