WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

adding values if the same - SUMIF in range of cells?

 
   Home -> Office -> Worksheet Functions RSS
Next:  Formulas aren't updating when values change  
Author Message
Eisaz

External


Since: Nov 17, 2008
Posts: 3



(Msg. 1) Posted: Mon Nov 17, 2008 1:39 pm
Post subject: adding values if the same - SUMIF in range of cells?
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

hiya, i have a small project and i've spent too much time on this already -
can't figure it out myself. What i need to do is to create a formula which
will find the same values in column A and will sum the corresponding to them
values from columns B:E.
this is a sort of result i want to get:
A B C D E F RESULT:
1 A1 1 5 2 3 A1 31
2 B5 2 6 3 3 A2 19
3 C1 3 7 4 3 B1 22
4 A1 4 8 5 3 B5 37
5 B5 5 9 6 3 C1 33
6 C2 6 1 6 3 C2 16
7 A2 7 2 7 3
8 B1 8 3 8 3
9 C1 9 4 0 3

I would appreciate any ideas how to do this. Thanks and regards,
Back to top
Login to vote
Sheeloo

External


Since: Oct 12, 2008
Posts: 964



(Msg. 2) Posted: Mon Nov 17, 2008 2:43 pm
Post subject: RE: adding values if the same - SUMIF in range of cells? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

One way is to
Enter in F1
=Sum(b1:e1)

Then in H1 in the result area (assuming in Col G & H)
=sumproduct(--(A1:A100=G1),(F1:F100))
Change 100 to the last row in your dataset.


"Eisaz" wrote:

> hiya, i have a small project and i've spent too much time on this already -
> can't figure it out myself. What i need to do is to create a formula which
> will find the same values in column A and will sum the corresponding to them
> values from columns B:E.
> this is a sort of result i want to get:
> A B C D E F RESULT:
> 1 A1 1 5 2 3 A1 31
> 2 B5 2 6 3 3 A2 19
> 3 C1 3 7 4 3 B1 22
> 4 A1 4 8 5 3 B5 37
> 5 B5 5 9 6 3 C1 33
> 6 C2 6 1 6 3 C2 16
> 7 A2 7 2 7 3
> 8 B1 8 3 8 3
> 9 C1 9 4 0 3
>
> I would appreciate any ideas how to do this. Thanks and regards,
>
Back to top
Login to vote
Eisaz

External


Since: Nov 17, 2008
Posts: 3



(Msg. 3) Posted: Mon Nov 17, 2008 3:07 pm
Post subject: RE: adding values if the same - SUMIF in range of cells? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

thank you for such a quick response - going to try it now and let you know
how it goes Smile


thanks again
S

"Sheeloo" wrote:

> One way is to
> Enter in F1
> =Sum(b1:e1)
>
> Then in H1 in the result area (assuming in Col G & H)
> =sumproduct(--(A1:A100=G1),(F1:F100))
> Change 100 to the last row in your dataset.
>
>
> "Eisaz" wrote:
>
> > hiya, i have a small project and i've spent too much time on this already -
> > can't figure it out myself. What i need to do is to create a formula which
> > will find the same values in column A and will sum the corresponding to them
> > values from columns B:E.
> > this is a sort of result i want to get:
> > A B C D E F RESULT:
> > 1 A1 1 5 2 3 A1 31
> > 2 B5 2 6 3 3 A2 19
> > 3 C1 3 7 4 3 B1 22
> > 4 A1 4 8 5 3 B5 37
> > 5 B5 5 9 6 3 C1 33
> > 6 C2 6 1 6 3 C2 16
> > 7 A2 7 2 7 3
> > 8 B1 8 3 8 3
> > 9 C1 9 4 0 3
> >
> > I would appreciate any ideas how to do this. Thanks and regards,
> >
Back to top
Login to vote
T. Valko

External


Since: Nov 24, 2006
Posts: 6560



(Msg. 4) Posted: Mon Nov 17, 2008 5:34 pm
Post subject: Re: adding values if the same - SUMIF in range of cells? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try this:

=SUMPRODUCT((A$1:A$9=F1)*B$1:E$9)

Copy down as needed

--
Biff
Microsoft Excel MVP


"Eisaz" <Eisaz RemoveThis @discussions.microsoft.com> wrote in message
news:5199ABB4-F675-4BA4-9579-F92B97FB587C@microsoft.com...
> hiya, i have a small project and i've spent too much time on this
> already -
> can't figure it out myself. What i need to do is to create a formula which
> will find the same values in column A and will sum the corresponding to
> them
> values from columns B:E.
> this is a sort of result i want to get:
> A B C D E F RESULT:
> 1 A1 1 5 2 3 A1 31
> 2 B5 2 6 3 3 A2 19
> 3 C1 3 7 4 3 B1 22
> 4 A1 4 8 5 3 B5 37
> 5 B5 5 9 6 3 C1 33
> 6 C2 6 1 6 3 C2 16
> 7 A2 7 2 7 3
> 8 B1 8 3 8 3
> 9 C1 9 4 0 3
>
> I would appreciate any ideas how to do this. Thanks and regards,
>
Back to top
Login to vote
Max

External


Since: Mar 17, 2004
Posts: 2537



(Msg. 5) Posted: Mon Nov 17, 2008 9:05 pm
Post subject: Re: adding values if the same - SUMIF in range of cells? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

1. Ah, so you multi-posted in .newusers as well. That's not good, pl refrain.
2. You should reply to each and every response that you receive, whether
here or in .newusers. Please see to this. And don't forget to rate each and
every response by pressing the Yes buttons therein from where you reading
this, in MS' webpages.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET