Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I simplified the macro below like something using increament
method. These are just a minor extract only. Please help sh2.Cells(32, 3).Value = _ Application.WorksheetFunction.CountIf(Range("C1:C3 0"), 0) sh2.Cells(33, 3).Value = _ Application.WorksheetFunction.CountIf(Range("C1:C3 0"), 1) sh2.Cells(34, 3).Value = _ Application.WorksheetFunction.CountIf(Range("C1:C3 0"), 2) sh2.Cells(35, 3).Value = _ Application.WorksheetFunction.CountIf(Range("C1:C3 0"), 3) sh2.Cells(32, 5).Value = _ Application.WorksheetFunction.CountIf(Range("E1:E3 0"), 0) sh2.Cells(33, 5).Value = _ Application.WorksheetFunction.CountIf(Range("E1:E3 0"), 1) sh2.Cells(34, 5).Value = _ Application.WorksheetFunction.CountIf(Range("E1:E3 0"), 2) sh2.Cells(35, 5).Value = _ Application.WorksheetFunction.CountIf(Range("E1:E3 0"), 3) sh2.Cells(32, 7).Value = _ Application.WorksheetFunction.CountIf(Range("G1:G3 0"), 0) sh2.Cells(33, 7).Value = _ Application.WorksheetFunction.CountIf(Range("G1:G3 0"), 1) sh2.Cells(34, 7).Value = _ Application.WorksheetFunction.CountIf(Range("G1:G3 0"), 2) sh2.Cells(35, 7).Value = _ Application.WorksheetFunction.CountIf(Range("G1:G3 0"), 3) sh2.Cells(32, 9).Value = _ Application.WorksheetFunction.CountIf(Range("I1:I3 0"), 0) sh2.Cells(33, 9).Value = _ Application.WorksheetFunction.CountIf(Range("I1:I3 0"), 1) sh2.Cells(34, 9).Value = _ Application.WorksheetFunction.CountIf(Range("I1:I3 0"), 2) sh2.Cells(35, 9).Value = _ Application.WorksheetFunction.CountIf(Range("I1:I3 0"), 3) sh2.Cells(32, 11).Value = _ Application.WorksheetFunction.CountIf(Range("K1:K3 0"), 0) sh2.Cells(33, 11).Value = _ Application.WorksheetFunction.CountIf(Range("K1:K3 0"), 1) sh2.Cells(34, 11).Value = _ Application.WorksheetFunction.CountIf(Range("K1:K3 0"), 2) sh2.Cells(35, 11).Value = _ Application.WorksheetFunction.CountIf(Range("K1:K3 0"), 3) Thank you. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simplified SUMPRODUCT formula ! | New Users to Excel | |||
looking for simplified formulas | Excel Worksheet Functions | |||
Simplified Data Entry | Excel Discussion (Misc queries) | |||
Can this be simplified | Excel Worksheet Functions | |||
Is there a way to stop fractions from being simplified? | Excel Worksheet Functions |