SUM ignoring text fields in a non-string of cells

JSC318

New Member
Joined
Jul 17, 2019
Messages
7
Hello,

I am looking to add cell values together, i keep having the value column, an e.g. of what i am trying to add below:

CellPersonDay 1
A1User 1 10
A10User 20
A16User 3Sick
A84User 4Pto
A101User 59
A122User 612

<tbody>
</tbody>

I am trying to add the amount sold on each day (in the above e.g. Day 1), I want the formula to ignore cells with the word Sick or PTO, i can't use SUM or "<>#N/A" because the cells i am adding up are random and not in a grouped together range, I need to be able to drag the formula across as it will eventually cover a full year.

Thank you!
 
Update! I have a solve!

Aggregate replacing the + with ,

:)

=AGGREGATE(9,7,(D6,D15,D24,D33,D42,D51,D60,D69,D78,D87,D96,D105,D114,D123,D132,D141,D150,D159,D168,D177,D186))
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
OK, so why couldn't you just use:

=SUM(D6,D15,D24,D33,D42,D51,D60,D69,D78,D87,D96,D105,D114,D123,D132,D141,D150,D159,D168,D177,D186)
 
Upvote 0
Because some cells contained text, so was returning #value result.

Column AColumn BColumn C
1213sick
5sick11
pto549
7pto5
663
pto
1013
sick96

358
544
pto64
77sick7
89pto
934
0sick4
434
SUM of Red in Column ASUM of Red in Column BSUM of Red in Column C

<tbody>
</tbody>
 
Upvote 0
SUM ignores text and would not give you a #VALUE ! result with that data.
 
Upvote 0

Forum statistics

Threads
1,214,661
Messages
6,120,792
Members
448,994
Latest member
rohitsomani

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