LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default formula locates common data in a cell and drops them in other

One approach using non-array formulas ..

Assume source data in Sheet1, cols A to G, from row1 down.
The key col is col G as described.

In Sheet2,

Put in A1:
=IF(ISNUMBER(SEARCH("HYPER",Sheet1!G1)),ROW(),"")

Put in B1:
=IF(ROW()COUNT($A:$A),"",INDEX(Sheet1!A:A,SMALL($ A:$A,ROW())))
Copy B1 across to H1. Select A1:H1, fill down to cover the max expected
extent of data in Sheet1's col G. Cols B to H will return the required
results, ie the lines for "HYPER" from Sheet1's cols A to G, all neatly
bunched at the top.

Now, to propagate .. just make a copy of Sheet2.

In the copy, change the formula in A1 to:
=IF(ISNUMBER(SEARCH("AA",Sheet1!G1)),ROW(),"")
Copy A1 down. No change needed to formulas in cols B to H. Cols B to H will
now return the lines for "AA" from Sheet1's cols A to G.

Just repeat the sheet copy n change for the formulas in col A for the rest
of the required captures: "PR", etc.

Note that SEARCH is not case sensitive. If you need it case sensitive,
replace SEARCH with FIND in the formulas for col A.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

 
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
Formula to pick out common parts of a cell and drop them in new sh Barry Walker Excel Discussion (Misc queries) 0 August 14th 07 02:50 PM
How can I insert the tab name into a cell in a different shee... prumble Excel Discussion (Misc queries) 1 July 5th 06 05:26 PM
Combining rows of data that have one cell in common J. Gutierrez Excel Discussion (Misc queries) 0 November 22nd 05 03:20 PM
Hyperlink Locates file regardless of it's location AC Excel Discussion (Misc queries) 1 October 5th 05 11:19 PM
Copy Formula But Keep 1 Common Cell Towmech Excel Discussion (Misc queries) 3 December 18th 04 12:09 AM


All times are GMT +1. The time now is 02:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"