Ignoring blank cells in results

%3CLINGO-SUB%20id%3D%22lingo-sub-2244245%22%20slang%3D%22en-US%22%3EIgnoring%20blank%20cells%20in%20results%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2244245%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%20I've%20attached%20a%20test%20sheet%20based%20upon%20our%20food%20bank%20worksheet.%20We%20have%20over%20300%20families%20in%20the%20rows%20and%20over%20a%20year%20of%20weekly%20food%20deliveries%20in%20the%20columns.%20I%20can%20generate%20results%20using%20IF%2C%20as%20on%20the%20test%20sheet%20(Ive%20also%20used%20vlookup%20and%20hlookup).%20With%20small%20numbers%20of%20rows%20and%20columns%20this%20is%20OK%20but%20what%20i%20need%20to%20do%20is%20produce%20reports%20of%20who%20was%20fed%20on%20a%20particular%20date%20-%20but%20without%20all%20the%20blank%20lines%20of%20families%20that%20were%20not%20fed%20and%20similarly%20for%20each%20family%20a%20list%20of%20the%20weeks%20they%20were%20fed%20with%20out%20all%20the%20blanks%20of%20weeks%20they%20were%20not%20fed.%20Thanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2244245%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi All, I've attached a test sheet based upon our food bank worksheet. We have over 300 families in the rows and over a year of weekly food deliveries in the columns. I can generate results using IF, as on the test sheet (Ive also used vlookup and hlookup). With small numbers of rows and columns this is OK but what i need to do is produce reports of who was fed on a particular date - but without all the blank lines of families that were not fed and similarly for each family a list of the weeks they were fed with out all the blanks of weeks they were not fed. Thanks in advance.

6 Replies
Try this:

=FILTER($C$7:$C$13,OFFSET($C$7,0,XMATCH(F27,$D$6:$I$6,0),7,1)="Food")
Hi Patrick, thank you so much for your help. Your suggestion works perfectly on the columns, so I can get a report based on selecting a date. I have tried to modify your solution to search horizontally but failed misserably. What I would like to be able to do is request a list of dates that say family 'b' were fed. Please can you help me again. Thanks Simon.
Try this one:
=FILTER($D$6:$I$6,OFFSET($D$6,XMATCH(C29,$C$7:$C$13,0),0,1,6)="Food")

C29 is the cell containing the family letter.
Hi again Patrick, thanks so much again, this also worked perfectly on my little test page. For some reason when i rewrite both these on the actual sheet the lists produced are not correct, I've obviuosly made a mistake somewhere but cant see it at the moment!
Is it off by 1 row? Possibly a different arrangement with the header?
Again, THANKS! there were other columns with phone numbers etc. between the reference and the first date. Both reports working perfectly now. Thanks again!