+ Reply to Thread
Results 1 to 10 of 10

Returning Cells that Meeting Criteria

  1. #1
    Registered User
    Join Date
    12-30-2019
    Location
    uk
    MS-Off Ver
    2007
    Posts
    4

    Returning Cells that Meeting Criteria

    Hello,

    I have a worksheet with a pick list where users can select an option from a list - I have another tab which I am working on tryng to link with the working sheet but only to return a few departments not all

    So in the pick list -

    There will be

    Dept. PO Start Date PO Number Comments
    Finance
    HR
    Marketing
    R&D
    IT
    Other Admin.

    I only want to return the 4 columns for HR, Finance and Marketing - so I have done an IF OR formula based on A1 on the first and second tab - the results however if there isn't a match returns a blank cell as it is false - is there a way of skipping the blanks so it appears in order with no blanks and so that I can get PO Start Date, nnumber and Comments in the worksheet too.

    Thanks,

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Returning Cells that Meeting Criteria

    Hello & Welcome to the Forum,

    My first thought is a Vlookup could return the column information.

    If this doesn't help, maybe seeing your sheet layout will help and what you have tried and/or want.

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need.

    Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    12-30-2019
    Location
    uk
    MS-Off Ver
    2007
    Posts
    4

    Re: Returning Cells that Meeting Criteria

    Hi - Please see attached - so instead of the yellows I want it to return the first applicable row - so instead of the first yellow I would like the marketing to appear directly underneath
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Returning Cells that Meeting Criteria

    On Sheet1, why not just simply apply a filter and then filter Department (Column A) to see only HR and Marketing?

  5. #5
    Registered User
    Join Date
    12-30-2019
    Location
    uk
    MS-Off Ver
    2007
    Posts
    4

    Re: Returning Cells that Meeting Criteria

    Sheet 1 is for end users to fill out - for sheet 2 is actionable PO's so the real list will be a lot bigger and don't want to return lots of blank cells or constantly have to reapply filter - is there a way of skipping rows - through indirect or row formulas

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Returning Cells that Meeting Criteria

    I know how to return a complete list of say HR with no blanks, but two values. That I do not readily know. Let me place a call to our formula experts.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Returning Cells that Meeting Criteria

    In Sheet1, you can use column E as a helper, with this formula in E2:

    =IF(OR(A2="HR",A2="Marketing"),MAX(E$1:E1)+1,"")

    Copy this down to the bottom of your list. Then in A2 of Sheet2 you can use this formula to retrieve the data:

    =IFERROR(INDEX(Sheet1!A:A,MATCH(ROWS($1:1),Sheet1!$E:$E,0)),"")

    Copy this across into B2:D2, and format B2 as a date in the style you prefer. You might also want to amend the formula in D2 to this:

    =IFERROR(INDEX(Sheet1!D:D,MATCH(ROWS($1:1),Sheet1!$E:$E,0))&"","")

    so that blanks in the original will show as blanks rather than zero. Then you can copy the 4 formulae down as far as you need to, and the data will appear all bunched up without blank rows.

    Hope this helps.

    Pete

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Returning Cells that Meeting Criteria

    That's great Pete. Thank you for the help.

  9. #9
    Registered User
    Join Date
    12-30-2019
    Location
    uk
    MS-Off Ver
    2007
    Posts
    4

    Re: Returning Cells that Meeting Criteria

    thanks - great it worked

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Returning Cells that Meeting Criteria

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count Data Meeting Criteria Across Columns Meeting Criteria
    By idelta in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2015, 03:53 PM
  2. [SOLVED] SUMPRODUCT for cells meeting the criteria
    By alice2011 in forum Excel General
    Replies: 0
    Last Post: 06-18-2015, 04:04 PM
  3. [SOLVED] Returning max values meeting day, month criteria from another worksheet in a workbook
    By AileenR in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 10-15-2014, 04:21 AM
  4. Sum cells in a row meeting criteria
    By Murrayk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2012, 01:51 AM
  5. Counting Cells meeting certain criteria
    By Ozwilly in forum Excel General
    Replies: 1
    Last Post: 10-29-2011, 03:01 AM
  6. Replies: 1
    Last Post: 04-19-2011, 06:08 PM
  7. Replies: 2
    Last Post: 06-24-2010, 04:53 PM

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