ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula or Macro (https://www.excelbanter.com/excel-worksheet-functions/229797-formula-macro.html)

Eán[_2_]

Formula or Macro
 
I need to write a formula or macro that would allow me to do the follow:

If cells $F$3:$F$70 contain "Very High" and cells $G$3:$G$70 contain "Very
High" in sheet1 I need the whole line A:K to be repeated on sheet2.

How do I do it please?

Thanks

Bob Phillips[_3_]

Formula or Macro
 
Untested

For i = 3 To 70

If Cells(i, "F").value = "Very High" And _
Cells(i, "G").Value = "Very High" Then

NextRow = NextRow + 1
.cells(i, "A").Resize(,11).Copy
Worksheets("Sheet2").Cells(NextRow, "A")
End If
Next i

--
__________________________________
HTH

Bob

"Eán" wrote in message
...
I need to write a formula or macro that would allow me to do the follow:

If cells $F$3:$F$70 contain "Very High" and cells $G$3:$G$70 contain "Very
High" in sheet1 I need the whole line A:K to be repeated on sheet2.

How do I do it please?

Thanks





All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com