Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default microsoft.public.excel.worksheet.functions

Looking for a way to make the cells in column B based on the contents
of cells in colum A (text string) show as below please?

Column A Column B
1 1
1.1 1
1.1.1 1
1.1.1.1 1
10 10
10.1 10
10.1.1 10
10.1.1.1 10
100 100
100.1 100
100.1.1 100
100.1.1.1 100

I'd like to have a formula in each cell in column B that will return
the text string up to the first occurence of the decimal point in
column A but if a decimal point is not found then return the value in
column A anyway.

Hope that makes sense!?!?

Many thanks.

Ian Edmont.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default microsoft.public.excel.worksheet.functions


Ian Edmont wrote:

Looking for a way to make the cells in column B based on the contents
of cells in colum A (text string) show as below please?

Column A Column B
1 1
1.1 1
1.1.1 1
1.1.1.1 1
10 10
10.1 10
10.1.1 10
10.1.1.1 10
100 100
100.1 100
100.1.1 100
100.1.1.1 100

I'd like to have a formula in each cell in column B that will return
the text string up to the first occurence of the decimal point in
column A but if a decimal point is not found then return the value in
column A anyway.

Hope that makes sense!?!?

Many thanks.

Ian Edmont.


Sorry, please ignore this one! Still getting used to posting in Google!

Ian Edmont.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default microsoft.public.excel.worksheet.functions

here's a formula that may do what you want. just drag down the column

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

--


Gary


"Ian Edmont" wrote in message
oups.com...
Looking for a way to make the cells in column B based on the contents
of cells in colum A (text string) show as below please?

Column A Column B
1 1
1.1 1
1.1.1 1
1.1.1.1 1
10 10
10.1 10
10.1.1 10
10.1.1.1 10
100 100
100.1 100
100.1.1 100
100.1.1.1 100

I'd like to have a formula in each cell in column B that will return
the text string up to the first occurence of the decimal point in
column A but if a decimal point is not found then return the value in
column A anyway.

Hope that makes sense!?!?

Many thanks.

Ian Edmont.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default microsoft.public.excel.worksheet.functions

Excellent, thanks Garry. Works a treat.

Ian Edmont.


Gary Keramidas wrote:
here's a formula that may do what you want. just drag down the column

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

--


Gary


"Ian Edmont" wrote in message
oups.com...
Looking for a way to make the cells in column B based on the contents
of cells in colum A (text string) show as below please?

Column A Column B
1 1
1.1 1
1.1.1 1
1.1.1.1 1
10 10
10.1 10
10.1.1 10
10.1.1.1 10
100 100
100.1 100
100.1.1 100
100.1.1.1 100

I'd like to have a formula in each cell in column B that will return
the text string up to the first occurence of the decimal point in
column A but if a decimal point is not found then return the value in
column A anyway.

Hope that makes sense!?!?

Many thanks.

Ian Edmont.


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
Thank you microsoft.public.excel.charting Gklass Charts and Charting in Excel 3 May 8th 08 07:53 PM
microsoft.public.excel.worksheet.functions Ian Edmont Excel Discussion (Misc queries) 3 December 14th 05 09:06 AM
microsoft.public.excel.worksheet.functions Ian Edmont Excel Worksheet Functions 3 December 14th 05 09:06 AM
microsoft.public.excel Matt Silberstein Excel Programming 3 April 6th 05 04:41 PM
Public Functions As Worksheet Available Functions Steve King Excel Programming 3 February 12th 05 07:55 PM


All times are GMT +1. The time now is 02:18 PM.

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"