# Simple If statements

#### ranger35603

##### New Member
I'm trying to make spreadsheet to log my wife and mine medical bills. In column H we list our name. In column G we list the amount of the bill. How do I write a formula to first reference the name in column H and sum the bills? Example if column H says Mary...then add the bill shown in column G. I want to create a sum total for Mary and a separate cell reference total for myself. Pretty simple > I can't figure it out.

### Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try,

=SUMIF(NameRange,"Mary",RangeToSum)

It worked! Thank you! I tried for almost 1.5 hours on my own and now got this "fixed" in minutes!

Replies
2
Views
300
Replies
1
Views
289
Replies
1
Views
650
Replies
4
Views
402
Replies
8
Views
239

1,203,111
Messages
6,053,569
Members
444,673
Latest member

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