Want to search a word in a column multiple times ????

Hello All,
Want to search a word in column and after that word want to read the values till i encounter blank cell, uptill this i could get the code but then in same column again i have to search for same word and again start reading. 
In short if i encounter word "Name" three times in one column i must start reading after that immediately three times till next very blank cell.
I am attaching code and my .xl file.
Hope anyone could guide me...
Thanks a lot...
pals 
Solved!
Go to Solution.
Attachments:
Untitled 1.vi ‏32 KB
Book12.xls ‏24 KB

Hi Gaurav,
Ya thats what the probelm is that nothing is fixed....  There are six headers and there column number is fixed.
It should take 1st header search in column A if the word "Name"Comes twice it should read twice just below the header Name all the exciting values, then it should go for other Header "Gruop" in Column B and do the same. And this should be done for all six headers.
Eg:
 A             B            C         D      E   F          G  ------ Column number from excel
Group   Number   Name  Rate  IR    FR      Freq   ----- these are headers
 1              3           fgh       23    45    56        78
 2              5           ty        56     67    67        67 
Group   Number    Name   Rate  IR    FR    Freq ---- 2nd set of headers
 4              3            ty           33    56   88      100
Hope that now i am bit clear
thanks a lot...
Pals

Similar Messages

  • How can I search a word in a column and erase all the rows containing that word?

    How can I erase all the rows containing a certain word at once?
    Right now I do it manually : I search the word in a certain column with cmd+f, after that it points out where the word is in different rows. And then I manually erase every row but this takes a lot of time when you have 500 row! There must be a way to select all the rows concerned at once and erase them? Thks!

    assuming this is something you don't do very often you can simply use the search feature to identify instances of the search term, and select the row, delete the row then search again.
    The next level would be to add a new column where you identify that the search term exists in a cell of the row, then you sort by the new column:
    B1=IF(IFERROR(FIND("team", A1,1), 0)>0, "FOUND", "")
    my search term is "team" change yours as needed.
    select B1, copy,
    select Column B, paste
    Now sort:
    Inspect the rows to make sure the rows found are REALLY ones you want to remove.  select the ones you want to remove and delete those rows.

  • Want to Store Arabic Words in NVARCHAR2 Column

    Hello All,
    I have a problem that I am using Visual Basic .Net as front-end Tool, Oracle 9.2.0.6 as back-end and trying to insert a record in NVARCHAR2 Field with Arabic Words using Operating System "Regional & Language Options" but its insertng NULL in Database.
    SELECT * FROM nls_database_parameters
    PARAMETER     VALUE
    8     NLS_CALENDAR     GREGORIAN
    7     NLS_CHARACTERSET     WE8ISO8859P1
    17     NLS_COMP     BINARY
    4     NLS_CURRENCY     $
    9     NLS_DATE_FORMAT     DD-MON-RR
    10     NLS_DATE_LANGUAGE     AMERICAN
    16     NLS_DUAL_CURRENCY     $
    5     NLS_ISO_CURRENCY     AMERICA
    2     NLS_LANGUAGE     AMERICAN
    18     NLS_LENGTH_SEMANTICS     BYTE
    1     NLS_NCHAR_CHARACTERSET     AL16UTF16
    19     NLS_NCHAR_CONV_EXCP     FALSE
    6     NLS_NUMERIC_CHARACTERS     .,
    20     NLS_RDBMS_VERSION     9.2.0.6.0
    11     NLS_SORT     BINARY
    3     NLS_TERRITORY     AMERICA
    13     NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    15     NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    12     NLS_TIME_FORMAT     HH.MI.SSXFF AM
    14     NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZRPlease Help.
    Thanks in Advance.
    Muhammad Waseem Haroon
    [email protected]
    [email protected]
    [email protected]

    Have you tried with SQL*Plus (GUI: sqlplusw.exe) from the same environment ?
    What is the value of NLS_LANG on the front-end ?
    Did you check the OTN NLS_LANG FAQ ?

  • Same columns multiple time in Line - Bar Combo Graph

    Hi,
    i am trying to generate a Line-Bar Graph, where I will have 2 measures "Capacity" & "Utilization Rate" in both Line as well as Bar Format.
    I tried taking theses two columns twice in my criteria and then designing it but it does not show properly (as per the scale) sometime when the scale is modified the Line Graph vanishes.
    Kindly Suggest.
    Regards,
    Jitendra

    <DataLabels Visible='True' Font='Name:Helvetica; Size:14; Style:Bold; Color:Black;' Position='OutsideTop' ShowOnRollover='False' TransparentBackground='False' BGColor='#b2ccb2' BorderType='Thin' BorderColor='#667f66' AlwaysShowDecimalPlaces='False' NumberType='General' UseThousandsSeparator='True' DecimalPlaces='2' NegativeDisplayType='MinusSign' ShowAsPercentageType='None' ShowOneValueOnStacked='False' ShowPercentDecimalPlaces='False' PercentDecimalPlaces='2' WrapWidth='400' FormatString='%_VALUE' TimeFormatString='%m/%d/%y %T' DrillDownHighlightColor='Blue' DrillDownEnable='False' ShowBarZeroValues='False' TopMargin='2' BottomMargin='2' LeftMargin='3' RightMargin='3' UseAbbreviation='True' />
    I've tried using the Position parameter in the example posted above but nothing I try will allow me move the data label centered in the bar versus sitting on top outside of the bar. Any ideas? It seems strange not to have an option of positioning the data labels.

  • COUNT the same column multiple time with 2 different condition

    Hi everyone,
    I have a small query but I don't find the answer. Can anyone help me with this one ? Look at this example:
    WITH T AS (
      SELECT 'a' as Name, 1 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT name,
             COUNT(DECODE(v, 1, 1, null)) OVER (PARTITION BY name ORDER BY v) as v1,
             COUNT(DECODE(v, 2, 1, null)) OVER (PARTITION BY name ORDER BY v) as v2
        FROM T
      ORDER BY 1;This returns :
    NAME V1                     V2                    
    a    1                      0                     
    a    1                      2                     
    b    2                      0                     
    b    2                      1                      But what I need is only one row with the count of 1 and 2 by name. How can I achieve that without using subqueries like (the following query returns the correct output)
    WITH T AS (
      SELECT 'a' as Name, 1 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT t.name,
             (SELECT COUNT(*) FROM T z WHERE z.name = t.name and z.v = 1),
             (SELECT COUNT(*) FROM T z WHERE z.name = t.name and z.v = 2)
        FROM T t
      ORDER BY 1;The table I'm working on has millions of records and with subqueries it takes ages to executes. The one with analytical function takes less than 3 sec.
    Thanks for your help!

    Hi,
    user13117585 wrote:
    Hi everyone,
    I have a small query but I don't find the answer. Can anyone help me with this one ? Look at this example:
    WITH T AS (
    SELECT 'a' as Name, 1 as v FROM DUAL
    UNION ALL
    SELECT 'a' as Name, 2 as v FROM DUAL
    UNION ALL
    SELECT 'a' as Name, 2 as v FROM DUAL
    UNION ALL
    SELECT 'b' as Name, 1 as v FROM DUAL
    UNION ALL
    SELECT 'b' as Name, 1 as v FROM DUAL
    UNION ALL
    SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT name,
    COUNT(DECODE(v, 1, 1, null)) OVER (PARTITION BY name ORDER BY v) as v1,
    COUNT(DECODE(v, 2, 1, null)) OVER (PARTITION BY name ORDER BY v) as v2
    FROM T
    ORDER BY 1;But what I need is only one row with the count of 1 and 2 by name. How can I achieve that without using subqueries Use the aggregate COUNT function instead of the analytic COUNT:
    SELECT   name,
              COUNT(DECODE(v, 1, 1, null))  as v1,
              COUNT(DECODE(v, 2, 1, null))  as v2
         FROM T
    GROUP BY  name
    ORDER BY  name;

  • Need to search for words with similar meaning

    HI,
    I want to search for words which are similar in meaning,
    for example, search with the keyword LIME should give LIME , LEMON etc.
    Can it be done using the inbuilt thesaurus?

    I don't know how similar the example that you provided is to your actual problem.  Synonyms are not the only relations that you can set.  You an also use related terms and hierarchies using broader and narrower terms.  In the following example, I have created citrus as a broader term and created lemon, lime, and orange as narrower terms underneath citrus.  I have them demonstrated how you can query to return all items from the same category that lemon is in, by first finding the broader term citrus above it, then searching for all narrower terms underneath that.  I have included some intermediary results that you don't need to run, just for better understanding of how the query is formed.
    SCOTT@orcl12c> create table test_tab
      2    (test_col  varchar2(60))
      3  /
    Table created.
    SCOTT@orcl12c> insert all
      2  into test_tab values ('lemon')
      3  into test_tab values ('lime')
      4  into test_tab values ('orange')
      5  into test_tab values ('toaster oven')
      6  select * from dual
      7  /
    4 rows created.
    SCOTT@orcl12c> create index test_tab_idx on test_tab (test_col) indextype is ctxsys.context
      2  /
    Index created.
    SCOTT@orcl12c> begin
      2    ctx_thes.create_thesaurus ('test_thes');
      3    ctx_thes.create_relation ('test_thes', 'lemon', 'bt', 'citrus');
      4    ctx_thes.create_relation ('test_thes', 'lime', 'bt', 'citrus');
      5    ctx_thes.create_relation ('test_thes', 'orange', 'bt', 'citrus');
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> variable g_search varchar2(100)
    SCOTT@orcl12c> exec :g_search := 'lemon'
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> select ctx_thes.bt (:g_search, 1, 'test_thes') from dual
      2  /
    CTX_THES.BT(:G_SEARCH,1,'TEST_THES')
    {LEMON}|{CITRUS}
    1 row selected.
    SCOTT@orcl12c> select 'nt(' ||
      2            replace (ctx_thes.bt (:g_search, 1, 'test_thes'), '|', ', 1, test_thes)|nt(')
      3            || ', 1, test_thes)'
      4  from  dual
      5  /
    'NT('||REPLACE(CTX_THES.BT(:G_SEARCH,1,'TEST_THES'),'|',',1,TEST_THES)|NT(')||',
    nt({LEMON}, 1, test_thes)|nt({CITRUS}, 1, test_thes)
    1 row selected.
    SCOTT@orcl12c> select * from test_tab
      2  where  contains
      3            (test_col,
      4            'nt(' ||
      5            replace (ctx_thes.bt (:g_search, 1, 'test_thes'), '|', ', 1, test_thes)|nt(')
      6            || ', 1, test_thes)') > 0
      7  /
    TEST_COL
    lemon
    lime
    orange
    3 rows selected.

  • Search a Word Document for a particular word

    Hi,
    I want to search a Word Document based on a particular word, using Java technology.... Could any one of U suggest me a way out as to how to proceed, if possible with code....
    Thanks and Regards,
    Rajesh.

    POI can read & write Word docs.

  • I have a column in a Numbers document that currently only contains a number--the numbers are different in different columns.  Before each number I want to add the words "Pack Qty."  How would I do this?

    I have a column in a Numbers document that currently contains a number and that number is different in different columns.  I want to add the words "Pack Qty" before each number in the column.  How do I do that?  I'm using Numbers '09 on a brand new Macbook Pro.  Thanks!

    In an adjacent column add the formula:
    ="Pack Qty: "&<CELL>
    where <CELL> is the cell in the same row where the quantity is,
    Like:
    E2="Pack Qty: "&D2
    select, and hold,  the little circle at the bottom right corner of the selction, then drag down

  • Search for any text in column filter on adf table

    Hi,
    I have column filter on adf table where I can search for any text starting with by default.
    For e.g. you have data my name is sam you can search on table column filter by my and you get the results my name is sam
    but I want to search by any word let's say sam and I want to display same result.
    Thank you,
    Savan Shah.

    You probably can use wildcards (% and _ )
    for example %my%
    Dario

  • Can I search for pdf and word documents at the same time in finder?

    I often want to search for more than one file type at a time - for instance pdfs and word docs in a directory, or Jpgs, GIFs, PNGs etc.
    Can I do this in the finder in one go (so I can save it as a folder I can then select when I want to)?
    I tried typing OR between the 'tokens' it creates, but then it just searches for OR - so not as intelligent as one would think?!
    Surely there must be a way to do something as simple as this?
    regards
    Rob

    Forget the whole "tokens" business (I think that is a pretty useless "improvement" to constructing Spotlight searches). Hit command-F to bring up the search window, and set your first criteria, in the example I changed it from the default Kind to Created Date, to keep the number of results manageable. Now hold down the Option key and click on the "+" at the end of the criteria line, it will change to "..." and you get a new criteria line. From the dropdown menu choose "Any" if necessary (this will give you the Boolean OR), then enter what you want in the first sub-head. To get a second sub-head OR criteria click the "+" at the end of the Any line.
    I don't generate many MS Word docs, so I just stopped in the example above after typing Microsoft, since that brought up all the MS anything I have from this year (a couple of Power Point thingies sent to me by friends).
    Francine

  • Search MS Word for Exact Match

    I've got a script that opens an MS Word document, then searches through a directory for each image file (.jpg), then does a find and replace using the filename as the search string, and inserts the image in place of the text it finds. My problem is that
    it's not doing an exact match. This means for example that if it looks for image1.jpg and that text exists in the word document inserts the image in it's place (the text being a placeholder). But if mimimage1.jpg was in place before it then it would insert
    the .jpg there - not doing an exact match.
    Here's the code I've got so far:
    # Get variables from XML file
    $MyDir = Split-Path $MyInvocation.MyCommand.Definition
    # Get settings from variables.xml.
    [xml]$settings = get-content "$MyDir\variables-test.xml"
    # Assign the settings to local variables.
    $SMTP = $settings.Settings.Setting.SMTP
    $port = $settings.Settings.Setting.port
    $from = $settings.Settings.Setting.EmailFrom
    $to = $settings.Settings.Setting.EmailTo
    $subject = $settings.Settings.Setting.Subject
    $body = $settings.Settings.Setting.Body
    $savepath = $settings.Settings.Setting.SavePath
    $docfile = $settings.Settings.Setting.WordDoc
    $XMLpath = "$MyDir\variables.xml"
    [String[]]$strXML=@()
    [xml]$xml = get-content $XMLpath
    $parse_results = New-Object System.Collections.ArrayList
    add-type -AssemblyName "Microsoft.Office.Interop.Word"
    $wdunits = "Microsoft.Office.Interop.Word.wdunits" -as [type]
    $application = New-Object -comobject word.application
    $application.visible = $false
    $document = $application.documents.open($docfile)
    set-variable -name wdGoToLine -value 3 -option constant
    set-variable -name wdGoToAbsolute -value 1 -option constant
    # Create new directory
    $date = (Get-Date -format "dd-MM-yyyy")
    $newdir = $savepath + "archive" + "-" + $date
    New-Item -ItemType directory -Path $newdir
    # Search Word document for filename and insert image
    foreach($file in Get-ChildItem $savepath -Filter *.jpg)
    if ($application.Selection.Find.Text = $file)
    if ($application.Selection.Find.Execute())
    $insertfile = $savepath + $file
    $objSelection = $application.selection
    $objShape = $objSelection.InlineShapes.AddPicture($insertfile)
    $gotoline = $objSelection.GoTo($wdGoToLine, $wdGoToAbsolute,1)
    # Move spreadsheets and images to archive location and cleanup after dfm2xls.ps1 before ending script
    foreach($movexlsx in Get-ChildItem $savepath -Filter *.xlsx)
    $xlpath = $savepath + $movexlsx
    Move-Item $xlpath $newdir
    foreach($movejpg in Get-ChildItem $savepath -Filter *.jpg)
    $imgpath = $savepath + $movejpg
    Move-Item $imgpath $newdir
    # Save document then close application
    $newsave = $savepath + $date + "-report.docx"
    $document.SaveAs([ref]$newsave)
    $document.Close()
    $application.quit()
    At the moment it doesn't do an exact match but I've tried using:
    $MatchWholeWord = $True
    $MatchCase = $False
    and then
    $application.Selection.Find.Execute($MatchWholeWord, $MatchCase)
    But that stopped it from finding any matches. Can anyone help?
    Thanks in advance

    Hi AJ Mellor,
    If you want to replace the words of the .jpg file's name with the picture in word file, this script should be helpful for you to modify your script:
    Hey, Scripting Guy! How Can I Read Words in a Text File and Make Those Same Word Italic in a Word Document?
    Insert pictures in a folder into a Word document (PowerShell)
    In addition, to get the words of the file name instead of the full path name, please refer to the script below:
    $files = Get-ChildItem $savepath -Filter *.jpg
    $words = $files.basename
    foreach($word in $words){
    I hope this helps.

  • How to search a word in a 2d array

    Hi, i'm seeking advice on how to search a word in 2d array. The method will only taking one argument string and will search in row by row, column by column and diagonall down and up. for example, user input String "SEEK" or then the method will have different search pattern to locate the word. Here is the 2d array look like.
    S + K E E S + +
    E + + + + + + K
    E S + + + + + E
    K + E + + + + E
    + + + E + + + S
    + + + + K + + +
    What i've done so far is;
    // this loop is for search SEEK column by column
    public boolean finder(String w){
    for(int j = 0; j < puzzle[0].length; j++) {
    for(int a = 0; a < w.length(); a++) {
    char n = w.charAt(a);
    String r = String.valueOf(n);
    if (puzzle[0][j] != w.charAt(a)) {
    return false
    } else {
    return true;

    read this

  • Search a word in a swf from a different swf

    can u please help me and explain regarding the search and
    highlight using:-
    indexOf();
    Selection.setFocus();
    Selection.setSelection();
    As for example.
    I have several *.swf files.
    chapter1.swf
    chapter2.swf
    chapter3.swf
    search.swf
    Inside chapter1 has many topic. Same thing goes to chapter 2
    and 3. Lets say for example, each chapter contains 3 topics.
    Chapter 1 - Topic 1
    Chapter 1 - Topic 2
    Chapter 1 - Topic 3
    Chapter 2 - Topic 1
    Chapter 2 - Topic 2
    Chapter 2 - Topic 3
    Chapter 3 - Topic 1
    Chapter 3 - Topic 2
    Chapter 3 - Topic 3
    I want to do a search in search.swf. If I search by word.
    Example word "he goes". The result will display the name of the
    chapter and topic in which that word is located.
    Chapter 1 - Topic 2
    Chapter 1 - Topic 3
    Chapter 3 - Topic 1
    If I click on one of it, it will bring me directly to that
    chapter and topic.
    What should I do to accomplish this?
    Thank you in advance.

    did you ever find a solution? I have a similar need.

  • How to search a word in string

    hi all
    tstxt = 'mnr ptds xyz king fox'.
    i want to make a condition..like
    if tstxt contains king.  *
    execute statement.
    endif.
    how can i search the word in string

    Hi,
    You can search like this
    if tstxt CS 'king'. "CS stands for Contains String a relational operator.
    *Execute here
    endif.
    Regards,
    Sesh

  • Highlight words in link column..how to retain case?

    I learned a lot from this thread... Highlight Search results within a linked column ...and I have the solution implemented and working perfectly...almost.
    My query is essentially as follows...
    select foo, bar, replace(upper(PROJECT_NAME),upper(:P2_SEARCH),'<spann style="font-weight: bold; color: red;">' || :P2_SEARCH || '</span>') as PROJECT_NAME_LINK
    from Projects
    where upper(PROJECT_NAME) like '%' || upper(:P2_SEARCH) || '%';
    Without the search and highlight words enabled...the result is essentially...
    foo1 bar1 ABC123
    foo2 bar2 EFG456
    With the search and highlight words enabled...the result for searching on "a" is...
    foo1 bar1 aBC123
    My small remaining issue is that the replaced and highlighted search term is always inserted in the case (upper/lower) that the search term was entered. In contrast, the default method utilized by ApEx seems to be able to retain the case when highlighting the text.
    Any idea how I can retain the case within my highlight words link column?
    Any idea how the ApEx function does this? (maybe the concept can be applied)
    Matt

    I talked to Raj who posted the original solution to my issue in the above referenced thread from 2001.(apparently this forum rendered out some of his posting which made it hard to understand...)
    select decode(instr(upper(emp.ename),upper(:P1_SEARCH)),
    0, emp.ename,
    substr(emp.ename,1,
    instr(upper(emp.ename),upper(:P1_SEARCH)) - 1)
    || '<spann style="color:blue;">' ||
    substr(emp.ename, instr(upper(emp.ename),upper(:P1_SEARCH)),
    length (:P1_SEARCH))
    || '</spann>' ||
    substr(emp.ename, instr(upper(emp.ename),upper(:P1_SEARCH)) + length(:P1_SEARCH) )) my_column_alias
    from emp;
    (be sure to correct the spelling of "spann")
    This solution works great...thanks Raj!
    Matt

Maybe you are looking for

  • Help!! Can't get past this folder icon in the middle of my screen

    I received an external CD driver in the mail and wanted to make sure it would plug in to my laptop, so, with the computer off and unplugged, I plugged in the USB and then unplugged it. Then, I plugged my iBook in, and powered it on. Right after I boo

  • Livecycle Designer ES 8.2 Crashing When Trying to Add Elements

    I've created a form and hit a roadblock. The form is 17 pages long and contains 151 elements. When attempting to add another element the application shows not responding and then eventually crashes.  Worse yet, it corrupts the PDF.  The byte count fo

  • Staging area creation problem

    Hi, We have got media DVDs for R12.1.1 for Linux X86 from Oracle. We copied in the server one by one using cp command. Ans now when we are starting staging creation using these copied DVD's from server, it's giving Invalid Disk is inserted. Please in

  • No Audio with my touch Smart 600

    I have a touch smart 600, and have ran all the diagnostics and updates but it still does not have any sound to it!

  • Tablespace Complete Restore problem.

    Hi Team, I am working on the Oracle 9i tablespace backup & restore operation. For backup I am using the following script. run BACKUP TABLESPACE 'CWMLITE' INCLUDE CURRENT CONTROLFILE FORMAT 'C:\BK\CWMLITE_%d_01'; BACKUP TABLESPACE 'DRSYS' INCLUDE CURR