Summing a Column Containing Text

adamzee

New Member
Joined
Apr 12, 2015
Messages
9
Hi,
I have a table which looks similar to below. My question is I would like to create a calculated field which sums the question "How many items of POS", but due to the other responses containing text I am having difficulty doing this. Any help would be appreciated.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Shop[/TD]
[TD]Question[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]West[/TD]
[TD]Who did you speak to?[/TD]
[TD]Manager[/TD]
[/TR]
[TR]
[TD]West[/TD]
[TD]Was point of sale displayed?[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]West[/TD]
[TD]How many items of POS?[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]East[/TD]
[TD]Who did you speak to?[/TD]
[TD]Assistant Manager[/TD]
[/TR]
[TR]
[TD]East[/TD]
[TD]Was point of sale displayed?[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]East[/TD]
[TD]How many items of POS?[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]South[/TD]
[TD]Who did you speak to?[/TD]
[TD]Manager[/TD]
[/TR]
[TR]
[TD]South[/TD]
[TD]Was point of sale displayed?[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]South[/TD]
[TD]How many items of POS?[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]North[/TD]
[TD]Who did you speak to?[/TD]
[TD]Manager[/TD]
[/TR]
[TR]
[TD]North[/TD]
[TD]Was point of sale displayed?[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]North[/TD]
[TD]How many items of POS?[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
So if the result of Sum in your sample would be 20.
Use this formula:
Put this formula in say A1
=SUMIFS(C1:C10,B1:B10,E1)
Put *Pos* in cell E1
Your result will be in A1
 
Upvote 0
If you're wanting a PowerPivot measure to convert text to numbers and sum, this is a starting point.
Code:
=
SUMX (
    'Table',
    IFERROR ( VALUE ( 'Table'[Result] ), BLANK () )
)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,115
Messages
6,176,466
Members
452,728
Latest member
mihael546

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