Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
please help with FORMULAS
I need an formula for a matrix I am building
A B C 1 600 45 2 900 55 3 650 50 4 750 60 If B is greater or = to 600 but less than or = 800 add C ie = the answer would be 165 thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
please help with FORMULAS
One way:
=SUMPRODUCT(--(B1:B4<=800),--(B1:B4=600),C1:C4) In article , boogie wrote: I need an formula for a matrix I am building A B C 1 600 45 2 900 55 3 650 50 4 750 60 If B is greater or = to 600 but less than or = 800 add C ie = the answer would be 165 thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
please help with FORMULAS
Sub tst()
Do Until ActiveCell = "" If ActiveCell.Value = 600 And ActiveCell.Value <= 800 Then totl = totl + ActiveCell.Offset(0, 1) ActiveCell.Offset(1, 0).Activate Else ActiveCell.Offset(1, 0).Activate End If Loop MsgBox totl End Sub HTH Devin "boogie" wrote: I need an formula for a matrix I am building A B C 1 600 45 2 900 55 3 650 50 4 750 60 If B is greater or = to 600 but less than or = 800 add C ie = the answer would be 165 thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert Array Formulas to Regular Formulas | Excel Worksheet Functions | |||
E2007 formulas display as formulas, not results | Excel Worksheet Functions | |||
Counting # of Formulas in a column with formulas and entered data | Excel Worksheet Functions | |||
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP | Excel Worksheet Functions | |||
Formulas not evaluated, Formulas treated as strings | Excel Discussion (Misc queries) |