Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
austi82110
 
Posts: n/a
Default Formula to look up left of "." ?


Hi,

Anyones suggestions on this would be greatly appreciated.

I have a dataset that is in this format

997.46 USD
89.87 USD
3966.40 USD

I need to get an output from excel in another column that has

997
89
3966

I believe i should be using a combinations of the LEN and FIND
functions, but I have been unsuccessful. Any Ideas? Thanks:)


--
austi82110
------------------------------------------------------------------------
austi82110's Profile: http://www.excelforum.com/member.php...o&userid=30080
View this thread: http://www.excelforum.com/showthread...hreadid=497607

  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Formula to look up left of "." ?

Try

=TRUNC(SUBSTITUTE(A1,"USD",""))


--

Regards,

Peo Sjoblom


"austi82110" wrote
in message ...

Hi,

Anyones suggestions on this would be greatly appreciated.

I have a dataset that is in this format

997.46 USD
89.87 USD
3966.40 USD

I need to get an output from excel in another column that has

997
89
3966

I believe i should be using a combinations of the LEN and FIND
functions, but I have been unsuccessful. Any Ideas? Thanks:)


--
austi82110
------------------------------------------------------------------------
austi82110's Profile:

http://www.excelforum.com/member.php...o&userid=30080
View this thread: http://www.excelforum.com/showthread...hreadid=497607



  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Formula to look up left of "." ?

One way:

=INT(SUBSTITUTE(UPPER(A1)," USD",""))



austi82110 wrote:

Hi,

Anyones suggestions on this would be greatly appreciated.

I have a dataset that is in this format

997.46 USD
89.87 USD
3966.40 USD

I need to get an output from excel in another column that has

997
89
3966

I believe i should be using a combinations of the LEN and FIND
functions, but I have been unsuccessful. Any Ideas? Thanks:)

--
austi82110
------------------------------------------------------------------------
austi82110's Profile: http://www.excelforum.com/member.php...o&userid=30080
View this thread: http://www.excelforum.com/showthread...hreadid=497607


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
Vito
 
Posts: n/a
Default Formula to look up left of "." ?


You can try:

=LEFT(A1,FIND(".",A1)-1)


--
Vito
------------------------------------------------------------------------
Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182
View this thread: http://www.excelforum.com/showthread...hreadid=497607

  #5   Report Post  
Posted to microsoft.public.excel.misc
Vito
 
Posts: n/a
Default Formula to look up left of "." ?


austi82110 Wrote:
Hi,

Anyones suggestions on this would be greatly appreciated.

I have a dataset that is in this format

997.46 USD
89.87 USD
3966.40 USD

I need to get an output from excel in another column that has

997
89
3966

I believe i should be using a combinations of the LEN and FIND
functions, but I have been unsuccessful. Any Ideas? Thanks:)



You can try:

=INT(LEFT(A1,FIND(".",A1)-1))


--
Vito
------------------------------------------------------------------------
Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182
View this thread: http://www.excelforum.com/showthread...hreadid=497607



  #6   Report Post  
Posted to microsoft.public.excel.misc
Cutter
 
Posts: n/a
Default Formula to look up left of "." ?


Assuming you will ALWAYS have the decimal point followed by 2 digits
followed by " USD" then:

=VALUE(LEFT(A1,LEN(A1)-7)) to have your final result numeric

=LEFT(A1,LEN(A1)-7) to have your final result text


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=497607

  #7   Report Post  
Posted to microsoft.public.excel.misc
austi82110
 
Posts: n/a
Default Formula to look up left of "." ?


Thanks for your input!

Ill learn the variations of these formulas now, thanks!


--
austi82110
------------------------------------------------------------------------
austi82110's Profile: http://www.excelforum.com/member.php...o&userid=30080
View this thread: http://www.excelforum.com/showthread...hreadid=497607

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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Formula problem. Bill R Excel Worksheet Functions 8 November 15th 05 03:19 AM
Question about using the right or left formula Jambruins Excel Discussion (Misc queries) 4 July 8th 05 10:15 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
How do I drag a formula from right to left columns instead of rig. matt Excel Discussion (Misc queries) 3 December 12th 04 01:08 AM


All times are GMT +1. The time now is 07:14 PM.

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

About Us

"It's about Microsoft Excel"