HELP! Sum rows that contain letters

mesa

New Member
Joined
Dec 16, 2009
Messages
12
Hello,

I run a football pick'em league and I need to find a way to sum rows that contain letters. So below is a jpg of my spreadsheet with the sum would come out to 136, but at times I make mistakes and enter the same number twice in a row. So if I had a formula that would sum the numbers in the row and the sum was different than 136 I can find where I made a mistake. The first row would sum the numbers through B2 to Q2 and equal 136. Thank in advance!

Example:
2009NFLSeason.jpg
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try:

=SUMPRODUCT(--MID(B2:Q2,FIND(" ",B2:Q2)+1,255))

It works! Thank you so much.

Since I have you here... ;) I have one more question. With this formula is there anyway it can be modified so when I change the font color to red it will not sum that box?

How I run my league is when a team losses I change the font color to red indicating that the team has lost and the person that picked them will not receive points. So in my example (B2 to Q2) above the total would come to 120 since PIT lost. So, Is there anyway the formula can be modified so when I change the font to red the point will not be calculated into the final product?

Again, THANK YOU so much. If this request can't be fulfilled I understand, you have done so much already! Thank you!

Steven
 
Upvote 0
Was hoping if someone could help me with this forumla =SUMPRODUCT(--MID(B2:Q2,FIND(" ",B2:Q2)+1,255)) to make it only sum black font or exclude red font. Either would be fine.

I tried using ColorIndexOfRange and CountColor operations to modifiy the above formula but with no luck. Not sure if I'm on the right track or not.

Thanks in advance!
 
Upvote 0
A quick thought.
If you put an "x" in front of the text of the losing team and possibly use conditional formatting to colour the cell, a formula building on Andrew's suggestion should work.

The following is an array formula, edit the ranges and enter the formula with Ctrl+Shift+Enter (CSE) not just Enter.

=SUM(IF(LEFT(B2:C2,1)<>"x",--MID(B2:C2,FIND(" ",B2:C2)+1,255)))
 
Upvote 0
A quick thought.
If you put an "x" in front of the text of the losing team and possibly use conditional formatting to colour the cell, a formula building on Andrew's suggestion should work.

The following is an array formula, edit the ranges and enter the formula with Ctrl+Shift+Enter (CSE) not just Enter.

=SUM(IF(LEFT(B2:C2,1)<>"x",--MID(B2:C2,FIND(" ",B2:C2)+1,255)))

I might have to give that a try, but I really want to stay with just changing the font color -- it's what my members are used to. There seem to be a way to do this but reading the link above using the ColorCount function but just can't figure it out :(
 
Upvote 0

Forum statistics

Threads
1,216,124
Messages
6,128,990
Members
449,480
Latest member
yesitisasport

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