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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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,215,446
Messages
6,124,900
Members
449,194
Latest member
JayEggleton

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