Multi criteria & return sum

AronTravis

New Member
Joined
Feb 20, 2012
Messages
2
Hi there,

I am seeking a solution to my problem as per below:

I have a sales rep spreadsheet of products sold, quantities, rep name etc & I am seeking a formula to search column A3:A400 [Date Column] for a period of time (I.e. 13 Feb - 19 Feb 2012), search column B3:B400 [State Column] for the state (I.e. QLD), search column J3:J400 [Product Column] for a specific product (I.e. "Bun") and if these conditions are met then return the sum of all matching rows from M3:M400 [Product Weight Column]

I hope someone is able to provide some insight into this query as I'm generally quite strong with Excel formulae, however cannot produce this for the life of me!


Thanks,
Aron
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Is there any reason you don't want to do this with auto filters turned on and a subtotal formula in M401: =subtotal(9,M3:M400)?

Another approach is to use Microsoft Query - if you're interested let me know.
 
Upvote 0
Thanks for the quick reply...

I'm hoping to find a formula as the spreadsheet is distributed among sales reps who send the spreadsheet back weekly.

My aim is to lock hidden tabs which I can then unlock, view and gain a quick snapshot of the summarised data in a graph/chart.

The spreadsheet data can be customised based on set promotions. So I don't mind spending a little time to make sure this works fluently.
 
Upvote 0
Excel Workbook
ABCDEFGHIJK
113 Feb 2012
219 Feb 2012QldResult30Bun
3
4DateStateProductWeight
505 Feb 2012QldBun22
610 Feb 2012QldBun24
715 Feb 2012ABCBun26
817 Feb 2012QldXYZ28
919 Feb 2012QldBun30
1021 Feb 2012ABCBun32
1a
Excel 2003
Cell Formulas
RangeFormula
D2=SUMPRODUCT(--(A5:A310>=A1),--(A5:A310<=A2),--(B5:B310=B2),--(J5:J310=J2),(K5:K310))


Try SumProduct

I put the criteria and result in the first two lines and I used Column K for the weight so the info could be copied to the message area. Edit ranges and columns to actual.

If you prefer, you can enter the criteria within the formula.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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