# Sales Revenue computation

#### IB40

##### New Member
Is there a SIMPLE way or a macro to compute the YEARLY REVENUE per customer, when the same item is sold to a particular customer at different prices?

Example: Customer in A2 bought Item #1 for \$10, \$12, and \$15 through the year.

The spreadsheet is set up the following way:
A2:A200 = customers
B2:B200 = yearly revenue per customer
C2 = yearly qty ordered by customer A2 for item #1
D2 = yearly qty ordered by customer A2 for item #2
C3 = yearly qty ordered by customer A3 for item #1

This message was edited by IB40 on 2002-10-27 23:52

### Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

#### maxflia10

##### Well-known Member
This should give you an idea, I think this is sort of what you want
Book1
ABCD
1customeritemcost
2a11032
3b112
4a112
5b110
6c111
7a110
Sheet1

But then thinking is not my forte'

#### tgrimes

##### New Member
You may want to consider using a pivot table. Use the wizard and you should have your solution in a matter of minutes.

Replies
4
Views
169
Replies
3
Views
216
Replies
2
Views
1K
Replies
0
Views
185
Replies
2
Views
218

1,191,577
Messages
5,987,399
Members
440,096
Latest member
yanaungmyint

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back