Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Adding Qty based on Item

Hi I have sorted a worksheet on items.. and beside next to items i have
qty.. I would like to add the qty based on item numner of description (i have
both) at the same time i don't want to delete any data.. Any suggestion

E.g
Bread 10
Bread 10
Bread 10
Soap 5
Soap 5

End result
Bread 10 30
bread 10
bread 10
Soap 5 10
Soap 5

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Adding Qty based on Item

One way:

C1: =SUMIF(A:A,A1,B:B)

Copy down as required.

If you only want the first item in a sorted list to show the sum, try

C1: =SUMIF(A:A,A1,B:B)
C2: =IF(A2<A1,SUMIF(A:A,A2,B:B),"")

and copy C2 down as far as necessary.

You may also want to take a look at the Data/Subtotals function.



In article ,
"Nagar" wrote:

Hi I have sorted a worksheet on items.. and beside next to items i have
qty.. I would like to add the qty based on item numner of description (i have
both) at the same time i don't want to delete any data.. Any suggestion

E.g
Bread 10
Bread 10
Bread 10
Soap 5
Soap 5

End result
Bread 10 30
bread 10
bread 10
Soap 5 10
Soap 5

Reply
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
Adding a pre-fix to each item in a cell nasadell Excel Worksheet Functions 1 April 15th 09 10:51 PM
Adding item in listbox volabos Excel Worksheet Functions 0 December 3rd 07 11:47 AM
Adding item in listbox volabos Excel Worksheet Functions 0 December 3rd 07 11:27 AM
adding a,b,c,etc to end of item in call RHD3 Excel Discussion (Misc queries) 4 August 28th 06 11:18 PM
Problem with adding an item RPIJG[_36_] Excel Programming 8 June 10th 04 11:40 PM


All times are GMT +1. The time now is 07:39 AM.

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

About Us

"It's about Microsoft Excel"