Results 1 to 4 of 4

Search for text in and then find the catergory associated with it

Threaded View

  1. #1
    Registered User
    Join Date
    09-05-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Search for text in and then find the catergory associated with it

    Hi there everybody, my problem is as follows:

    I'm currently capturing Financial Data for my thesis, specifically on securities. The program that I use to do this, however, splits the data by its Group (Sector),e.g. mining, banking, industrial or insurance. When the data is extracted, if the incorrect sector is in the formula it uses, then the data will appear as blank.While I could extract the data sector by sector, certain/most indices have shares from assorted sectors.



    Financial mumbo jumbo aside ( ;-) ), what I require is that the Category row states the sector that the stock is in. In other words, I want it to find ABL (for example), from Sheet1 B11 in Sheet 2 A1:343 (which has the stocks and there groups) and then find the sector associated with it from sheet 2.

    The main use is that I can use this in the actual cells for the data and associate it with the correct sector.

    For example, right now B12 is =RasFinancial(B$11,$A12,120020026,"S.Africa-Industry",$B$1,$B$4,TRUE,"C",$B$3,1)

    ABL is Africa Bank Limited, a Banking Sector stock, so the data is blank. Changing S.Africa-Industry to "S.Africa-Banking" solves this. So I want to create a IF statement that will allow the detection of the sector and then use the proper formula.

    Something along the lines of =if(B10="industry",=RasFinancial(B$11,$A12,120020026,"S.Africa-Industry",$B$1,$B$4,TRUE,"C",$B$3,1), If(B10="Banking",=RasFinancial(B$11,$A12,120020026,"S.Africa-Banking",$B$1,$B$4,TRUE,"C",$B$3,1), if(B10="insurance",=RasFinancial(B$11,$A12,120020026,"S.Africa-Insurance",$B$1,$B$4,TRUE,"C",$B$3,1), if(B10=mining,=RasFinancial(B$11,$A12,120020026,"S.Africa-Mining",$B$1,$B$4,TRUE,"C",$B$3,1))

    Thanks for all your all, in advance.
    Attached Files Attached Files
    Last edited by Hadoushi; 05-17-2014 at 02:07 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  2. [SOLVED] Search text in cells, find matching text based on list, remove all but one entry
    By adam_mc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2013, 12:50 PM
  3. [SOLVED] VBA to Search a Text String, Find a Value listed in another column and replace the text
    By Jschrod303 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2012, 08:56 PM
  4. Catergory & Sub Catergoy
    By harpscardiff in forum Excel General
    Replies: 3
    Last Post: 02-28-2006, 11:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1