SOLVED

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

%3CLINGO-SUB%20id%3D%22lingo-sub-3119089%22%20slang%3D%22en-US%22%3EMove%20data%20up%20if%20blank%20or%20move%20to%20next%20row%20and%20retrieve%20requested%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3119089%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHi%2C%20in%20the%20attached%20sample%20I%20have%204%20sheets.%20The%20main%20data%20sheet%20and%20three%20bloodline%20sheets.%20Formulas%20have%20been%20added%20(VLOOKUP%2C%20IFERROR%2C%20IF)%20to%20separate%20the%20date%20on%20their%20respective%20sheets.%20However%2C%20what%20I%20want%20to%20do%20is%20have%20the%20data%20move%20up%20if%20the%20row%20above%20is%20blank.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3Eor%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3Ehave%20a%20formula%20check%20if%20the%20correct%20bloodline%20is%20present%2C%20if%20not%2C%20move%20onto%20the%20next%20row%20and%20retrieve%20data%20that%20matches%20the%20request.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EOffice%20Version%3A%202021%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EThanks%20in%20advance.%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.PNG%22%20style%3D%22width%3A%20962px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F345420iDB17C3038AC3EBCE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%221.PNG%22%20alt%3D%221.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222.PNG%22%20style%3D%22width%3A%20567px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F345422i07B04A0FE5530D03%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222.PNG%22%20alt%3D%222.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%223.PNG%22%20style%3D%22width%3A%20571px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F345421i380FBC3F7D1B2B35%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%223.PNG%22%20alt%3D%223.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3119089%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3119503%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20data%20up%20if%20blank%20or%20move%20to%20next%20row%20and%20retrieve%20requested%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3119503%22%20slang%3D%22en-US%22%3EI%20suggest%20you%20use%20a%20PivotTable%20instead%20and%20then%20you%20add%20the%20corresponding%20filter.%3CBR%20%2F%3EAlternatively%20don't%20use%20VLOOKUP%20etc...%20and%20just%20use%20FILTER()%20instead%20(which%20according%20to%20my%20MS%20ref%2C%20Excel%202021%20should%20have%20FILTER%20and%20dynamic%20arrays)%20so%20something%20like%3A%3CBR%20%2F%3E%3DINDEX(FILTER(DataTable%2C%20DataTable%5BBloodline%5D%3D%22Han%22)%2C%20%2C%7B1%3B9%3B10%7D)%3C%2FLINGO-BODY%3E
New Contributor

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, what I want to do is have the data move up if the row above is blank.

or

have a formula check if the correct bloodline is present, if not, move onto the next row and retrieve data that matches the request. 

Office Version: 2021

Thanks in advance.1.PNG2.PNG3.PNG

3 Replies
best response confirmed by Hans Vogelaar (MVP)
Solution

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?

 

@mtarler, thanks for the reply. Will give it a go and let you know of the outcome.

The dynamic filter option actually worked wonders.