Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Came From Chip's web page under first&last
A B C D e.g. China (23) 2 1 =MID(A9,SMALL(IF(MID(" "&A9,ROW(INDIRECT("1:"&LEN(A9)+1)),1)=" ",ROW(INDIRECT("1:"&LEN(A9)+1))),B9),SUM(SMALL(IF( MID(" "&A9&" ",ROW(INDIRECT("1:"&LEN(A9)+2)),1)=" ",ROW(INDIRECT("1:"&LEN(A9)+2))),B9+C9*{0,1})* {-1,1})-1) A B C D China (23) 1 1 =MID(A12,SMALL(IF(MID(" "&A12,ROW(INDIRECT("1:"&LEN(A12)+1)),1)=" ",ROW(INDIRECT("1:"&LEN(A12)+1))),B12),SUM(SMALL(I F(MID(" "&A12&" ",ROW(INDIRECT("1:"&LEN(A12)+2)),1)=" ",ROW(INDIRECT("1:"&LEN(A12)+2))),B12+C12*{0,1 })*{-1,1})-1) Hope it helps Esau "teresa" wrote: I have a list of 100 countries with a bracket and number e.g. China (23) I want to replace the cells so that China (23) China Thanks for your help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to truncate list of meaningful words greater than 15 chars tomeaningful words of 8 chars. | Excel Worksheet Functions | |||
limit # of chars in a cell | Excel Discussion (Misc queries) | |||
sum first 2 chars if 3rd is something... | Excel Discussion (Misc queries) | |||
determine if ea value in a col has more than 20 chars | Excel Discussion (Misc queries) | |||
How to use OLEDB and Reserved Chars | Excel Programming |