Sumproduct with this data? Values with text

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
785
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have data in the following format and want to sumproduct but not sure how to trim out the text

12,29 may also need changing to 12.29

CostQuantity
EUR 12,292
EUR 11,056
EUR 11,153
EUR 11,151
EUR 2,162
EUR 5,502
EUR 5,501
EUR 5,504
EUR 13,9725
EUR 16,922
EUR 27,986
EUR 31,971

Expected result should be
761.24

Formula only possible?

Any help appreciated
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Like this?

20 11 05.xlsm
ABCD
1CostQuantity
2EUR 12,292761.24
3EUR 11,056
4EUR 11,153
5EUR 11,151
6EUR 2,162
7EUR 5,502
8EUR 5,501
9EUR 5,504
10EUR 13,9725
11EUR 16,922
12EUR 27,986
13EUR 31,971
SUMPRODUCT
Cell Formulas
RangeFormula
D2D2=SUMPRODUCT(--SUBSTITUTE(MID(A2:A13,5,20),",","."),B2:B13)
 
Upvote 0
@Peter_SSs

Works thankyou :)

But 1 issue

If my data ends at row 117 for example and I use

=SUMPRODUCT(--SUBSTITUTE(MID(A2:A10000,5,20),",","."),B2:B10000)

It outputs as #Value

How would I make it always work to last row?
 
Upvote 0
Perfect
Thanks for the help :)
You're welcome. Thanks for the confirmation. :)

BTW, I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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