+ Reply to Thread
Results 1 to 8 of 8

Selective Lookup Help

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

    Unhappy Selective Lookup Help

    Hi,
    I've been working with this workbook for days now and need some help from the pros. I'm trying to use a lookup function for a set of data that looks like the attached:


    I need it to search the sheet by the login id (hilighted in example), and return the 2nd and 6th # values (hilighted in example) in the row that starts with Grand, which is the first occurrance of grand in Column A after that specific login ID occurs in column D.

    This is making me crazy, i'm not sure if i can do this with a formula, a table, or a macro. Any excel geniuses out there that can help me?
    Attached Files Attached Files
    Last edited by AliGW; 09-23-2021 at 04:24 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Selective Lookup Help!

    There are instructions at the top of the page explaining how to attach your sample workbook.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

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

    Re: Selective Lookup Help!

    Thank you! Brand New

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Selective Lookup Help!

    I assume (dangerous!) that there are multiple entries of LOGON IDs on a sheet with a variable number of entries (rows) per ID???
    Last edited by JohnTopley; 09-23-2021 at 04:16 PM.

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

    Re: Selective Lookup Help!

    That is a correct assumption. Sometimes the same login ID can be listed twice (page split) but there is always only one GRAND TOTAL per Login ID entry. The number of rows can vary entirely from 1 to 50+ because it's based on the amount of orders a person fills in that day. Does that help?

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Selective Lookup Help!

    Try

    in D2

    =VLOOKUP("GRAND",OFFSET(Sheet1!$A$1,MATCH($A2,Sheet1!$D:$D,0),,1000,14),4,FALSE)

    in E2

    =VLOOKUP("GRAND",OFFSET(Sheet1!$A$1,MATCH($A2,Sheet1!$D:$D,0),,1000,14),9,FALSE)


    Please try with 2 of same Logon ID
    Attached Files Attached Files

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

    Re: Selective Lookup Help

    THAT WORKED!!! Thank you so much!

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Selective Lookup Help

    You're welcome.

    NOTE: If you have more than 1000 rows, then change the 1000 in the formulae

+ 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] Help please with selective formula?
    By Dobbies in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-17-2019, 08:07 AM
  2. [SOLVED] Selective SUM
    By bryan444 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-11-2013, 01:24 PM
  3. Replies: 5
    Last Post: 12-11-2012, 05:04 AM
  4. Selective Counting
    By ZackG in forum Excel General
    Replies: 4
    Last Post: 03-29-2011, 10:08 AM
  5. Selective Save
    By grahammal in forum Excel General
    Replies: 1
    Last Post: 03-09-2007, 03:52 PM
  6. Lookup selective from another sheet
    By Jim in forum Excel General
    Replies: 2
    Last Post: 10-16-2005, 07:05 AM
  7. [SOLVED] Selective Viewing
    By MBlake in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2005, 03: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