Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

Logical Test

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AFA - 08 May 2008 04:56 GMT
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(+$C7>1,(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
yshridhar - 08 May 2008 06:04 GMT
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

> 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.
[quoted text clipped - 19 lines]
>
> 4102001    NET SALES/MERCHAND.    672
AFA - 13 May 2008 02:56 GMT
Hi yshridhar
it is working & many thanks for sharing

> One way to convert 172.641(text) to 172,641 (numeric)
> =--SUBSTITUTE(A1,".","")
[quoted text clipped - 26 lines]
> >
> > 4102001    NET SALES/MERCHAND.    672
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.