Hi every one
I need help to seperate rows from a worksheet which contains partial names in column A
Sampl file is attched. I want to seperate all rows from Sheet-1 to Sheet-2 containing words as shown in sheet-2
Waiting your response with thanks
Hi every one
I need help to seperate rows from a worksheet which contains partial names in column A
Sampl file is attched. I want to seperate all rows from Sheet-1 to Sheet-2 containing words as shown in sheet-2
Waiting your response with thanks
This sounds like a case for "Advanced Filter"
See this link
Filter by using advanced criteria
I have set up and executed an example in "Sheet1 (2)"
With 2003 I think you might struggle with formula due to nesting limitations.
See if the Example on "Sheet2" is anything Like what you need, it only works for one condition.
Select from the dropdown in C3 to see the results.
Column A (Row) can be hidden with the Grouping Button.
Hope this helps.
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
Possibly...Please Login or Register to view this content.
Thanks you very much but I think that i could not tell you proper requriement
I want to select / copy / seperate only thoses rows which contains specific words like: CEFUROXIME, SODIUM, AXETILE and so on
Remaining rows are not required to copy / seperation
Thanks in advance
My advice to you is to learn how Advanced Filter works, it's easy to give you a macro to solve your problem, but I feel you will not benefit from this.
For example with the workbook provided in Post #2
Add a new sheet ("Sheet3")
Then add and run this macro
However as "Sheet1 (2)" was set up this only filters for whole words in the strings.Please Login or Register to view this content.
e.g. in B3 we have
This returns =* SODIUM * this is what the advanced filter looks for, but you have entries that contain SODIUM:STERILE and they will be ignored.Please Login or Register to view this content.
To include these rows we would need
In B3Then you have entries that contain CEFTRIAXONE:SODIUM:STERILE and they will be ignored.Please Login or Register to view this content.
So to include these ...
In B3but this will include any entries that have DISODIUM in the string, would this be correct?Please Login or Register to view this content.
The point I am trying to make is, that often to get the final result that you need, the list will have to be filtered and copied several times and the best way is to use Advanced Filter and Auto filter.
Is this better?Please Login or Register to view this content.
@ dangelor
So what happens if say SODUIM is at the begining or end of the string?
You will need
now you'll miss SODIUM:STERILE and CEFTRIAXONE:SODIUM:STERILE .Please Login or Register to view this content.
VBa will become very messy!
See post #5 for reasons why, remember that this applies to all the searchwords
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks