+ Reply to Thread
Results 1 to 3 of 3

List all values found within a range.

  1. #1
    Registered User
    Join Date
    09-28-2008
    Location
    Singapore
    Posts
    15

    List all values found within a range.

    Hi all,

    I have a problem with finding the value in column B that is found within a range eg: <=1 & >=5 and return the corresponding values found in column A.

    Please kindly refer to the attached sample for reference. Any help will be appreciated.

    Thanks in advance.


    Best Regards,

    Eric
    Attached Files Attached Files
    Last edited by ericwcf; 10-30-2008 at 10:18 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    To list all the values in one row try this formula in H4

    =IF(COLUMNS($H4:H4)>SUM(($B2:$B46>=1)*($B2:$B46<=5)),"",INDEX($A2:$A46,SMALL(IF(($B2:$B46>=1)*($B2:$B46<=5),ROW(B2:B46)-ROW(B2)+1),COLUMNS($H4:H4))))

    This is an array formula which needs to be confirmed with CTRL+SHIFT+ENTER. To do this, paste formula in to H4, select that cell and press F2 key. Now hold down CTRL and SHIFT keys and press ENTER so that curly braces like { and } appear around the formula in the formula bar

    Now copy formula across, once you run out of matches you just get blank cells

  3. #3
    Registered User
    Join Date
    09-28-2008
    Location
    Singapore
    Posts
    15

    List all values found within a range.

    Hi Daddylonglegs,

    Thanks for the quick reply! Your formula works perfectly.

    That is exactly what I wanted. Thanks for your help!

    I really appreciate your helps.

    Cheers.


    Best Regards,

    Eric

+ 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