Sum Pound sterling (out of Pounds and Euros)

Pastafarian

New Member
Joined
Feb 21, 2012
Messages
30
Hi all,

Haven't found anything like this posted before, so I had to post it.

Im looking for a way to sum the Britisch pounds sterling from a column which consists out of Pounds and Euro's in Excel (not VBA).

Example:
£ 3050,00
€ 630,54
£ 2300,00
£ 4500,50
€ 219,00
€ 7853,86
€ 234,63
€ 421,11

Total Pound sterling: £9850,50

Any help would be appreciated ;)
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
In column B put 1 against the GBP numbers and leave the cells next to the Euro numbers blank. Then try:

=SUMPRODUCT(A1:A8,B1:B8)
 
Upvote 0
Thanks for your reply.

The aim is to get it to work automatically, because it is part of a 'invoice-tool'.
Therefore im looking for a way to automatically 'detect' the cells with GBP and sum them.
If there is no way to get it to work in Excel, I'd like to know how to do it in VBA.
 
Upvote 0
With a UDF in a standard module

Code:
Function SumPound(r As Range) As Double
Dim c As Range
For Each c In r
    If c.NumberFormat Like "*£*" Then SumPound = SumPound + c.Value
Next c
End Function
Excel Workbook
AB
1 3,050.009,850.50
2 630.54
3 2,300.00
4 4,500.50
5 219.00
6 7,853.86
7 234.63
8 421.11
Sheet6


[/B]
http://www.excel-jeanie-html.de/index.php?f=1
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,825
Members
449,096
Latest member
Erald

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