Simple "if/then" statement has the best of me

AmandaS

New Member
Joined
Sep 20, 2007
Messages
9
Please help! Okay, so I'm inept at being able to attach a screen shot. Scenario is extremely simple though. I'll try to explain.

Column A = Customer Name
Column B = Dollar Amount
Column C = Sales Rep Name

I'm trying to place totals at the bottom of the data, separated by sales agent. So for Sales Rep "Bob", his "Total" box would include only his sales.

So, if C1=Bob, then add B1 to this box...

I'm confused.

Figured out the screen shot!
<a href="http://s53.photobucket.com/albums/g71/amandashank/?action=view&current=ExcelQuestion-1.jpg" target="_blank"><img src="http://i53.photobucket.com/albums/g71/amandashank/ExcelQuestion-1.jpg" border="0" alt="Photobucket"></a>
 
Last edited:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Brilliant, thank you. Okay one more question. Suppose the "Cheryl Total" cell was not there, and I wanted an "Other Total" cell that totaled everything OTHER than Joe or Bob?
 
Upvote 0
There may be a cleverer formula but try

=SUM(B1:B10)-SUMIF(C1:C10,"Bob",B1:B10)-SUMIF(C1:C10,"Joe",B1:B10)

or simply subtract the Bob and Joe totals from SUM(B1:B10)
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,722
Members
449,465
Latest member
TAKLAM

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