+ Reply to Thread
Results 1 to 11 of 11

Need help solving Excel challenge with related vlaues

  1. #1
    Registered User
    Join Date
    04-17-2020
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    24

    Need help solving Excel challenge with related vlaues

    I need help solving this Excel challenge (see the attached workbook).

    The challenge is to, for a given lookup value in cell F3 ? a supplier ?, return an array of associated items for that supplier.
    So if the supplier in F3 is Company X, the result displayed in G3 should be an array with the values {Apples, Pears, Bananas}.

    I'm not allowed to use the FILTER-function, which of course should've been the way I would approach this kind of problem.

    Do you guys have any ideas?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-29-2022
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    430

    Re: Need help solving Excel challenge with related vlaues

    Even FILTER wouldn't return all the matches to one cell. You can use the formula below. On older versions of Excel, you may have to enter it with CTRL+SHIFT+ENTER to make it an array, not sure, but on 365 you don't have to.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Need help solving Excel challenge with related vlaues

    Whya re you not allowed to use FILTER?

    Is this homework or similar??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Valued Forum Contributor
    Join Date
    11-29-2022
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    430

    Re: Need help solving Excel challenge with related vlaues

    Quote Originally Posted by Glenn Kennedy View Post
    Whya re you not allowed to use FILTER?

    Is this homework or similar??
    My guess: not everyone that will use it is on 365.

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

    Re: Need help solving Excel challenge with related vlaues

    Sounds like homework !!

    To start you on the way, put this formula in cell A3:

    =IF(B3=$F$3,MAX(A$2:A2)+1,"-")

    then copy down. Can you work out how to then extract the data that corresponds to the numbers generated by the formula?

    Incidentally, you may need to use semicolons ( ; ) instead of commas ( , ) in the formula, depending on your regional settings.

    Hope this helps.

    Pete

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help solving Excel challenge with related vlaues

    Power Query

    Supplier List
    Company X Apples, Pears, Bananas


    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-17-2020
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    24

    Re: Need help solving Excel challenge with related vlaues

    A co-worker sent us this, and he thought using FILTER would be too easy. Guess he's right.

  8. #8
    Registered User
    Join Date
    04-17-2020
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    24

    Re: Need help solving Excel challenge with related vlaues

    Quote Originally Posted by Pete_UK View Post
    Sounds like homework !!

    To start you on the way, put this formula in cell A3:

    =IF(B3=$F$3,MAX(A$2:A2)+1,"-")

    then copy down. Can you work out how to then extract the data that corresponds to the numbers generated by the formula?

    Incidentally, you may need to use semicolons ( ; ) instead of commas ( , ) in the formula, depending on your regional settings.

    Hope this helps.

    Pete
    Thanks, Pete!

    I can't really say that I can work that out. I'll have to pick this formula apart to try to understand

  9. #9
    Registered User
    Join Date
    04-17-2020
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    24

    Re: Need help solving Excel challenge with related vlaues

    Quote Originally Posted by thomglea View Post
    Even FILTER wouldn't return all the matches to one cell. You can use the formula below. On older versions of Excel, you may have to enter it with CTRL+SHIFT+ENTER to make it an array, not sure, but on 365 you don't have to.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Nice, thank you!

    This does the trick, and I understand the formula.
    It doesn't have to be an array formula, I just think they're neat.

  10. #10
    Registered User
    Join Date
    04-17-2020
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    24

    Re: Need help solving Excel challenge with related vlaues

    Quote Originally Posted by sandy666 View Post
    Power Query

    Supplier List
    Company X Apples, Pears, Bananas


    Please Login or Register  to view this content.
    I will definitely try this!
    I've recently discovered Power Query, it's really great.

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help solving Excel challenge with related vlaues

    Quote Originally Posted by kakaNit View Post
    I will definitely try this!
    I've recently discovered Power Query, it's really great.
    I know that

    so


    if the problem is solved, hit Add Reputation (bottom left corner next to the post that was helpful)
    and then mark the thread as SOLVED (top above your first post - Thread Tools)

+ 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] how to assign continuous numbers to column vlaues?
    By genetist in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2021, 05:41 AM
  2. [SOLVED] Using VLOOKUP to return multiple vlaues and total them
    By mul3am in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2017, 09:08 AM
  3. [SOLVED] Sumproduct that filters out errors vlaues
    By Craig K. in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-21-2013, 04:23 PM
  4. Multiple lookup vlaues
    By BRISBANEBOB in forum Excel General
    Replies: 4
    Last Post: 03-02-2009, 12:02 AM
  5. how to have dynamic vlaues picked up
    By vikkam in forum Excel General
    Replies: 5
    Last Post: 09-12-2008, 10:49 PM
  6. How to find a value and its associated row vlaues
    By JK1234 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-02-2008, 06:02 AM
  7. [SOLVED] Increase excel worksheet vlaues by a percentage
    By Nigel C in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-27-2006, 02:50 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