+ Reply to Thread
Results 1 to 3 of 3

Stripping or choosing rows from one list to populate another

  1. #1
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Frederick, MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    125

    Stripping or choosing rows from one list to populate another

    Attached is a sample of a worksheet where I've got one list with all sorts of data. I'd like to populate a second list with information where the first list is either a number, or a particular string (in this case, "Reagent blank").

    Currently, I'm using a combination of HLOOKUP and SMALL to determine row numbers of one, or the other (either ISNUMBER or ="Reagent Blank"), but I can't figure out a way to combine them both.

    I know that what I'm working with so far is likely to be needlessly complex, but I'm hopeful to find anything that works.

    Note: due to constraints beyond my control, macros and pivot tables should not be used.
    Attached Files Attached Files
    Last edited by Gunther Maplethorpe; 02-24-2011 at 05:42 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Stripping or choosing rows from one list to populate another

    Try this:

    In P4 of Raw Data enter:

    =IF(OR(J4="Reagent blank",ISNUMBER(J4+0)),COUNT(P$3:P3)+1,"")


    copied down.

    Then in Q4: = MAX(P:P)

    Then in A3 of the Process Data sheet enter:

    =IF(ROWS($A$1:$A1)>'Raw Data'!$Q$4,"",INDEX('Raw Data'!J:J,MATCH(ROWS($A$1:$A1),'Raw Data'!$P:$P)))

    copied down and across.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Frederick, MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Stripping or choosing rows from one list to populate another

    You, sir, are a god among men. Not only is your solution NOT needlessly complex, but it's easily edited to perform other similar feats. Thanks so very, very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1