Inserting Space Between Lines In Conditional Formatting

Dec 5, 2013

I need to create a spreadsheet that has approximately 1000 rows with the same exact information in each of them prefilled (as I use the "drag-down" method). I use this chart throughout the year to enter various bits of data in each row. I also use conditional formatting in each row. The company I work for wants to have an empty space between each row.
"
You can create the blank rows separately and then interleave them with the existing rows by sorting. To start, insert a new column to the left of the existing column A. Enter 1 in cell A1 and highlight column A all the way to the last row that contains data. From the Edit menu select Fill | Series and click on OK. Column A should now contain numbers from 1 to the total number of rows. Press Ctrl-C to copy these cells to the clipboard, click in the cell just below the last of them, and press Ctrl-V to paste. Now highlight the entire data area, including the new rows with just a number in column A. Select Sort from the Data menu and choose the No header row option in the resulting dialog box. Under Sort by select Column A, under Then by select column B, and click on OK. Finally, delete column A. You now have a blank row after every one of the original 1,000-odd rows."

This works great for the data that I copied (with the drag down method) to all the rows. However, this method does not insert an empty line in between all the conditional formatting I have throughout the spreadsheet. This is my conditional formatting formula I have "manage rules" which is under "conditional formatting" =NOT(ISBLANK($A6)) (*please take note that this is selected for 1000 rows.) Maybe there is some kind of change in the formula that I need in order for the conditional formatting method to be copied onto every 2nd line of the 1000 rows".

View 10 Replies


ADVERTISEMENT

Adding Lines And Conditional Formatting With Macros

Jul 4, 2008

I have only recently started playing around with macros, and am slowly getting into them. I do however still struggle a bit to ‘read’ them. Having played with formulas for years I can generally translate a string of formula text into English, like ‘if this cell value is greater than that cell value, then do this, if it is not then if it is equal to that cell value, do that, if not return 0’. Babbling like a child basically.

With visual basic I have managed to record some handy macros and then tweak them a little manually but I am still struggling to follow it going through it step by step reading it like a formula. So I hope you won’t mind me asking some very stupid questions. I mean well; I’m just a bit slow.

At present I am trying to do two different things on two different sheets, and I was wondering if perhaps one of you could nudge me in the right direction.

1:
I am trying to insert a blank row above every row that has a certain word in column B.

So basically ‘find value “Example” in column B, and when you find it, insert an entirely blank row directly above it’.

2:
Is a bit more challenging. I want to change the colour of a cell if the value in the cell corresponds with the value of another cell in the same column.

For example, I have a long list of surnames in column A. When I add ‘McNeil’ at the bottom, I would like to be able to run a macro that checks if the name McNeil appears anywhere else in column A, and if it does, that it changes the colour of the cell.

Preferably both of the cells that say McNeil, but one would do very nicely indeed.

If that is possible, I wonder if it is possible to do the same with the first name in column B, but only if there was a match for the surname in column A on the same row. So, if McNeil does not appear in column A, don’t bother, but if it does, does the corresponding first name appear in column B?

If both of that is possible, the next step would obviously be if McNeil appears in column A (say twice, once in A123 and once in A678), do cells B123 and B678 match as well?

View 14 Replies View Related

Colour Alternate Lines With Conditional Formatting

Jul 28, 2006

change the colours of alternate rows in order to make reading line by line easier. I know that I have used this before as a Conditional action ie:- if(mod...... etc

As always, the program I used it in has 'disappeared' so I can't check back with that.

View 5 Replies View Related

Conditional Formatting And Inserting Row From Another Worksheet

Oct 24, 2011

To protect formulas and formatting, I have code, which copies a row, with formatting and formulas, from a hidden sheet, unprotect the main sheet, inserts the copied row and reprotect the main sheet. This works great, except with conditional formatting.

My current conditional formatting works on the range: $A$3:$B$100. The copied row is inserted on Row 4. When done, this splits the conditional formatting to: $A$3:$B$3 and $A$5:$B$101, whether or not the copied row contains the same conditional formatting. This makes sense, but is it possible to maintain the original, all-encompassing range? Otherwise I'll end up getting thousands of conditional formatting for each insert.

View 12 Replies View Related

Conditional Formatting Verify That The Lines Of Data Being Pulled From My Application

Jun 9, 2009

I would like to use conditional formatting verify that the lines of data being pulled from my application into Excel, but totaled using "=sum" are equal to totals pulled directly from my application. I believe that I should be able to use conditional formatting but am not sure how to make the formula work correctly.

To illustrate my problem: I have cells A1 (a total of a range), A2 (also a total of a range) and A3 (total of data pulled directly into my Excel report). In cell A3 I would like to verify that lines A1 + A2 - A3 = 0. This I can do without any problem, but there is rounding involved. The total of the above formula should be between -1 and 1 and still show as correct. I want the number in A3 to show up in red/bold when incorrect.

View 6 Replies View Related

Macro Inserting Comma & Space

Sep 30, 2009

I am trying to create a macro that will create a comma and space between every 5th character within a cell. that would be preference #1. What I decided to go with for now, instead, is to try (using the macro recorder) text to columns, fixed width, and do this after every 5th character, and selecting each cell to be formatted as text.

What I am having difficulties with is trying to tell the macro which cells to touch and which ones not to. I do not want the macro to do text to columns and fixed width on simple text. I only want it to do the macro when it is a string of numbers that, during transfer from PDF to excel, have been concatenated into one cell. I also want the macro to do this for infinite number of rows. I have excel 2007.

I am attaching a small excel file with examples of data I am working with. I have saved this excel file as a 97-2003 version for those who do not have 2007. As I stated, if anybody can help me figure out how to do a simple insert comma space every 5th character where information has been concatenated, that would be preference. Also, I am not trying to change anything within column A. Only column B. On the sample file please note B3 - B6. Rows 5 & 6 are fine as they are. Other problem rows include B11 - B13

View 2 Replies View Related

Removing Coma Delimitation, Inserting A Space?

Aug 5, 2009

I have a huge data file that must unfortunately be mandatorily downloaded in a single column format, with coma delimitation for each separate piece of data instead of a space, as follows: 08/04/2009,158,7,1849,1184,824451,403711

What I need to do is put each of the bits of data (coma separating each bit) into a separate column, so that each piece may be further processed. Is there a simple way to do this? Would be happy just pasting the data to a new worksheet, if there was a simple way to remove the coma, create a space between each number, and automatically place each piece of data into a separate column.

View 4 Replies View Related

Concatenate Multiple Cells And Inserting Space With Comma In Between Each Name

May 23, 2014

I have several lists of hundreds of emails that I need to list in an email string via Lotus Notes. I need a space and comma in between each name, ex:

john.doe@dm.com, john.doe1@dm.com, john.doe2@dm.com

I am using the below formula manually but it is taking too long. How to automate this? Is there a way to create the space and comma for as long as the list is?

=CONCATENATE(B6,", ",B7,", ",B8,", ",B9,", ",B10,", ",B12,", ",B13,", ",B14,", ",B15,", ",B16,", ",B17)

View 2 Replies View Related

Inserting A Space Between Text In Cells Belonging To One Column?

Jun 5, 2014

I am operating Excel for Mac 2011 version 14.4.2

I have a list of 1500 addresses in a column, something like, 5VistaTerrace, and I need to insert a space between the number and each of the words so that it reads 5 Vista Terrace in the cell.

All of the addresses are different, some with 4 or 5 words like 5ABrownBayCourt... that particular one I would want to read 5A Brown Bay Court in the end.

Is there a formula or excel trick I can perform to save me the time of manually adding the spaces?

View 1 Replies View Related

Inserting Lines Based On IF

Aug 13, 2008

I have an amount of data split into various fields. I need to do something similar to the following:

In each row I have three fields separated by columns: name, sector and specialty. There is only one name and one sector for each record, but possibly several specialties (of which there are fifteen types in total, so they do not appear in a consistent column. specialty 'i' could appear in columns 3, 4, 5 through to 17. ie, sample entries below:

sheet 1
a1 name a2 sector a3 specialty i a4 specialty iv
b2 name b2 sector b3 specialty ii b3 specialty iv b4 specialty x
c3 name c4 sector c5 specialty i c6 specialty ii

The thing is, for every specialty in a row, I need new records created, so the above would become:

sheet 2
a1 name a2 sector a3 specialty i
a1 name a2 sector a3 a4 specialty iv
b2 name b2 sector b3 specialty ii
b2 name b2 sector b3 specialty iv
b2 name b2 sector b4 specialty x
c3 name c4 sector c5 specialty i
c3 name c4 sector c6 specialty ii

View 9 Replies View Related

Inserting Lines Automatically On A Daily Basis

Apr 14, 2009

In cell b5 I have =today() which automatically updates the date on a daily basis. What I would like to happen is for each day there is a new line is automatically inserted with the date so:

Sat26/04/2008gone off sickFri25/04/2008Thu24/04/2008Wed23/04/2008Tue22/04/2008Mon21/04/2008Sun20/04/2008Sat19/04/2008Fri18/04/2008days holidayThu17/04/2008Wed16/04/2008Tue15/04/2008

I would also like any information on each of the line to move down when the new line is inserted. I am not really that good with macros or VBA but feel that is the only option to solving this problem. Also would everything still update even if the file wasn't opened for lets say the weekend. So it is constantly rolling.

View 9 Replies View Related

Inserting Lines, Takes Neighboring Formats But Not Formulas

Nov 15, 2008

I have a spreadsheet that I have people fill in. A few columns have VLOOKUPS. I want to allow people to insert lines in this spreadsheet and have the formula automatically copy in the new line. It seems to already have that behavior for formatting and conditional formatting. Is there a way to also have that for formulas when inserting lines?

Name City Assigned Salesman
-----------------------------------------------------
john Mountain View (formula using VLOOKUP)
cindy Palo Alto (formula using VLOOKUP)
ronnie sunnyvale (formula using VLOOKUP)
---------------------------------------------------

Insert line between john & cindy. Formula doesn't copy.

I ask them to copy the formula but they often forget. If I can make it a little more robust,

View 11 Replies View Related

Inserting Rows - Need To Alter For The Blank Lines And Totals

Aug 13, 2009

I need to alter this code in order to do 2 things

1. to leave a blank line inbwteen Shop A's Apples, Shop A's Pears etc

2. I also wanted to total up the price totals....(see example below).So if the last price was in E4, the total of all those prices above would show in F5 ....

View 9 Replies View Related

Inserting 1 Line In Sheet1 To Enter 5 Lines In Sheet2

Jul 23, 2006

One has around 129 lines for the first years 2006 in sheet1.
The other links to the first 129 rows. Then I've linked the top 129 in sheet2 130 down for 2007 and so on for 5 years.

How would I add a line in Sheet1 then would insert 5 lines in sheet2 keeping the same order.

e.g

Sheet1
Name Rev Year
John £120 2006 Row 5
Jack £150 2006 Row 6

Sheet2 (linked)
Name Rev Year
John £120 2006 Row 5
Jack £150 2006 Row 6
John £130 2007 Row 134
Jack £160 2007 Row 135
John £140 2008 Row 263
Jack £160 2008 Row 264
John £150 2009 Row 392
Jack £170 2009 Row 393
John £155 2010 Row 521
Jack £180 2010 Row 522

The Rev changes by formulas in Sheet 1

View 9 Replies View Related

Formatting - Delete First Space In Each Cell?

Feb 22, 2014

I need to delete the first space of each cell in a column. These cells are referenced in a formula, and those cells that have a character in the first space of each cell allows the formula to work. However, most of the cells have one space before the characters begin in each cell. When I go to one of those cells and delete the empty space then the formula works for that cell. My problem is I need to reformat hundreds of cells in that column but not all. I would like to be able to highlight those that need the first space deleted and not do this one cell at a time.

View 3 Replies View Related

Condiditional Formatting - Out Of Stack Space - In Change Event Code

Oct 21, 2008

the code i have got is attached below but the problem i am having is when i enter the letter "H" which is calculated in AJ and i enter it fast it comes up with the error "Out Of Stack Space error 28". AJ in the code below is where the cumlative value is stored, and AI is the value that it is measured against it AJ is greater than AI the message is displayed.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rRow As Range
Dim icolor As Integer
Dim ifont As Integer
With Application
.CellDragAndDrop = False
.CutCopyMode = False
End With
If Intersect(Target, Me.Range("TABLE1")) Is Nothing Then Exit Sub
Me.Calculate
For Each rRow In Target.Rows
If Me.Cells(rRow.Row, "AJ") > Me.Cells(rRow.Row, "AI") Then
rRow.ClearContents
MsgBox "No Holidays Left or No Holidays setup Against Them " & Me.Cells(rRow.Row, "AI") & " days."............................

View 9 Replies View Related

Conditional Drop-Down For Multiple Lines

Jul 29, 2014

I have a list of car-dealers and licence plate numbers. f.e. data in tab 1 Supplier-Cars.jpg

In another tab (let's call this tab 2) I have to make drop-down lists, depending on the value in this drop-down the cell next to it must give the list of cars from this supplier. f.e. if I select in the first line Supplier 1, I get a drop-down list where I can select Car 1 if I select in the second line Supplier 4, I get a drop-down list where I can select Car 4, 6 or 7 etc. Because of the number of suppliers, I can not work with predefined lists where I put all the suppliers one next to the other...

have a drop-down in each line to go look for the cars depending on the supplier I selected ?

View 2 Replies View Related

Retain Formatting When Inserting Rows Via VBA?

May 21, 2014

I'm using the following code to insert rows in a table of data:

Code:
For i = LR To 2 Step -1
If Range("D" & i).Value Range("D" & i - 1).Value Then Range("A" & i).EntireRow.Insert
Next i

It works as expected, but as my data table is formatted, the last row inserted does not contain the same formatting as the table.

View 1 Replies View Related

Excel 2010 :: Inserting Column Without Formatting

Sep 30, 2011

Whenever I insert a column in Excel 2010 it takes the formatting from the Column to the left. I want to insert a Column without formatting. Just a blank column.

View 4 Replies View Related

Conditional Formatting - Two Different Fields Affect One Cells Formatting For Date?

Sep 16, 2013

A little background on what i am doing. I have a spreadsheet that tracks when i have blown the dust out of our computers. I have set up conditional formatting so that the text turns red after 300 days and the cell turns yellow after 600 days. However, some computers are in high dust environments. I would like the spreadsheet to tell me to blow the dust out of these sooner. see the attached sheet.

dust 1.xlsx

View 2 Replies View Related

Conditional Formatting Based On Another Cell Conditional Format

Mar 20, 2013

Is it possible to change the format of cell AI3 based on the format of cell C3 and D3? I have C3 and D3 set to turn red based on what is in cell C2 and D2. I would like the following done:

If AI3=C3 & C3 is red, format AI3 blue
If AI3=D3 & D3 is red, format AI3 blue
Otherwise, leave AI3 unformatted.

Possible???

View 3 Replies View Related

IF Statement Using Formatting Criteria (NOT Conditional Formatting)

May 5, 2009

Is there "code" for different formatting in a spreadsheet so you can use an IF statement to do something like:

if(A1=blue background,"Yes","No")

or

if(A1=red text,"Yes","No")

etc.?? But replace "blue background" and "red text" with some sort of number code? I want to compile a list of the items that are formatted with certain background colors and/or text colors and then organize only those items into a chart.

View 5 Replies View Related

VBA To Convert Conditional Formatting To Fixed Formatting?

Jul 5, 2013

Any VBA that I can put into a macro that will convert conditional formatting into fixed formatting..? So when the cell contents/formulas are deleted the formatting remains. Assume that the range I want to convert is A1:D200...

View 9 Replies View Related

Extend Space Of Userform Beyond Its Maximum Space?

Oct 16, 2012

Is there a way to extend the space of my userform beyond its maximum space? I have tried using vertical scroll bars but they were of no use.

View 1 Replies View Related

Locate Text String After First Space And Before Last Space

May 26, 2007

I have been working on different formulas to return the text string between the first and last space and have been unsuccessful. Is this possible?

I have tried several combos or Left and Right, I have been able to get the values after the first space, and the values before the last space, but not between the spaces.

String: Y60
~C CULT NUCLEUS 3X2 SPRING WST BK XL

Desired results: D60
CULT NUCLEUS 3X2 SPRING WST BK

View 9 Replies View Related

Remove All Text Left Of Space And The Space

Feb 10, 2007

I have two words of differing character lengths separated by a space.

How can I remove the first word... essentially, all the charcters to the left of the space AND the space itself?

View 9 Replies View Related

Looping & Conditional Format: Finds A "J" It Will Apply Conditional Formatting To A Row Of 4 Cells Directly Adjacent?

Feb 9, 2009

I need to run a loop through a column of values (attachment col B) and when it finds a "J" it will apply conditional formatting to a row of 4 cells directly adjacent. The attachment is a theoretical before & after.

View 2 Replies View Related

COUNTA Not To Counting Space Bar Space

Feb 15, 2009

I have the following formula that works fine until someone uses the space bar to clear a cells contents

=COUNTA($D11:$AI11)

When the space bar is used to clear a cells contents the COUNTA statements includes the space in the count. How do I count the number of cells with content and exclude the space bar space in a cell?

View 4 Replies View Related

Delete Space After Dot In Cell B1 If A1 Contain Dot Without Space

Nov 6, 2012

If find dot. with out space in ( A1 ) cell remove space after dot in cell ( B1 ) Cell, vb or macro

A
B

M V Micunovic
MICUNOVIC,M V

L.T.Kudrjavceva
KUDRJAVCEVA,L. T.

D Sumarac m.l.
M. L,D SUMARAC

View 1 Replies View Related

Remove Only One Space If There Is Space From The End Of Text

Apr 10, 2013

I only want to remove one space at the end of my text within a cell, if there is a space.

Code:
Sub hth()
Dim c As Range

For Each c In Range("H1", Range("H" & Rows.Count).End(xlUp))
c.Value = Trim(c.Value)
Next c
End Sub

View 9 Replies View Related







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