+ Reply to Thread
Results 1 to 6 of 6

Lookup all values less than amount and import

  1. #1
    Registered User
    Join Date
    09-23-2021
    Location
    West Jefferson, Ohio
    MS-Off Ver
    Office 365
    Posts
    6

    Lookup all values less than amount and import

    Here's a bit of a complicated one. For a workbook, I need a formula that will pull all names and values of employees with % less than 120 in one set, and all with % less than 87 in another. I have an example of employee date (with correct columns, other data is just hidden) and an example of what it should pull, along with a blank workbook for testing. Any help would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Lookup all values less than amount and import

    Hi,
    Assuming you use Office 365 -please try this for A:

    =FILTER(FILTER(Data!B1:AJ9,Data!$AJ$1:$AJ$9<120),{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1})


    This for D:
    =FILTER(FILTER(Data!B1:AN9,Data!$AN$1:$AN$9<87%),{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1})
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Lookup all values less than amount and import

    Here's an alternate solution for those of us unfortunate enough not to have Office-365

    In A3 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In B3 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Similar formulas in D:E:
    In D3 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In E3 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note that Data!AJ and Data!AN are inconsistent - one is % the other is % times 100
    Attached Files Attached Files
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  4. #4
    Registered User
    Join Date
    09-23-2021
    Location
    West Jefferson, Ohio
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Lookup all values less than amount and import

    "Hi,
    Assuming you use Office 365 -please try this for A:

    =FILTER(FILTER(Data!B1:AJ9,Data!$AJ$1:$AJ$9<120),{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1})


    This for D:
    =FILTER(FILTER(Data!B1:AN9,Data!$AN$1:$AN$9<87%),{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1})"
    Hi, Thank you for the response! The formula for A worked (although it randomly puts in 4 rows of 0's before the data) and the second formula for D is not working for me. it comes back with N/A.
    Last edited by AliGW; 09-28-2021 at 08:02 AM.

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Lookup all values less than amount and import

    Hi Allanafair ,
    Do you mean you tried to adjust your formula to your original file?
    Did you adjust accordingly the data range?

    It does work for the sample file you attached.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,325

    Re: Lookup all values less than amount and import

    Allanafair - you need to update your forum profile. It's Office 365 you have (days in a year), not 360 (degrees in a circle).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Data Import Only importing small amount of web page
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-30-2016, 03:16 PM
  2. [SOLVED] Using Lookup to distribute amount over a given duration
    By StarHunter in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2012, 06:20 AM
  3. Replies: 9
    Last Post: 05-22-2012, 08:59 AM
  4. Lookup for an amount from several rows
    By cyee in forum Excel General
    Replies: 4
    Last Post: 01-07-2011, 04:55 AM
  5. Lookup closest amount
    By mkvassh in forum Excel General
    Replies: 2
    Last Post: 07-07-2010, 02:46 AM
  6. MS Word - import a mass amount of pictures
    By shadestreet in forum Excel General
    Replies: 1
    Last Post: 09-26-2007, 05:02 PM
  7. [SOLVED] how do I import a large amount of text into one cell?
    By Avid Marine in forum Excel General
    Replies: 0
    Last Post: 01-02-2006, 03:55 AM

Tags for this Thread

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