Forum Discussion

s_psch's avatar
s_psch
Copper Contributor
Feb 04, 2022
Solved

Move data up if blank or move to next row and retrieve requested data

Hi, in the attached sample I have 4 sheets. The main data sheet and three bloodline sheets. Formulas have been added (VLOOKUP, IFERROR, IF) to separate the date on their respective sheets. However, w...
  • mtarler's avatar
    Feb 04, 2022

    I FIRST suggest you use a PivotTable instead and then you add the corresponding filter.


    Alternatively (if you really don't want a Pivot Table for some reason), still don't use VLOOKUP etc... and just use FILTER() instead (which according to my MS ref, Excel 2021 should have FILTER and dynamic arrays) so something like:
    =INDEX(FILTER(DataTable, DataTable[Bloodline]="Han"), ,{1,9,10})

    and if you make $C$1 the filter 'name' so the Header row would be like:

    Name    Gender     Han

    then the formula could be:

    =INDEX(FILTER(DataTable, DataTable[Bloodline]=$C$1), ,{1,9,10})

    and quite honestly why even have that last column since it will all be the same?

     

Resources