#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default If formula...

I need a formula that looks at a column and if that column has a "0" input in
it, then add the number in the cell next to it. I have tried -
IF(H5:H70=0,sum(G5:g70,"")).
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default If formula...

=SUMPRODUCT((H5:H70=0)*(H5:H70<"")*G5:G70), assuming that you don't want to
include those rows where column H is empty.
--
David Biddulph

"heater" wrote in message
...
I need a formula that looks at a column and if that column has a "0" input
in
it, then add the number in the cell next to it. I have tried -
IF(H5:H70=0,sum(G5:g70,"")).



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default If formula...

hi.
Try this....
=IF(SUM(H5:H70)=0,SUM(G5:G70),"")

Regards
FSt1

"heater" wrote:

I need a formula that looks at a column and if that column has a "0" input in
it, then add the number in the cell next to it. I have tried -
IF(H5:H70=0,sum(G5:g70,"")).

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default If formula...

Try this:

=SUMIF(H5:H70,0,G5:G70)

--
Biff
Microsoft Excel MVP


"heater" wrote in message
...
I need a formula that looks at a column and if that column has a "0" input
in
it, then add the number in the cell next to it. I have tried -
IF(H5:H70=0,sum(G5:g70,"")).



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default If formula...

One way:

=SUMIF(H5:H70,0,G5:G70)

In article ,
heater wrote:

I need a formula that looks at a column and if that column has a "0" input in
it, then add the number in the cell next to it. I have tried -
IF(H5:H70=0,sum(G5:g70,"")).

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 05:46 PM.

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"