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 / New Users / May 2008

Tip: Looking for answers? Try searching our database.

Adding rows of data based on first column

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dewaynep - 01 May 2008 14:15 GMT
Not sure if I worded that correctly. Here's what I need to do: I have sales
data for a month that is listed individually by date and item number. I need
to go through the entire workbook and find each occurance of each item and
add together the number of items ordered. Here is an example:
Item    TotalOrdered
119    1
121    1
121    1
121    1
182    1
182    1
206    1
206    1
223    1
589    1
589    1
As you can see, item 121 had 3 ordered, 589 had 2 ordered. Is there a
formula I can use to do this automatically? Thanks.
Signature

Excel Noobie

Don Guillett - 01 May 2008 14:22 GMT
Look in the help index for COUNTIF
Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Not sure if I worded that correctly. Here's what I need to do: I have
> sales
[quoted text clipped - 16 lines]
> As you can see, item 121 had 3 ordered, 589 had 2 ordered. Is there a
> formula I can use to do this automatically? Thanks.
Dewaynep - 01 May 2008 14:34 GMT
Thanks Don. I checked Countif, and it looks like would work if "total
ordered" was always 1, but that is not the case. I have to be able to look up
the item number and add the number(s) in column "b" together. Would I still
use countif?
Signature

Excel Noobie

> Look in the help index for COUNTIF
> > Not sure if I worded that correctly. Here's what I need to do: I have
[quoted text clipped - 17 lines]
> > As you can see, item 121 had 3 ordered, 589 had 2 ordered. Is there a
> > formula I can use to do this automatically? Thanks.
Don Guillett - 01 May 2008 14:52 GMT
Your OP said COUNT. If you want to count use countif. If you want to
"add the number(s) in column "b" together" use
=SUMIF(H2:H22,589,I2:I22)
Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Thanks Don. I checked Countif, and it looks like would work if "total
> ordered" was always 1, but that is not the case. I have to be able to look
[quoted text clipped - 25 lines]
>> > As you can see, item 121 had 3 ordered, 589 had 2 ordered. Is there a
>> > formula I can use to do this automatically? Thanks.
 
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.