LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sumif not working if using different rows

=sum(a2:b2,a4:b4)/(sumif(a2:b2,"0",a1:b1)+sumif(a4:b4,"0",a3:b3))

--
Regards,
Tom Ogilvy

"elmer" wrote in message
...
Perhaps you misunderstood my issue. Using your formula works good if row

2 and 4 has data in them. If B4 is blank, your formula says the answer is
..2375. However the answer should be .3166. Since row 2 has data in both
cells then sum of row 1 is 200, but since row 4 only has data in one cell
(A4), sum of row 3 is only 100. Therefore 95/300 = .3166

Thanks for your help.

----- Frank Kabel wrote: -----

Hi
in this case simply use
=sum(a2:b2,a4:b4)/sum(a1:b1,a3:b3)

SUM will skip non number entries



--
Regards
Frank Kabel
Frankfurt, Germany

elmer wrote:
Trying to do a sumif but not all in the same row. I want to sum row

2
and 4 and divide it by sum of row 1 and 3, but only if cells in row

2
and 4 have numbers in them.
A B

row 1 100 100
row 2 50 20
row 3 100 100
row 4 25 20
So, =sum(a2:b2,a4:b4)/sumif(a2:b2,a4:b4,"0",a1:b1,a3:b3)
But it won't do because of the , between b1 and a3.

Help! Thank You.





 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIF no longer working David Schwartz Excel Discussion (Misc queries) 3 November 10th 09 01:13 AM
SUMIF no longer working Monish Excel Worksheet Functions 4 February 2nd 09 04:47 AM
SUMIF not working #VALUE! Scorpvin Excel Worksheet Functions 1 September 29th 05 11:18 PM
SUMIF function not working CarFreek Excel Worksheet Functions 11 August 25th 05 02:45 AM
SumIF is not working DanVDM Excel Worksheet Functions 3 July 18th 05 04:07 PM


All times are GMT +1. The time now is 09:47 AM.

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

About Us

"It's about Microsoft Excel"