Formula to search for a certain cell in another worbook

Hello everyone 
I've been trying to figure out this for a week now and have come nowhere.
I have to workbooks, lets just call them W1 and W2. I need a formula in W1 that looks for a certain sheet in W2 based on the data in cell B4 in W1. Once the sheet has been found, it has to look for a named range in said sheet in cell B5 wich is in W1.
I haven't found anything yet for this and I am not sure if this is even possible, but if someone could help me with this, I would really appreciate it.   
Thank you. -John

The referred file within INDIRECT must be open.
If you have trouble to create the correct formula syntax:
go into W1 into an empty cell
type a = sign
switch to W2
click into a cell
press Enter
Now you can see the formula in W1, you have to build that string in INDIRECT.
BTW, for closed file and "normal cell references" you can use a macro, have a look here for the DDE function:
http://answers.microsoft.com/en-us/office/forum/office_2010-customize/how-do-i-use-a-variable-for-the-file-name-when/0763d750-d6cc-4f7c-9fb1-c6b0c1de78d0
That did not work for named cells, for that the file must be open and then you can use INDIRECT as shown above.
Andreas.

Similar Messages

  • How to search for a certain cross reference using its name in FM 11?

    How to search for a certain cross reference using its name in FM 11?

    Well, thank you. I am only using Find dialog box. By "name", I'd like to give an example. The background is FM 11 structured. I have an element "xref" which is used to make cross reference. Now In Chapter 1, there is a sentence like "This is an ODU for ...". I made a cross ref of the word "ODU" to its full name "outdoor unit" in Chapter 2 (in the same book). After this, the word "ODU" in the sentence in Chapter 1 will no longer be a plain text. So I no longer can use the find dialog box to search for "ODU" because it is already an xref rather than text. I am not if it's clear.

  • How to search for a certain substring in a big string

    Hi gurus,
    Please help me with this requirement.
    We are waiting for 10.2.0.5.0 for a fix for an xml type cast error due to mixed encoding in the xml string :
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00216: invalid character 0 (0x0)
    So for now, if I encounter the error, I want to extract the court file number (<CourtFileNumber>) from the xml string (CLOB type in PL/SQL) so that I know which file has failed. The xml string is like this (part of it):
    <soap:Body>
         <CaseNotification schemaVersion="4:2" messageProducedDateTime="2008-12-18T09:16:01-06:00" updateUserAccount="SomeUserName" xmlns="http://www.ourpartner.com/TheirXMLSchema/4>
              <NotificationAdminHeader caseNumberKey="77K903003304" caseKey="3336618">
                   <CourtFileNumber>
                        <ID>77-K9-03-003304</ID>
                   </CourtFileNumber>
              <CaseCountyNumber>77</CaseCountyNumber>
    Besides searching the string character by character, is there an easier way to look for the whole phrase "<CourtFileNumber>"?
    Thanks a lot.
    Ben

    SQL> set serveroutput on
    SQL> declare
      2      v_xml  clob;
      3      v_CourtFileNumber varchar2(100);
      4  begin
      5      v_xml := '<soap:Body>' ||
      6               '<CaseNotification schemaVersion="4:2" messageProducedDateTime="2008-12-18T09:16:01-06:00" updateUserAccount="SomeUserName" '||
      7               'xmlns="http://www.ourpartner.com/TheirXMLSchema/4>' ||
      8               '<NotificationAdminHeader caseNumberKey="77K903003304" caseKey="3336618">' ||
      9               '<CourtFileNumber>' ||
    10               '<ID>77-K9-03-003304</ID>' ||
    11               '</CourtFileNumber>' ||
    12               '<CaseCountyNumber>77</CaseCountyNumber>' ||
    13               '</soap>';
    14      v_CourtFileNumber := regexp_replace(v_xml,'.*<CourtFileNumber>(.*)<\/CourtFileNumber>.*','\1');
    15      if v_CourtFileNumber = v_xml then v_CourtFileNumber := null; end if;
    16      dbms_output.put_line('CourtFileNumber = ' || v_CourtFileNumber);
    17  end;
    18  /
    CourtFileNumber = <ID>77-K9-03-003304</ID>
    PL/SQL procedure successfully completed.
    SQL>
    {code}
    SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Searching for a certain  binary tree from another tree........

    I have been struggling for a tree search problem for a good while. Now I decide to ask you experts for a better solution :-).
    Given a binary tree A. We know that every Node of A has two pointers. Leaves of A can be tested by if(node.right = =node). Namely, The right pointer of every leaf node points to itself. (The left pointer points to the node sits on the left side of the leaf in the same depth. and the leafmost node points to the root. I do no think this information is important, am i right?).
    Tree B has a similar structure.
    The node used for both A and B.
    Node{
    Node left;
    Node right;
    My question is how to test if tree B is a subtree of A and if it is, returns the node in A that corresponds to the root of B. otherwise, return null.
    So, the method should look like:
    public Node search(Node rootOfA, Node rootOfB){
    I know a simple recursive fuction can do the job. The question is all about the effciency....
    I am wonderring if this is some kind of well-researched problem and if there has been a classical solution.
    Anyone knows of that? Any friend can give a sound solution?
    Thank you all in advance.
    Jason
    Message was edited by:
    since81

    I'm not too sure if this would help but there goes.
    I think a recursive function will be the easiest to implement (but not the most efficient). In terms of recursive function if you really want to add performance. You could implement your own stack and replace the recursive function with the use of this stack (since really the benefit of recursive function is that it manages its own stack). A non-recursive function with customized well implemented stack will be much more efficient but your code will become more ugly too (due to so many things to keep track of).
    Is tree B a separate instance of the binary tree? If yes then how can Tree B be a subset/subtree of tree A (since they are two separate "trees" or instances of the binary tree). If you wish to compare the data /object reference of Tree B's root node to that of Tree A's then the above method would be the most efficient according to my knowledge. You might have to use a Queue but I doubt it. Stack should be able to replace your recursive function to a better more efficient subroutine but you will have to manage using your own stack (as mentioned above). Your stack will behave similar to the recursive stack to keep track of the child/descendant/parent/root node and any other references that you may use otherwise.
    :)

  • Searching for a Certain iPhone App on Apple iTunes AppStore???

    ok i need to know if Apple AppStore has an iPhone App that Detects Rats & Mice???
    why i ask???
    Last night I Was Sleeping in My Room ok so there are times I Get up in the middile of the night & Have Very Bad Habits of Rocking back & Fourth at night so I Was in The Dark Rocking Back & Fourth on My Bed ok so a Rat or a Mouse came from underneath the Bed & was Sniffing My Leg, I Could feel it's Nose & Whiskers & I Saw it but it was Dark but i saw it even in the Dark but the Minute I Screamed & was calling my Grandmother it ran back underneath the Bed so when My Grandmother came in my room after i woke her up, we did not see The Mouse or the Rat, i moved my bed & everything i did not see anything but I Work in an AMC Movie Theatre & I Know how these Rats & Mice are on how they work & I Don't have a very big Room so it's a Small regular room but the funny part about it is, I Never saw it's Eyes Glow in the dark but i saw it & it was Sniffing My leg & i felt it's Nose & Whiskers???
    so this is why i am asking if they have an iPhone App that Detects Mice & Rats, if Only i had a iPhone App that Detects Rats & Mice just to know if i had them???

    yeah i mean reference material about bed bugs i got it,
    these are the 2 iPhone Apps i have for bed bugs, but i don't have any bed bugs thank god but i have the app to tell me in case something serious mite happen?
    https://itunes.apple.com/us/app/bed-bug-alert/id397206377?mt=8
    https://itunes.apple.com/us/app/bedbugs-101/id411932955?mt=8

  • How can the result of a formula copying the content of a cell to another cell be unlinked from the source cell?

    Numbers on iMac under Maverick.
    For each sheet in a spreadsheet (Numbers file) I have provided a corresponding sheet (to replace it). In the new sheet I want to insert a formula referencing the corresponding cell in the original sheet. I want to be able to delete the original sheet without losing the result in the new sheet. The link has to be broken.
    If the formula referencing the cells in the original sheet returns the resultant data in place of the formula, this will enable me to use this method to work through a largish file (and others like it) with comparative ease. In Excel this would be done, for example, by using Paste Value only (an option in Paste Special). In Numbers, I think it can be done for an entire row by using Insert>Copied Rows (and likewise for a whole column), by choosing Values as opposed to formulas (because that action generates new rows and columns and doesn't overwrite existing data).
    Is it something to do with generating a more complex formula, or pasting a style using the Format menu? Or the Edit>Paste and Match Style?
    It's eluding me.

    Thank you, Ian. That sub-menu is what eluded me all right. It certainly seems to me to be one way I can do this: using the Paste Formula Results sub-menu under Edit. But before I copy the cells as you say, I will have to take several prior steps.
    In the new sheet I have to select the top left cell of the subject range and there enter "=". Then, in the original sheet, I must select the corresponding cell. Returning immediately to the new sheet, I need to drag the cell right to extend the formula to two adjoining two cells. Now I need to drag those three cells to extend the formula to the bottom of my table (quite a number of rows, but the number matches that of the original sheet). Only at this point am I in a position to apply your suggested method: that is, copy what's already selected and use Shift-Command-V to paste the formula's result throughout the range.
    I feel sure that will do it. But if anyone has any further suggestion as to how this could be done less cumbersomely, I would be very happy to hear it before I embark on the task ahead - because that will have to be repeated for another 24 new sheets in a couple of files. Quite a lot of work.
    So, whilst you've helped me materially, a question still remains as to whether some other method might be possible?
    Regards,
    Peter White

  • Spotlight search for TEXT?

    Still on 10.4.9...
    I try searching for a certain WORD within my many documents, but Spotlight can only find the NAMES of files, not WORDS WITHIN the files, at least none within any of my QuarkXpress files...
    I also try Finder>Find, Use the MINUS button to delete all the other criteria, and change the default button from KIND to CONTENTS and type in the word I am looking for... There are no Quark files on the list, even though the Quark document is now actually opened and the certain word I'm looking for is right there...
    Could it be that Spotlight or the Find function do not look into QuarkXpress documents? Or other documents like MSWord?

    Content searches should work with MS Word, but not sure about QuarkXpress.
    You might have luck if you install the QuarkXpress Filter for Spotlight at the bottom of this page:
    http://euro.quark.com/en/products/xpress/xtensions/quark_xt.html

  • ITunes stops reacting after I try searching for a title. Why?

    Got the new version of iTunes today.
    It functions properly until I try searching for a certain title inside my media centre.
    Then it doesn't react at all.
    What's the problem?

    Let's try the following user tip with that one:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • Searching for a type of App in a particular Category ?

    A couple of years ago I complained about the ridiculousty pathetic search facility on the iTunes Store.
    Now I need to search for a certain type of iPad Apps in a particular category, i.e. I want to filter the results.
    I seem to remember Apple brought out a "Power Search" (?) that was supposed to improve the search facility on the store then, but I can't seem to find it now, and I'm not at all certain that it was much of an improvement then anyway !
    Apart from just typing hit and miss words into the little search box, is there any expanded or advanced search facilty on the store that I have missed ?

    Hi Bobsax,
    Looking at other posts over the last couple of years there have been several about the pathetic Search facility, and it seems that the "Power Search" facility just disappeared along the way !!!!
    Presumably it was there in one version of iTunes and not the next ?
    I can't understand Apple's attitude towards this lack of a decent Search. It not as if they don't actively update iTunes.....there seem to be updates at least once a month !
    Being able to filter your Search to a particular category would help.
    It's as if Apple doesn't want you to find what you are looking for ?
    If Apple thinks the existing "Search" is good enough for us to find anything in the iTunes Store, maybe they can make a video tutorial showing us dumb mortals it's hidden magic ?

  • Search for certain Characters within set of Characters - in a field

    Hello -
    I know a search can be made within a field for a word, but I am not to sure, or I don't know how to accomplish this...To do a search in a field for certain characters within a larger set of charcters.
    For example: I would search, in the Call Description field, for DXXXX within CA0001DXXXXYYY or search for LXXXX within CA0001LXXXXYYY, the X is numeric characters and the Y's are Alpha characters. Can crystal accomplish this....
    Thanks for your gracious help....
    G.

    Like I said earlier, this code:
    If instr({database_field}, 'DXXXX') > 0 then "String Found" else "Not Found"
    cannot be used in a Record Selection formula.
    The following code can be used in the Record Selection formula:
    Instr({database field}, "string") > 0
    If you wish to search for 'D4444' in the field and return records where a match is found, you would use:
    Instr({database field}, "D4444") > 0
    -Abhilash

  • Any hint on searching for portal components using any certain LOV ?

    hi,
    does anyone know how to search for all of those portal components which use a certain other component?
    let's make it specific. how can i know which of the portal components (portal reports and forms, content folders, etc) are using any certain LOV?
    will really appreciate any hints.
    with kind regards,
    naqvi

    Thanks... I will am closing this but in case you have some material for me to review on the following, I will appreciate:
    You wrote
    1.
    "You can convert standard cube to real time even if it already has data without loss this data by using program SAP_CONVERT_NORMAL_TRANS (via SE38)."
    --on executing se38, and entering this program, it opened the code and I was stuck not knowing what to do.
    I can make simply ABAP modification but did not know how to copy data from one cube to the other using this program
    2.
    "Via copying data from any other cube using IP functionality (copy function or FOX formula)."
    The RSINPT was simple but I had no clue on this suggestion, any additional info specifically on this will be helpful.
    In general, in real environment with large amoun of data, which method do you use?
    Thanks

  • When searching for an image in Finder on iMac, I found hundreds of images of printers !! All sorts of printer images which I certainly haven't loaded on.I went to Finder, File, Find and Image and there they are, hundreds,if not low thousands of them.

    I was searching for an image on my Imac and when I went to Finder,File,Find and then Image, I found hundreds if not early thousand images of printers ! Amazing in one way but I didn't put them on my machine and don't really want them there.Did they come pre-loaded? Can I delete them safely? Thanks

    Almost certainly, no absolutely not once you start deleting stuff like this that you think is not needed, eventually you'll trash something essential and cause yourself a lot of heartache.
    There are numerous files classed as images, some will be temporary files in browser caches, others system files, others your "real" images, others files which are not really images but appear to be.
    The amount of space of what I presume are essentially icons of printers will will be minimal, lets say these images are  5k in size (I guess they are much smaller?) and there are 1,000 of them, thats only 5Mb. No doubt your disk has multiple gigabytes free, eg thousands of times as much free as you'd save by deleting all of them. So you might gain back an extra 0.0001% disk space*. NOt worth the time, let alone the risk, plus then you'll get into a mindset "hmm, I dont think I can possibly need this 23byte file either I'll delete that as well etc, and then "problem......". 
    Where are the images stored? It may be that at some time you were searching for a new printer and these images are from that exercise (though I doubt you looked at thousands?) in which case they are in your browser cache and you can always delete that through the browser, but that space will be overwritten by other images anyway.
    "If it ain't broke, don't fix it" is a motto to work by with computers.
    *( or, if you really do need the (say) 5MB of disk space back because you are running out, this would only be a very temporary solution and that wont have done you any good)

  • Script to apply cell style after search for paragraph

    Hello,
    can somebody help my do a script to search for all occurences of a paragraph format in tables and then apply a cell style to the enclosing cell for a document.
    Thanks in advance.
    Peter
    BTW Mac InDesign CS 6

    Hi,
    use this:
    var mDoc = app.activeDocument,
    pST = mDoc.paragraphStyles.item("paraStyleName"),
    cST = mDoc.cellStyles.item("cellStyleName"),
    mFound, mParent, count;
    app.findTextPreferences = null;
    app.findTextPreferences.appliedParagraphStyle = pST;
    mFound = mDoc.findText();
    count = mFound.length;
    while (count--) {
         mParent = mFound[count].parent;
         if (mParent.constructor.name == "Cell")
              mParent.appliedCellStyle = cST;
    app.findTextPreferences = null;
    edit paraStyleName and cellStyleName
    Jarek

  • I want to search for two strings of text throughout numerous cells

    I can get a formula to search an individual cell using this:
    =IFERROR((IF((SEARCH(String1,SearchString,1)+SEARCH("String2",SearchString,1))>0 ,"Yes","No")),"No")
    How can I search a bunch of cells at the same time?
    Thanks.

    What do you want to do?  The solution depends on how you want to use the results that you find.  You can also use the fund feature of the Number (<command> + "f")  or the menu item "Edit > Find > Show Find"
    or you can use the filter feature of the reorganize panel:
    Not filtering:
    Filtering
    to open the reorganize panel... click the button in the tool bar OR
    select the menu item "Table > Show Reorganize Panel"

  • ALV enable input for certain cells only

    Hi,
    I wanna to have certain cells in my ALV grid display are ready for input.
    I am using FM 'REUSE_ALV_GRID_DISPLAY'.
    Appreciate for any help.
    Many thanks
    Alia

    HI,
    i am sending you a complete woking code ..you just run it and see the option in the output screen..select any of the check box and hit F8..and there it is.. you can modify the code to meet yur need
    Reward point if it satisfy your needs..
    REPORT ZOBJK1 .
    Use of colours in ALV grid (cell, line and column)            *
    Table
    tables : mara.
    Type
    types : begin of ty_mara,
              matnr         like mara-matnr,
              matkl         like mara-matkl,
              counter(4)    type n,
              free_text(15) type c,
              color_line(4) type c,           " Line color
              color_cell    type lvc_t_scol,  " Cell color
    end of ty_mara.
    Structures
    data  : wa_mara     type ty_mara,
            wa_fieldcat type lvc_s_fcat,
            is_layout   type lvc_s_layo,
            wa_color    type lvc_s_scol.
    Internal table
    data : it_mara     type standard table of ty_mara,
           it_fieldcat type standard table of lvc_s_fcat,
           it_color    type table          of lvc_s_scol.
    Variables
    data : okcode like sy-ucomm,
           w_alv_grid          type ref to cl_gui_alv_grid,
           w_docking_container type ref to cl_gui_docking_container.
    parameters : p_column as checkbox,
                 p_line   as checkbox,
                 p_cell   as checkbox.
    at selection-screen output.
      perform get_data.
      perform fill_catalog.
      if w_docking_container is initial.
        perform create_objects.
      endif.
    *&      Form  create_objects
    form create_objects.
      create object w_docking_container
        exporting
          ratio                       = 40
        exceptions
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          others                      = 6.
      create object w_alv_grid
        exporting
          i_parent          = w_docking_container.
    Field that identify color line in internal table
      move 'COLOR_LINE' to is_layout-info_fname.
    Field that identify cell color in inetrnal table
      move 'COLOR_CELL' to is_layout-ctab_fname.
      call method w_alv_grid->set_table_for_first_display
        exporting
          is_layout                     = is_layout
        changing
          it_outtab                     = it_mara
          it_fieldcatalog               = it_fieldcat
        exceptions
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          others                        = 4.
    endform.
    *&      Form  get_data
    form get_data.
      select * from mara up to 5 rows.
        clear : wa_mara-color_line, wa_mara-color_cell.
        move-corresponding mara to wa_mara.
        add 1                   to wa_mara-counter.
        move 'Blabla'           to wa_mara-free_text.
        if wa_mara-counter = '0002'
        and p_line = 'X'.
    Color line
          move 'C410' to wa_mara-color_line.
        elseif wa_mara-counter = '0004'
        and p_cell = 'X'.
    Color cell
          move 'FREE_TEXT' to wa_color-fname.
          move '6'         to wa_color-color-col.
          move '1'         to wa_color-color-int.
          move '1'         to wa_color-color-inv.
          append wa_color to it_color.
          wa_mara-color_cell[] = it_color[].
        endif.
        append wa_mara to it_mara.
      endselect.
    endform.
    *&      Form  fill_catalog
    form fill_catalog.
    Colour code :                                                 *
    Colour is a 4-char field where :                              *
                 - 1st char = C (color property)                  *
                 - 2nd char = color code (from 0 to 7)            *
                                     0 = background color         *
                                     1 = blue                     *
                                     2 = gray                     *
                                     3 = yellow                   *
                                     4 = blue/gray                *
                                     5 = green                    *
                                     6 = red                      *
                                     7 = orange                   *
                 - 3rd char = intensified (0=off, 1=on)           *
                 - 4th char = inverse display (0=off, 1=on)       *
    Colour overwriting priority :                                 *
      1. Line                                                     *
      2. Cell                                                     *
      3. Column                                                   *
      data : w_position type i value '1'.
      clear wa_fieldcat.
      move w_position to wa_fieldcat-col_pos.
      move 'MATNR'    to wa_fieldcat-fieldname.
      move 'MARA'     to wa_fieldcat-ref_table.
      move 'MATNR'    to wa_fieldcat-ref_field.
      append wa_fieldcat to it_fieldcat.
      add 1 to w_position.
      clear wa_fieldcat.
      move w_position to wa_fieldcat-col_pos.
      move 'MATKL'    to wa_fieldcat-fieldname.
      move 'MARA'     to wa_fieldcat-ref_table.
      move 'MATKL'    to wa_fieldcat-ref_field.
    Color column
      if p_column = 'X'.
        move 'C610'     to wa_fieldcat-emphasize.
      endif.
      append wa_fieldcat to it_fieldcat.
      add 1 to w_position.
      clear wa_fieldcat.
      move w_position to wa_fieldcat-col_pos.
      move 'COUNTER'  to wa_fieldcat-fieldname.
      move 'N'        to wa_fieldcat-inttype.
      move '4'        to wa_fieldcat-intlen.
      move 'Counter'  to wa_fieldcat-coltext.
      append wa_fieldcat to it_fieldcat.
      add 1 to w_position.
      clear wa_fieldcat.
      move w_position  to wa_fieldcat-col_pos.
      move 'FREE_TEXT' to wa_fieldcat-fieldname.
      move 'C'         to wa_fieldcat-inttype.
      move '20'        to wa_fieldcat-intlen.
      move 'Text'      to wa_fieldcat-coltext.
      append wa_fieldcat to it_fieldcat.
    endform.

Maybe you are looking for

  • Can no longer play audio files embedded in a PDF

    I can no longer play embedded audio files in PDFs in version 11 for Windows XP (though I could on an older version). The audio will not play on my Mac either. How do I fix this?

  • Excel in Webdynpro for abap

    Hi Experts, I have excel file (example "http://xxxx/test.xls") with contents. I want to incorporate this excel file into my web dynpro application. For this I used Officecontrol UI element and set the following properties for Officecontrol 1. datasou

  • Problem viewing web service in wsnavigator

    I have a portal project with a working portal service and component (for testing the portal service).  I've followed the documentation <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm">Creating a

  • While loop is not working properly

    Dear all, I have a procedure which takes data form other tables and fill one table. See partial code DECLARE --  WELLS CURSOR c_well IS SELECT * FROM   well where well_s = 3419740 -- Welltest CURSOR c_welltest ( v_well_s NUMBER ) IS SELECT * FROM   w

  • Bank Statements Rolling up to Cocds

    Hi All, I think there is something in the program that posts the bank statement (bai) file, that instructed the intercompany postings for the entities with zero balance accounts.  Some how all the company starting with 4* are rolling into Company Cod