I am trying to extract rows of data that have a certain value in one of the cells in that row and put them on a new sheet. Is there an easy way to do this? PM me at weissc@wes.army.mil.
Thanks,
ImRockDoc
I am trying to extract rows of data that have a certain value in one of the cells in that row and put them on a new sheet. Is there an easy way to do this? PM me at weissc@wes.army.mil.
Thanks,
ImRockDoc
http://home.pacbell.net/beban/
That website offers some user-defined-functions that all inter-relate. The
one you want to use here is VLOOKUPS. It's an array formula. You will need
to copy the code for VLOOKUPS and a few other supporting functions into a
module in your workbook. Copy the code for these functions into a standard module:
VLookups
ArrayCountIf
ArrayDimensions
MakeArray
Then, on sheet2, enter a standard VLOOKUP type formula like this:
=VLOOKUPS("Y",Sheet1!$B$2:$D$10000,3)
When you press Enter, a message will appear in the cell telling you how many cells downward you need to select.
Highlight the cell and drag down enough cells below to complete the requested number (or more to allow for expansion), press F2, then CTRL-SHIFT-ENTER to activate the array.
http://www.excelforum.com/attachment...kups-test1.xls
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks