Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a large amount of data with irregular patterns, and to perform an
additional amount of analysis, I need to insert a row under every time a certain field is defined as a certain value (in this case FALSE). Is there anyway I can do this without coding a full macro..ie with If functions and Do/loops etc. Cheers. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
A simple macro will work, just change the array to match your criteria. Do
note that this doesn't check if the next row is blank (macro already ran). One way to check might be to include ' And cell.offset(1,0).value = "" ' with your If statement. Sub InsertRows() For Each cell In Range("C1:C100") If cell.Value = "FALSE" Then cell.Offset(1, 0).EntireRow.Insert End If Next cell End Sub -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "Gus" wrote: I have a large amount of data with irregular patterns, and to perform an additional amount of analysis, I need to insert a row under every time a certain field is defined as a certain value (in this case FALSE). Is there anyway I can do this without coding a full macro..ie with If functions and Do/loops etc. Cheers. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to return the value of a cell based on two colums match criter | Excel Discussion (Misc queries) | |||
Automatically hide column or row if a cell value meets criteria | Excel Worksheet Functions | |||
Trying to use INDEX and MATCH to insert a value w/ multiple criter | Excel Worksheet Functions | |||
Highlight a row automatically if a cell meets certain criteria | Excel Worksheet Functions | |||
Excel: How to return count for each cell within date range criter. | Excel Worksheet Functions |