Search function needed (sumproduct?)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using the following in another cell which works fine.
=SUMPRODUCT (($A$4:$A$300=36)*($B$4:$B$300="SALE")*($G$4:$G$300="Rob"))

I'm trying to create another formula where column A has group numbers,
column C has dates, column X has costs...I need to sum all cost where columns
A & C are true. How do I handle dates with this formula.

Thanks in advance

C.
 
One way:

=SUMPRODUCT(--(A1:A300=gr_num),--(C1:C300=DATE(2007,04,19)),X1:X300)
 
Oops, forgot something
=Sumproduct(--(isnumber($A$4:$A$300)),(isnumber($C$4:C$400)),($X$4:$X$400))
 
How do you determing that A has a group number vs. something else,and that C
has a date. I'll give you one sumproduct, but I'm not sure it's what you
want. I'm assuming that "has a group #" means that there is a number in the
cell. Same with "has a date"


=SUMPRODUCT(--(isnumber($A$4:$A$300),--($C$4:$C$300),($X$4:$X$300))
 
I need to explain further... The date search is for all day in a specific
month as opposed to a specific date. (ie - find all dates in Jan 07)
 
Try this:

=SUMPRODUCT(--(A1:A300=gr_num),--(TEXT(C1:C300,"mmmyyyy")="Jan2007"),X1:X300)

Biff
 
SUMPRODUCT(--($A$4:$A$300=36),--(TEXT($C$C4:$C$300,"mmm-07")="Jan-07"),$X$4:$X$300)
 
You obviously didn't test that formula.

Quality trumps quantity!

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top