Help PLEASE!!!!

  • Thread starter Thread starter joi2
  • Start date Start date
J

joi2

I need a little help does anyone know of a code that can add a cell if a
certain condition is true. For instance I attached a file to help
understand this a little better. If for instance cell a3 = (cell) and
cell d3 = (no) add whatever value is in cell b3. and do this every
time that case is true does anyone know how to do that?


+-------------------------------------------------------------------+
|Filename: jea.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3948 |
+-------------------------------------------------------------------+
 
assume (cell) means the value held in cell M9

=Sumproduct(--(A2:A50=$M$9),--(D3:D50="No"),B3:B50)
 
SUMPRODUCT must use similar sized ranges

=Sumproduct(--(A3:A50=$M$9),--(D3:D50="No"),B3:B50)


--

HTH

RP
(remove nothere from the email address if mailing direct)


Tom Ogilvy said:
assume (cell) means the value held in cell M9

=Sumproduct(--(A2:A50=$M$9),--(D3:D50="No"),B3:B50)
 
Yep, typo, thanks.

--
Regards,
Tom Ogilvy

Bob Phillips said:
SUMPRODUCT must use similar sized ranges

=Sumproduct(--(A3:A50=$M$9),--(D3:D50="No"),B3:B50)


--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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