+ Reply to Thread
Results 1 to 5 of 5

Looking for a help with a complex vertical and horizontal lookup... (complex to me!)

  1. #1
    Registered User
    Join Date
    02-02-2014
    Location
    Mississauga
    MS-Off Ver
    Excel 2003
    Posts
    3

    Looking for a help with a complex vertical and horizontal lookup... (complex to me!)

    Morning folks, I've got the following complex issue:

    ...................Trader1 Trader 2 Trader 3 Trader 4 Trader5... Trader20 (Horizontal)
    Commodity1 .....0.....2.....0.....1.....1
    Commodity2 .....0.....4.....0.....-3.....0
    Commodity3 .....1.....0.....0.....5.....0
    Commodity4 .....0.....0.....2.....0.....0
    .
    .
    .
    Commodity 36 .....2.....1.....1.....0.....0


    I have 5 cells that are basically a drop down list of all the traders, so the user can select up to 5 traders.

    Once the user selects up to 5 traders (lets say Trader 1, 3 and 5 for our example) I have the following requirements to fulfill:

    Displaying all commodities that have non-zero, non-negative values associated with those traders in a list somewhere. For our example, this would then display:
    Commodity 3
    Commodity 4
    Commodity 1

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Looking for a help with a complex vertical and horizontal lookup... (complex to me!)

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-02-2014
    Location
    Mississauga
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Looking for a help with a complex vertical and horizontal lookup... (complex to me!)

    I have attached the example.

    There are two asks:

    The first being how to generate that list of dynamic results based on a cross-reference.

    The second, is me wondering if it is possible to have a drop down-list that I can select multiple values from.

    Both are clearly identified in the example excel file attached. Thanks a ton!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Looking for a help with a complex vertical and horizontal lookup... (complex to me!)

    Please try this function
    Paste it in the Cell A4 with Ctrl+Shift+Enter & drag down.

    =IFERROR(INDEX($A$19:$A$25,SMALL(IF(INDEX($B$19:$F$25,0,MATCH($B$1,$B$18:$F$18,0))>0,ROW($A$19:$A$25)-ROW($A$19)+1),ROWS($A$4:A4))),"")
    Attached Files Attached Files
    Last edited by ramananhrm; 02-03-2014 at 12:43 AM.
    Please click 'Add reputation', if my answer helped you.

  5. #5
    Registered User
    Join Date
    02-02-2014
    Location
    Mississauga
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Looking for a help with a complex vertical and horizontal lookup... (complex to me!)

    This works but only lists the first "Com" encountered. I was wondering how I can list all the Commodities that return a non-zero non-negative value. Re-attached sheet with your recommendation.
    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] Complex horizontal sorting
    By pahari75 in forum Excel General
    Replies: 6
    Last Post: 02-04-2014, 02:01 PM
  2. [SOLVED] Horizontal and Vertical Lookup
    By kingkong321 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 06:48 AM
  3. [SOLVED] Lookup a vertical and horizontal value
    By KARENKERBA in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2013, 04:33 PM
  4. Horizontal and Vertical lookup.
    By rlsublime in forum Excel General
    Replies: 3
    Last Post: 09-05-2012, 05:54 PM
  5. Replies: 3
    Last Post: 02-18-2005, 11:06 AM

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