Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
=IF(AND($F$8:$F$100="",$E$8:$E$100="PCO"), SUM($G$8:$G$100), 0)
Returns 0 when it should a sum of numbers. My Logic is: When column f is blank and column E = "PCO" then sum column G. What am I doing wrong? |
#2
![]() |
|||
|
|||
![]()
Hi!
Try this instead: =SUMPRODUCT(--(E8:E100="PCO"),--(F8:F100=""),G8:G100) OR, use a cell to hold PCO: A1 = PCO =SUMPRODUCT(--(E8:E100=A1),--(F8:F100=""),G8:G100) Biff "Greg Quick" <Greg wrote in message ... =IF(AND($F$8:$F$100="",$E$8:$E$100="PCO"), SUM($G$8:$G$100), 0) Returns 0 when it should a sum of numbers. My Logic is: When column f is blank and column E = "PCO" then sum column G. What am I doing wrong? |
#3
![]() |
|||
|
|||
![]()
Works Great!....
Now, how do I get a count based on the same conditions? Thanks so much! "Biff" wrote: Hi! Try this instead: =SUMPRODUCT(--(E8:E100="PCO"),--(F8:F100=""),G8:G100) OR, use a cell to hold PCO: A1 = PCO =SUMPRODUCT(--(E8:E100=A1),--(F8:F100=""),G8:G100) Biff "Greg Quick" <Greg wrote in message ... =IF(AND($F$8:$F$100="",$E$8:$E$100="PCO"), SUM($G$8:$G$100), 0) Returns 0 when it should a sum of numbers. My Logic is: When column f is blank and column E = "PCO" then sum column G. What am I doing wrong? |
#4
![]() |
|||
|
|||
![]()
Now, how do I get a count based on the same conditions?
Try: =SUMPRODUCT(--(E8:E100="PCO"),--(F8:F100="")) (w/o the col G range) -- Rgds Max xl 97 --- GMT+8, 1° 22' N 103° 45' E xdemechanik <atyahoo<dotcom ---- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Default User Defined Functions - How? | Excel Discussion (Misc queries) | |||
PASTE DOWN FUNCTIONS | Excel Worksheet Functions | |||
3 questions about automated c++ com add-in worksheet functions | Excel Worksheet Functions | |||
# of Functions per cell | Excel Worksheet Functions | |||
Are financial functions calculated based on compound interest? | Excel Worksheet Functions |