LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mik Mik is offline
external usenet poster
 
Posts: 42
Default Sum data, depending on cell content

Hello,

I am looking for some assistance.
Please see the following example:-

Col A Col B Col C Col D
1 apple 0.10 0.10
2 pear 0.15 0.30
orange 0.15
3 banana 0.20 0.20
4 kiwi 0.22 0.22

Lets assume that Column A is a receipt number, and Column B is product
purchased, and Column C is the unit cost, and Column D is the total
cost for that particular receipt.

I want to sum the applicable contents of column C, depending on the
value of Column A.

This I find simple, however I have the following problem.

If somebody purchases multiple items, i wish to display the receipt
Number only once for their transaction, and will not be displayed
against each item they purchased.
So, as per the following example, receipt 2 (Column A) contained 2
purchases each costing 0.15 (x2).
So, i want to show the sum of 0.15 + 0.15 in the appropriate row of
Column D

The purchaser could buy any number of items, so how do i sum this
value, when he could buy anything between 1 or 10 items?

Thanks in advance,

Mike

 
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
copy comment content to cell content as data not as comment Lilach Excel Discussion (Misc queries) 2 June 21st 07 12:28 PM
how do i change cell background colour depending on its content? demble Excel Discussion (Misc queries) 2 May 2nd 07 05:50 PM
Copy content of cell to another depending on value of third cell(between worksheets) Zeljko Milak Excel Worksheet Functions 2 July 14th 06 07:17 PM
changing the colour of cells depending on the content. johnny.exe Excel Discussion (Misc queries) 3 January 26th 06 09:41 AM
Changing named range reference depending on a cell's content cparaske Excel Discussion (Misc queries) 1 July 29th 05 07:06 PM


All times are GMT +1. The time now is 07:49 PM.

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

About Us

"It's about Microsoft Excel"