Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to enter a formula in column J that refers to a variable range
in column a. I think I'm going about it in the wrong way. Everytime you run the macro, it updates data from an XML file and creates a new worksheet with today's date. Can you help this beginner? Dim numrowsdata As Integer Dim ws As String numrowsdata = Selection.Rows.Count ws = ActiveSheet.Name Range("A1").Select Range(Selection, Selection.End(xlDown)).Select Range("j7").FormulaArray = _ "=SUM(('" & ws & "'!R2C8:R" & numrowsdata & "C8=RC[-1])*('" & ws & "'!R2C6:R" & numrowsdata & "C6))" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula to count data in a column that falls between a range | Excel Worksheet Functions | |||
multiple criteria count formula with duplicate data | Excel Worksheet Functions | |||
Creating number formula to count number occurences in a data set | Excel Programming | |||
formula to count based on data in two different cells/columns | Excel Discussion (Misc queries) | |||
SUMPRODUCT Formula to Count Row of data Below Matched Criteria | Excel Worksheet Functions |