View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
[email protected] par_60056@hotmail.com is offline
external usenet poster
 
Posts: 42
Default Obi Wan Kenobi: You're My Only...HELP!!!!!!

On Jul 13, 6:26 pm, "Bob Phillips" wrote:
=SUMPRODUCT(--(A2:A8=1),--(B2:B8=8045),C2:C8)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

wrote in message

oups.com...



HELLO everyone! I seriously need some excel help? I've been reading
VB for Dummies and I still can't figure out how to do this with VB or
use a function.


I have this data set.


A B C
FUND OBJECT VALUE
01 8043 974906.61
01 8044 464605.5
01 8045 633509.09
01 8045 25612.02
03 8047 -1489111
04 8048 292190
05 8049 71675.66
06 8050 191774


I need to do the following:


If for all values in A are = 1 and for all values in collumn B = 8045
then sum this with all other values in collumn C that meet these
conditions. Spit the total sum and place on Sheet2 cell A2.


Does anyone know how to write this either in VB or how to use the
functions to make excel do this? It would have to be pretty easy to
customize if more collumns or conditions were added?


I would be sooooooo appreciated if someone could figure it out;


For this example it should spit out: 659121.11 on the sheet2.


! T H A N K Y O U !- Hide quoted text -


- Show quoted text -


I would assume that a more general result is desired. Not just a sum
of that 1 simple value.

What you want to do is look at pivot tables. They can be used to sort
through groups of data and total values.

Peter