Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help PLEASE!!!!


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 |
+-------------------------------------------------------------------+

--
joi2
------------------------------------------------------------------------
joi2's Profile: http://www.excelforum.com/member.php...o&userid=27554
View this thread: http://www.excelforum.com/showthread...hreadid=479172

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help PLEASE!!!!

assume (cell) means the value held in cell M9

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

--
Regards,
Tom Ogilvy

"joi2" wrote in message
...

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 |
+-------------------------------------------------------------------+

--
joi2
------------------------------------------------------------------------
joi2's Profile:

http://www.excelforum.com/member.php...o&userid=27554
View this thread: http://www.excelforum.com/showthread...hreadid=479172



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Help PLEASE!!!!

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" wrote in message
...
assume (cell) means the value held in cell M9

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

--
Regards,
Tom Ogilvy

"joi2" wrote in

message
...

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 |
+-------------------------------------------------------------------+

--
joi2
------------------------------------------------------------------------
joi2's Profile:

http://www.excelforum.com/member.php...o&userid=27554
View this thread:

http://www.excelforum.com/showthread...hreadid=479172





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help PLEASE!!!!

Yep, typo, thanks.

--
Regards,
Tom Ogilvy

"Bob Phillips" wrote in message
...
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" wrote in message
...
assume (cell) means the value held in cell M9

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

--
Regards,
Tom Ogilvy

"joi2" wrote in

message
...

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 |
+-------------------------------------------------------------------+

--
joi2


------------------------------------------------------------------------
joi2's Profile:

http://www.excelforum.com/member.php...o&userid=27554
View this thread:

http://www.excelforum.com/showthread...hreadid=479172







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"