# Conditional formula execution

#### FlexicareTommy

##### New Member
My companies reporting system gives the most garbage report for analyzing with excel. Rather than spending hours rearranging data to a more Excel friendly format (marco's won't work...I think), I'm wondering if there's an imbedded conditional formula to help out. I've tried a few different ideas, but can't seem to crack this puzzle. To give an overview of the objective, we're trying to create a report to view sales to a given customer by the product category instead lump sum total sales or even individual items. This will allow us to determine if a particular product line is growing or struggling.

The raw data that our inventory system generates looks like this. I used a vlookup to include the category column.
 Customer name product number price qty ext. sale Category ACE 032-22-859 \$20.00 100 \$2,000 032-22 ACE 032-22-789 \$18.00 100 \$1,800 032-22 ACE 032-77-662 \$87.00 100 \$8,700 032-77 ACE 032-77-491 \$82.00 100 \$8,200 032-77 ACE 0044-56 \$79.00 100 \$7,900 0044 ACE 0055-21 \$189.00 100 \$18,900 0055 Billbur 032-77-662 \$87.00 100 \$8,700 032-77 Billbur 032-77-888 \$76.00 100 \$7,600 032-77 Cawlings 032-22-859 \$20.00 100 \$2,000 032-22 Cawlings 032-22-789 \$18.00 100 \$1,800 032-22

<tbody>
</tbody>

On our reports, we want to have one sheet per customer, something that would look like this:

 Customer segment category March sales ACE blades 032-22 formula needed 032-77 formula needed 55-87 formula needed 55-84 formula needed masks 0044 formula needed 0055 formula needed

<tbody>
</tbody>

So essentially what I'm looking for is a kind of conditional sumif() statement. Searching the first column for customer name, if that matches, then performing a sumif() of all records with that customer so I can get the total category sales. Does anyone know a way I could achieve this?

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
If using 2003 or earlier try using SUMPRODUCT. For 2007 and later SUMIFS.

also look into using a Pivot Table

I agree Pivot tables seems to be the most likely option. You could then use the "show report filter pages" option for the different customers.

Replies
4
Views
266
Replies
5
Views
454
Replies
19
Views
506
Replies
8
Views
207
Replies
5
Views
257

1,203,070
Messages
6,053,366
Members
444,658
Latest member
lhollingsworth

### 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