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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi

Something like this:

Excel Workbook
ABCDE
1AreaCustomerWeek37week38week39
2GB1JBloggs55564.00
3GB2MSmithValve246.00
4GB1TimesPaper1,115.08
5GB3xyz489.6146.84
6
7
8GB11,734.08
9GB3536.45
Sheet2
 
Upvote 0
afraid i can't download anything to work laptop so can't use HTML maker.

richardschollar has it right tho....I'm going to give a go what he suggested.
 
Upvote 0
=SUMIF(RANGE, CRITERIA, SUM RANGE)
RANGE = The areas GB1, GB2 etc.
CRITERIA = which area you are summing for ex GB1
SUM RANGE = the week that you want to add up

Hope this helps
Chrysti
 
Upvote 0
chrysti,

i don't get the sum range bit....i need to add up (for example) all the GB1 orders on all weeks on the spreadsheet - what goes in the sum range bit?
 
Upvote 0
SUM RANGE = the column that you want to add together. If you want week 36 in column D then you would select D1:D100 or whatever you have data in that you want to sum. This is where the other pieces of the forumla look it...basically it says if I am GB1 and I have sales in Column D add me to any other cell that is GB1 with sales in Column D.

Hope this helps...just an FYI make sure that you RANGE and SUM RANGE are the same...if your RANGE is from A1:A100 then your SUM RANGE has to be D1:D100 if you start or end in a different cell count then it throws off the results.

You just repeat the formula for each week

Chrysti
 
Upvote 0
Chrysti

thanks - but the thing is I want to add all weeks up together - not seperately. So for example week 36 to week 39.
 
Upvote 0
=sumif(A1:A100,"GB1",B1:B100)+sumif(A1:A100,"GB1",C1:C100)+sumif(A1:A100,"GB1",D1:D100)+sumif(A1:A100,"GB1",E1:E100)

This would be the easiest way to use the SUM IF formula to do what you want

Chrysti
 
Upvote 0
nope it doesn't work!

The column with the area in is A4 through to A216, the column with the customer name (not needed for figures as only broked down by area) is B4 to B216, and the weeks with the values of orders placed for each customer is C,D,E and F 4 to 216 (weeks 36 to 39).
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,928
Members
449,094
Latest member
teemeren

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