#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AFA AFA is offline
external usenet poster
 
Posts: 16
Default Logical Test

I have extracted text data format thus i cant perform any maths calculation
on the data. Thus i tried this logical test to convert the data into number.

cell A cell B cell C
cell D cell E Cell F
4101001 NET SALES/PRODUCTS 172.641 172 641 172,641
4102001 NET SALES/MERCHAND. 641 641 0
6410

Cell C should read as 172,641 and 641. Since the value is text format,
firstly i tried to pull the interger from 172.641 and mod .641 and which
later combine these two result into number and reads as 172,641.

i write this formula on respective cells,
Cell D =INT(+$"Cell C")*1
Cell E =IF(+$C71,(MOD(+$C7,1)*1000))
Cell F= =(+O7&P7)*1 note *1 in formula to convert the text to number

somehow, if the value in cell C is only 641, the result in cell F is 6410.
Anyone can suggest the solution for a formula to suit these 2 situation?
thanks in advance






4102001 NET SALES/MERCHAND. 672



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default Logical Test

One way to convert 172.641(text) to 172,641 (numeric)
=--SUBSTITUTE(A1,".","")
A1 = 172.641
change the cell format to as per your requirement.
Best wishes
Sreedhar
"AFA" wrote:

I have extracted text data format thus i cant perform any maths calculation
on the data. Thus i tried this logical test to convert the data into number.

cell A cell B cell C
cell D cell E Cell F
4101001 NET SALES/PRODUCTS 172.641 172 641 172,641
4102001 NET SALES/MERCHAND. 641 641 0
6410

Cell C should read as 172,641 and 641. Since the value is text format,
firstly i tried to pull the interger from 172.641 and mod .641 and which
later combine these two result into number and reads as 172,641.

i write this formula on respective cells,
Cell D =INT(+$"Cell C")*1
Cell E =IF(+$C71,(MOD(+$C7,1)*1000))
Cell F= =(+O7&P7)*1 note *1 in formula to convert the text to number

somehow, if the value in cell C is only 641, the result in cell F is 6410.
Anyone can suggest the solution for a formula to suit these 2 situation?
thanks in advance






4102001 NET SALES/MERCHAND. 672



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AFA AFA is offline
external usenet poster
 
Posts: 16
Default Logical Test

Hi yshridhar
it is working & many thanks for sharing

"yshridhar" wrote:

One way to convert 172.641(text) to 172,641 (numeric)
=--SUBSTITUTE(A1,".","")
A1 = 172.641
change the cell format to as per your requirement.
Best wishes
Sreedhar
"AFA" wrote:

I have extracted text data format thus i cant perform any maths calculation
on the data. Thus i tried this logical test to convert the data into number.

cell A cell B cell C
cell D cell E Cell F
4101001 NET SALES/PRODUCTS 172.641 172 641 172,641
4102001 NET SALES/MERCHAND. 641 641 0
6410

Cell C should read as 172,641 and 641. Since the value is text format,
firstly i tried to pull the interger from 172.641 and mod .641 and which
later combine these two result into number and reads as 172,641.

i write this formula on respective cells,
Cell D =INT(+$"Cell C")*1
Cell E =IF(+$C71,(MOD(+$C7,1)*1000))
Cell F= =(+O7&P7)*1 note *1 in formula to convert the text to number

somehow, if the value in cell C is only 641, the result in cell F is 6410.
Anyone can suggest the solution for a formula to suit these 2 situation?
thanks in advance






4102001 NET SALES/MERCHAND. 672



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use 'CONTAINS' in an IF Logical Test? MichaelRobert Excel Worksheet Functions 3 April 2nd 23 08:11 PM
Logical test retiredguy New Users to Excel 2 January 27th 07 05:56 PM
logical test Ron Coderre Excel Worksheet Functions 0 August 7th 06 08:02 PM
Logical Test Lance Excel Worksheet Functions 1 March 16th 06 09:26 PM
Logical test Sooraj Excel Discussion (Misc queries) 2 January 25th 05 12:59 PM


All times are GMT +1. The time now is 03:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"