Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Tanner_IST
Contributor
Contributor

Write formula in the cell to delete "money icon"

Hi,

I'm getting my monthly credit card expence report from the bank in excel format.

But problem is, expence amount cell has also money icon. e.g. i spent $5,12, it's in cell written as 5,12 usd. As far as i know, cell type changes to "text" from "number" if there's text in the cell.  Then Qlick can't sum the expences.

How can i write a formula to clean money icon in cell ? Or is there any other method you use ?

thanks,

Labels (1)
4 Solutions

Accepted Solutions
Ravi_Nagmal
Contributor III
Contributor III

@Tanner_IST Try using Num() function in load script or use subfield() function to exclude text from column

View solution in original post

anat
Master
Master

can you try below script

LOAD a,Num(Replace(a,'$','')) as a1;
load * Inline [
a
$512
$123

];

View solution in original post

Ahidhar
Creator III
Creator III

try this

load replace(replace(amount,',',''),'$','') as amount;
load * Inline
[
amount
"$5,12"
"$10,12"
];

View solution in original post

vinieme12
Champion III
Champion III

use KeepChar() to keep only numbers and decimal separator, as below

tab:
load keepchar(sales,'0123456789,') as sales Inline [
sales
$5,12
5,12
];

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
Ravi_Nagmal
Contributor III
Contributor III

@Tanner_IST Try using Num() function in load script or use subfield() function to exclude text from column

anat
Master
Master

can you try below script

LOAD a,Num(Replace(a,'$','')) as a1;
load * Inline [
a
$512
$123

];

Ahidhar
Creator III
Creator III

try this

load replace(replace(amount,',',''),'$','') as amount;
load * Inline
[
amount
"$5,12"
"$10,12"
];

vinieme12
Champion III
Champion III

use KeepChar() to keep only numbers and decimal separator, as below

tab:
load keepchar(sales,'0123456789,') as sales Inline [
sales
$5,12
5,12
];

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.