+ Reply to Thread
Results 1 to 5 of 5

Return all data based on Cell value

  1. #1
    Registered User
    Join Date
    02-05-2023
    Location
    New Zealand
    MS-Off Ver
    Office Pro + 2016
    Posts
    5

    Return all data based on Cell value

    Hi there,
    I have this formula below which works perfectly filtering data I need.

    {=IFERROR(INDEX(STOCKLIST!$A$8:$P$3881,SMALL(IF(($B$1=STOCKLIST!$B$8:$P$3881),ROW(STOCKLIST!$B$8:$P$3881)-MIN(ROW(STOCKLIST!$B$8:$P$3881))+1,""),ROW(A1)),0),"")

    I was wondering if there was a way to have it so the if B1 is blank or I enter * it returns all data from the STOCKLIST sheet.

    Thanks in advance.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,595

    Re: Return all data based on Cell value

    Untested, but try,
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Array enter with Ctrl-Shift-Enter rather than just Enter
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-05-2023
    Location
    New Zealand
    MS-Off Ver
    Office Pro + 2016
    Posts
    5

    Re: Return all data based on Cell value

    Thanks for your reply.

    I tried this but its returning the first line of the stocklist sheet repeatidly.

    =IF($B$1="",STOCKLIST!$A$8:$P$3881,(IFERROR(INDEX(STOCKLIST!$A$8:$P$3881,SMALL(IF(($B$1=STOCKLIST!$B$8:$P$3881),ROW(STOCKLIST!$B$8:$P$3881)-MIN(ROW(STOCKLIST!$B$8:$P$3881))+1,""),ROW(A1)),0),"")))

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,595

    Re: Return all data based on Cell value

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.

  5. #5
    Registered User
    Join Date
    02-05-2023
    Location
    New Zealand
    MS-Off Ver
    Office Pro + 2016
    Posts
    5

    Re: Return all data based on Cell value

    here's a sample sheet.
    Attached Files Attached Files

+ 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] Using xlookup across sheets to return data based on cell
    By maxwellsdemon13 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-29-2022, 09:23 AM
  2. Return data in one cell based on what another cell contains
    By bushfirey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2019, 03:03 AM
  3. [SOLVED] lookup and return data from one table to another based on a cell reference.
    By Destiny1990 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2018, 07:50 PM
  4. [SOLVED] To return the values based on data enterd in a cell
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-05-2015, 12:05 PM
  5. Replies: 5
    Last Post: 11-17-2010, 02:52 PM
  6. return data based on a cell value
    By tinkerbelle in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-27-2009, 04:00 AM
  7. Replies: 2
    Last Post: 06-09-2005, 09:05 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