Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a data table which have inputs of dates(A) and values(B). The data
table starts at row 4 to 2000. Is there a way to find the date at which the sum total is 100. Then sum the values under 100. -- AOP |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub dototals()
lr = Cells(Rows.Count, "f").End(xlUp).Row For Each c In Range("f1:f" & lr) mysum = mysum + c If mysum = 100 Then sr = c.Row + 1 Exit For End If Next MsgBox sr MsgBox Application.Sum(Range(Cells(sr, "f"), Cells(lr, "f"))) End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "AOP" wrote in message ... I have a data table which have inputs of dates(A) and values(B). The data table starts at row 4 to 2000. Is there a way to find the date at which the sum total is 100. Then sum the values under 100. -- AOP |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you Don
I take it I cant have the same in a formula or conditional format? -- AOP "Don Guillett" wrote: Sub dototals() lr = Cells(Rows.Count, "f").End(xlUp).Row For Each c In Range("f1:f" & lr) mysum = mysum + c If mysum = 100 Then sr = c.Row + 1 Exit For End If Next MsgBox sr MsgBox Application.Sum(Range(Cells(sr, "f"), Cells(lr, "f"))) End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "AOP" wrote in message ... I have a data table which have inputs of dates(A) and values(B). The data table starts at row 4 to 2000. Is there a way to find the date at which the sum total is 100. Then sum the values under 100. -- AOP |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
if, sumproduct, help by date | Excel Worksheet Functions | |||
Using sumproduct to count number by date | Excel Worksheet Functions | |||
SUMPRODUCT + DATE = 0 | Excel Worksheet Functions | |||
SUMPRODUCT + DATE = 0 | Excel Worksheet Functions | |||
Sumproduct with different number formats | Excel Discussion (Misc queries) |