ExcelSum Column Containing numeric and alpha text

Chris Waller

Board Regular
Joined
Jan 18, 2009
Messages
183
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to create a sum formula that will sum a column which contains a mixture of numeric and numeric an text entries. I am using Excel 2016 and I have a column of financial figures, which I know I can use the =sum function to calculate the total of these figures, however, some of the entries include the text "inc VAT" and "exc VAT". What I would like to do is sum all the "inc VAT" entries all the "exc VAT" entries and create a grand total which is the sum of all three categories. Had I made the Spreadsheet I would have put the text in the next column, however, as this has come from another source and there is a tight deadline, I was wondering if anyone could give any tips?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try:

Book2
ABCDEF
1DataNo textinc VATexc VATTotal
2121111345
32
43
54 inc VAT
65 exc VAT
76
8inc VAT 7
9exc VAT 8
109
11
Sheet4
Cell Formulas
RangeFormula
C2C2=SUM(A2:A20)
D2D2=SUMPRODUCT(IFERROR(--SUBSTITUTE(A2:A20,"inc VAT",""),0))-C2
E2E2=SUMPRODUCT(IFERROR(--SUBSTITUTE(A2:A20,"exc VAT",""),0))-C2
F2F2=SUM(C2:E2)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Eric,

Thanks for your prompt reply. I did try this formula this morning and it did work as you suggested. Great, Kudos to you.
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,850
Members
449,194
Latest member
HellScout

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