$ amount does not calculate with a space

FXA

Board Regular
Joined
Jan 28, 2023
Messages
71
Office Version
  1. 365
Platform
  1. Windows
My issue is when I copy and paste from my source, that source has no comma in the dollar amount when the dollar amount hits the thousands and above. Is there a way around this?

Formula:

=C5+AK8+AK9+AK10

C5 = Starting Balance

AK8 =SUM(N10:N1809)

AK9 =SUM(L10:L1809)

AK10 =SUM(M10:M1809)


Thank you in advance.
 

Attachments

  • EXCEL_CFmI00cvDJ.png
    EXCEL_CFmI00cvDJ.png
    59.1 KB · Views: 21
Just wanted a formula or code to have this done automatically is all. Guess I'll need to go to the other forum.
you have two people here who are trying to help you. but you won't help them help you.
 
Upvote 0

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.
Just wanted a formula or code to have this done automatically is all. Guess I'll need to go to the other forum.
Does the end user know what to do with a formula?
If you want a formula then try
Excel Formula:
=SUBSTITUTE(N10," ","")+0

As for code as I said all you need to do is record yourself doing the Find and Replace manually and it will give you the code
 
Last edited:
Upvote 0
And I asked if that source data was an excel spreadsheet as well, which you did not answer. If it is, then you have a problem with your source not your workbook.
I had already said it was from another source and that the source data being copied was the issue
 
Upvote 0
Does the end user know what to do with a formula?
If you want a formula then try
Excel Formula:
=SUBSTITUTE(N10," ","")+0

As for code as I said all you need to do is record yourself doing the Find and Replace manually and it will give you the code
I am aware of this method but these are people who have no clue about Excel. Is there a VB way to do this?
 
Upvote 0
I am aware of this method but these are people who have no clue about Excel. Is there a VB way to do this?
As I said you can record it yourself but the code is
VBA Code:
Sub Macro1()
'
' Macro1 Macro
'

'
    Columns("N:N").Replace What:=" ", Replacement:="", LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
        ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2
End Sub
Just wanted a formula or code
Why did you ask for a formula if you didn't want one?
 
Last edited:
Upvote 0
Solution
well, you have two options. Get the folks giving you the source to provide it correctly. or you'll be stuck cleaning their data with one of the two solutions mark gave you if you can't get your end users to do it.
 
Upvote 0
As I said you can record it yourself but the code is
VBA Code:
Sub Macro1()
'
' Macro1 Macro
'

'
    Columns("N:N").Replace What:=" ", Replacement:="", LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
        ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2
End Sub

Why did you ask for a formula if you didn't want one?
I meant a formula to embed in the cells previously without making that extra column then doing a copy n paste ect... but will try this VB Script.
 
Upvote 0

Forum statistics

Threads
1,215,615
Messages
6,125,857
Members
449,266
Latest member
davinroach

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