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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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,224,787
Messages
6,180,950
Members
453,008
Latest member
GRTMAN

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