Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2006

Tip: Looking for answers? Try searching our database.

sumif and range validation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
c991257 - 21 Aug 2006 21:07 GMT
Hi.

I need to sum some numbers and all these are linked to accounts.

Lets say I have accounts in column a:

4001
4002
..
4998
4999

and I want to sum values from column b in groups ranging from eg.
4230-4239, where the boundries of these ranges are defined elsewhere.

The accounts are ussually ground in 10s, i.e. from 4230 to 4239 is
related to the same "thing".

=sumif(col a, Rangeproblem, col b)

How do I solve the range problem?

/Møller

Signature

c991257

Peo Sjoblom - 21 Aug 2006 21:14 GMT
A guess

=SUMIF(A:A,">=4230",B:B)-SUMIF(A:A,">4239",B:B)

Signature

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)

> Hi.
>
[quoted text clipped - 19 lines]
>
> /Møller
c991257 - 22 Aug 2006 16:58 GMT
That would be a sloution, but I would prefer to take the range ends fro
two separate cells. Something like
=sumif(A:A, and(A:A>=C1,A:A<=C2), B:B)

any ideas

--
c99125
Peo Sjoblom - 23 Aug 2006 04:50 GMT
You can't do that with SUMIF unless you use 2007 and then there is a new
function called SUMIFS, nevertheless you can use

=SUMPRODUCT(--(A1:A10000>=C1),--(A1:A10000<=C2),B1:B10000)

note that you cannot use the whole column so you need to specify the range

Signature

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)

> That would be a sloution, but I would prefer to take the range ends from
> two separate cells. Something like
> =sumif(A:A, and(A:A>=C1,A:A<=C2), B:B)
>
> any ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.