A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

SUMIF formula with non contiguous cells



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2009, 12:53 AM posted to microsoft.public.excel.worksheet.functions
Billy B
external usenet poster
 
Posts: 42
Default SUMIF formula with non contiguous cells

I have been trying, without any success, to write a SUMIF function using non
contiguous cells and need some help. Here is the formula I am working
with:=IF(COUNT(G8:P8,U8,V8)12,"",VLOOKUP(SUM(G8:P 8+U8+V8)/SUMIF(G8:P8+U8+V8,"0",$G7:$P$7+U7+V7),GradeTbl,2) )
  #2  
Old April 16th, 2009, 01:35 AM posted to microsoft.public.excel.worksheet.functions
Domenic[_2_]
external usenet poster
 
Posts: 265
Default SUMIF formula with non contiguous cells

In article ,
Billy B wrote:

I have been trying, without any success, to write a SUMIF function using non
contiguous cells and need some help. Here is the formula I am working
with:=IF(COUNT(G8:P8,U8,V8)12,"",VLOOKUP(SUM(G8:P 8+U8+V8)/SUMIF(G8:P8+U8+V8,"
0",$G7:$P$7+U7+V7),GradeTbl,2))


Try replacing the SUM/SUMIF part of the formula with the following...

SUM(G8:P8,U8,V8)/(SUMIF(G8:P8,"0",G7:P7)+SUMIF(U8:V8,"0",U7:V7))

--
Domenic
http://www.xl-central.com
  #3  
Old April 16th, 2009, 03:14 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default SUMIF formula with non contiguous cells

Also, in the VLOOKUP(), you may need a 0 as the last argument

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Billy B" wrote in message
...
I have been trying, without any success, to write a SUMIF function using
non
contiguous cells and need some help. Here is the formula I am working
with:=IF(COUNT(G8:P8,U8,V8)12,"",VLOOKUP(SUM(G8:P 8+U8+V8)/SUMIF(G8:P8+U8+V8,"0",$G7:$P$7+U7+V7),GradeTbl,2) )


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:05 AM.


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