+ Reply to Thread
Results 1 to 5 of 5

Thread: Pull data if columns equal a range

  1. #1
    Registered User
    Join Date
    01-16-2012
    Location
    Virginia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Pull data if columns equal a range

    Good Day everyone,

    I've never been good at creating my own formulas so I was hoping someone might know what I'm trying to do. I'll attach a sample excel of an empty spreadsheet I'll be using (In a normal situation that spreadsheet would be filled with over 7000 line number)

    What I'm looking to do is the following:

    Look at column G and if it is less than or equal to 60 and if that same item (column B) has one over 200 and they are the same item based on column B then list it in another tab for each one that falls under that criteria.

    So basically I'm trying to see which items are both fairly new within 60 days and if I already have an item that's fairly old over 200 days of that same description from column B.


    I hope I'm making sense lol
    Attached Files Attached Files

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

    Re: Pull data if columns equal a range

    Try this:

    In Sheet1, J2 enter helper formula:

    =IF(AND(G2<200,COUNTIFS($A$2:$A$6,A2,$G$2:$G$6,">=200")>0),COUNT(J$1:J1)+1,"")

    copied down

    in K2 enter:

    =Max(J:J)

    Then in Sheet2, A2 enter:

    =IF(ROWS($A$2:$A2)>Sheet1!$K$2,"",INDEX(Sheet1!A:A,MATCH(ROWS($A$2:$A2),Sheet1!$J:$J)))

    copied down as far as you need and across the columns to get all data.

    Is that what you needed?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    01-16-2012
    Location
    Virginia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Pull data if columns equal a range

    I think it's part, I got it doing something once but I think it's not exactly working for what I was thinking.

    I attached a better example of the information I also included the formula you wrote down in it.

    My normal working file can be up to 7500 line numbers so what I'm trying to do is have a formula that will analyze all the same items (Column B) and check which of the like ones are under 60 days and which are over 150 then print that list.

    Do you think this would have to be done individually by each group of items? Can it check the entire worksheet and separate it all? I basically only want to see items that are less than 60 but also 200 IF it's the same item, because you'll notice on my new attachment some parts are 42 days old but that same part is also 600 days that info is what I want to capture but I want to capture it for item 1, 2, 3 and so forth. For each different part I want to capture the same info if it matches that criteria if not it won't show that part.
    Attached Files Attached Files

  4. #4
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Pull data if columns equal a range

    The attached was my intention...

    Note: You have to adjust range sizes to suit the data you have...
    Attached Files Attached Files
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    01-16-2012
    Location
    Virginia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Pull data if columns equal a range

    Awesome thank you very much I'll play around with it.

    Thank you for your help

+ 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.2.0