Forum Discussion

CatD0203's avatar
CatD0203
Copper Contributor
Jul 16, 2023

Excel Help - Vlookups/ List Data

Hi All,

 

In need of some help with a spreadsheet i'm compiling for an online game.

I am trying to auto-populate a table based on raw data list. 

 

Image 1 is the list data.

 

Image 2 is the table that needs to populate based on list data.

 

Line 1 of the table does a vlookup to the raw data to populate table greyed out.

What I want to try to achieve is:

- Based on cell F11 'Rider', look to list > select next 'rider' in list

- When data selected, cumulative values in H3:H24, not to exceed cell I11 'max rally' figure.

 

I might be asking a lot here.... Any recommendations would be greatly appreciated.

 

Image 1

 

Image 2

 

Thank you in advance,

Cat

13 Replies

  • peiyezhu's avatar
    peiyezhu
    Bronze Contributor
    Do you want a dropdown list for quickly pick the datas in multiple columns at once?
  • flexyourdata's avatar
    flexyourdata
    Iron Contributor

    Hi CatD0203 

     

    This is difficult to understand:

     


    What I want to try to achieve is:

    - Based on cell F11 'Rider', look to list > select next 'rider' in list

    - When data selected, cumulative values in H3:H24, not to exceed cell I11 'max rally' figure.



    Can you expand on each of the bullets to make it clearer?

     

    What does "next 'rider' in list" mean exactly?

     

    What does "cumulative values in H3:H24" mean? On the list sheet? Why not H2? What does cumulative mean in the context of column H on the list sheet, which seems to hold Yes and No values. 

    • CatD0203's avatar
      CatD0203
      Copper Contributor

      You're absolutely right. Sorry, I think I spent too many hours trying to articulate what I needed that I haven't been able to explain myself properly.

       

      Let me know if this is clearer?

       

      Within my workbook I have two tabs:

      • Tab 1 (Image one) - 'List Data'
      • Tab 2 (image 2) 'Turret Info'

      Tab 1 'List Data', is a list of all active players and has a series of categories columns "A" - Alliance, through "I" - Mud Sit.

       

      Tab 2 'Turret Info' is what I am hoping to populate based on tab 1 information.

       

      Within Tab 2 table/cells start from D11:I11; D11:D24 (image 2 in original post)

       

      What I want to do is select ‘Troop Type’ from a drop down in cell F11 – Rider, Shooter, Fighter (which I have); and hopefully create a VLOOKUP or function that would allow data from Tab1 (list data) to fill the following 12 rows based on troop type i.e., rider.

       

      While the list is populating, I need to ensure that the sum total of cells H13:H24, does not exceed the value in I11. The value in I11 is based off of the first name in the list data matching ‘Rider’ type.

       

      If this is too many circular references or too complex for excel let me know and I’ll manually do it!

       

      Thanks again for looking and the feedback.

      • flexyourdata's avatar
        flexyourdata
        Iron Contributor

        CatD0203 

         

        Assuming you have access to the FILTER function, you can try this in cell E14 on the Troop Type sheet. Adjust the List Data range appropriately. 

         

        =LET(
        lookupData, 'List Data'!C2:G20, 
        troopTypeCol, CHOOSECOLS(lookupData, 2),
        nameCol, CHOOSECOLS(lookupData, 1),
        filteredData, FILTER(lookupData, (troopTypeCol=F13)*(nameCol<>E13)),
        filteredData
        )

         

        Please try that for now. It doesn't resolve the max-sum issue, but I need more detail to understand how to resolve that. 

         

        When you say "ensure doesn't exceed", do you mean to just keep taking riders until one row before the sum would exceed the rally size? Does the order of the riders matter?