IF

singingsister

Board Regular
Joined
Jun 13, 2006
Messages
145
I have a sales spreadsheet of orders broken down into areas of the country (ie GB1 is one part of the UK, GB2 another and so on).

This is how the spreadsheet looks...

Area Customer Week 37 week 38 week 39
GB1 J Bloggs £55 £564.00
GB2 M Smith Valve £246.00
GB1 Times Paper £1115.08
GB3 xyz £489.61 £46.84

What I want to do is to total all orders placed for each area
I'm sure it's something like IF... but I'm not sure.

Can someone help me?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I'm using
=sumproduct((a2:$212)=a219*$c$2:$f$212)

a2 to 212 is where the area code lies,

a219 is the cell with GB1 that it needs to put the answer next to
c2 to f212 is where the weeks are

it doesn't like the "a2" part of the formula.

also, why does the formula have the * in? What does that do?
 
Upvote 0
If that really is the formula then part of the problem is that you are not giving the column in the first part ie:

a2:$212

should be:

$A$2:$A$212

Also there are parentheses put in incorrect places:

=sumproduct(($a$2:$A$212=a219)*$c$2:$f$212)

The * is the multiplication operator (which I'm sure you knew). So it is being used to multiply the two arrays together.
 
Upvote 0

Forum statistics

Threads
1,214,798
Messages
6,121,635
Members
449,043
Latest member
farhansadik

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top