#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default Text function

i have a database which i need to extract the supplier name and they are not
in same order for example

RPO-09393-Supplier AAA
980-Supplier BBBBBB
AHU-OIJ-JUH-Supplier CC

As you can see the suppliers name are always at the back, how to build the
formula just to extract the supplier name (different lenght) that always at
the back.

Thanks
Howard
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Text function

=TRIM(RIGHT(SUBSTITUTE(A1,"-",REPT(" ",99)),99))


"Howard" wrote:

i have a database which i need to extract the supplier name and they are not
in same order for example

RPO-09393-Supplier AAA
980-Supplier BBBBBB
AHU-OIJ-JUH-Supplier CC

As you can see the suppliers name are always at the back, how to build the
formula just to extract the supplier name (different lenght) that always at
the back.

Thanks
Howard

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Text function

If there is **always** a dash in front of the supplier's name (as you show)
and if your supplier's name **never** has a dash in it, then you can use
this formula...

=TRIM(RIGHT(SUBSTITUTE(A1,"-",REPT(" ",99)),99))

--
Rick (MVP - Excel)


"Howard" wrote in message
...
i have a database which i need to extract the supplier name and they are
not
in same order for example

RPO-09393-Supplier AAA
980-Supplier BBBBBB
AHU-OIJ-JUH-Supplier CC

As you can see the suppliers name are always at the back, how to build the
formula just to extract the supplier name (different lenght) that always
at
the back.

Thanks
Howard


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Text function

If you do not want the word "Supplier" try this:

=MID(A6,FIND("er ",A6)+3,99)

HTH
Regards,
Howard

"Howard" wrote in message
...
i have a database which i need to extract the supplier name and they are
not
in same order for example

RPO-09393-Supplier AAA
980-Supplier BBBBBB
AHU-OIJ-JUH-Supplier CC

As you can see the suppliers name are always at the back, how to build the
formula just to extract the supplier name (different lenght) that always
at
the back.

Thanks
Howard



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
using a conditional suffix in text function format syntax=text(value,format_text) Brotherharry Excel Worksheet Functions 1 January 13th 09 03:03 PM
Can Text Function change output text color? epiekarc Excel Discussion (Misc queries) 1 December 31st 08 02:58 AM
Advanced text function (combining text) Johan[_2_] Excel Worksheet Functions 2 March 27th 08 10:05 PM
Using Concatenate function to generate text in Text Box Mary S. Charts and Charting in Excel 1 December 14th 05 08:55 PM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM


All times are GMT +1. The time now is 02:16 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"